I have attached a screenshot of a 2d symbol which, when I draw it beyond its length, I would like it to repeat (like the 2d insulation object in archicad.)
As you can probably guess, the 2d script so far is a cleaned up automated script straight out of archicad. Would anyone be able to give me some guidance on how to go about scripting the object to loop?
My understanding is that I would FOR... NEXT loop and get the object to repeat if I set it out longer than its length but, after studying other objects and looking around online, I still don't really know where to start!
Ive posted the basic code below:
mul2 A/0.107482, B/0.019122
add2 -59.16268087103, 96.73000278751
pen 6
set fill "Solid Fil1"
poly2_b{5} 5, 3, 0, 3, 120, 0,
0, 0, 1, 0, 0, 1, 0,
59.16268087103, -96.71088119978, 1,
59.2155617965, -96.71088119978, 1,
59.2155617965, -96.73000278751, 1,
59.16268087103, -96.73000278751, 1,
59.16268087103, -96.71088119978, 1
set fill "Solid Fil1"
poly2_b{5} 5, 3, 0, 3, 81, 0,
0, 0, 1, 0, 0, 1, 0,
59.2155617965, -96.71088119978, 1,
59.27016330366, -96.71088119978, 1,
59.27016330366, -96.73000278751, 1,
59.2155617965, -96.73000278751, 1,
59.2155617965, -96.71088119978, 1
set fill "Solid Fil1"
Thanks,
Richard