Hello again, this time i wonder how can i create a hatch by using RHatchData and RHatchEntity. Let's assume i have created circle,
var circle = new RCircleEntity (document,new RCircleData (p11,1));
how can i fullfil this circle by using RHatchEntity. Is there any example script of this?
And secondly i also wonder calling this drawing from block to my current layer. How can i insert block to my layer by scripting. Cause i need to use one block multiple times.
Thanks a lot.
Hatch creation and calling it from block
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: Hatch creation and calling it from block
Hi woddy
There is an example script called 'Wallchart-en.js' which creates a block with a hatch colour of mid grey and inserts it multiple times into the drawing. You can find it here. ('-en' is the English version).
viewtopic.php?f=107&t=2910
Note: You need to first define a hatch boundary to create the hatch. In your case the boundary would be the circle.
Hope this helps.
Regards
riverbuoy
There is an example script called 'Wallchart-en.js' which creates a block with a hatch colour of mid grey and inserts it multiple times into the drawing. You can find it here. ('-en' is the English version).
viewtopic.php?f=107&t=2910
Note: You need to first define a hatch boundary to create the hatch. In your case the boundary would be the circle.
Hope this helps.
Regards
riverbuoy