We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2010-01-27 05:04 PM
PEN 1 MATERIAL 2 RESOL 16 hei = 0.1 ! Height wid = 0.15 ! Width thik = 0.02 ! Thickness !----outline of prism PUT 0 , 0 , 15, wid, 0 , 15, wid, hei, 15, 0, hei, 15, 0 , 0 , -1 !!---A rectangular hole xx=0.1 yy=hei/2 !PUT xx, yy, 15, ! xx+0.015, yy, 15, ! xx+0.015, yy+0.012, 15, ! xx, yy+0.012, 15, ! xx, yy, -1 !!----Two circular holes !The first circular hole in the sequence doesn't mask properly. PUT 0.035, yy, 900+79, 0.015, 360, 4000+79 PUT 0.065, yy, 900+79, 0.01, 360, 4000+79 !!-----Do the prism PRISM_ nsp/3, thik, GET (nsp)
2010-01-28 11:32 AM
2010-01-28 12:22 PM
Braza wrote:Right, it is an angle, not a full circle.
But 360-360/16 is equal to 337,5... So its not a full circle, right?
I just can't understand why 360(Full circle) doesn't work.
EPS = 0.0001 !!! ---- outline of prism PUT 0 , 0 , 15, wid, 0 , 15, wid, hei, 15, 0 , hei, 15, 0 , EPS, 15+64, ! additional point 0 , 0 , -1 !!! ----- 1st hole ----- PUT 0.035, yy, 900, 0.015, 360, 4000+15+64 !!! ----- 2nd hole ----- PUT 0.065, yy, 900, 0.010, 360, 4000+15+64
2010-01-28 02:37 PM
Olivier wrote:Well spotted! I missed that. That's a nice little trick with the resolution on the hole.
Peter, in your attachment (line 3), this is not the same code as in my example.
2010-02-02 01:05 PM
Olivier wrote:Which example do you mean by that? I can see problems in this field but all 3 examples around page 180 in the Manual work and produce the same results as shown in the figures. I'd like to make the description more correct; I just don't know what to change exactly.
GDL ref guide is inconsistant on this point.
The fifteen years old example which explains the purpose ...
just shows that it doesn't work in the way it is intended for.
Sorry to be the eternal ranter. 😉
2010-02-02 02:54 PM
put 0, 0, 1, A, 0, 1, A, B, 1, 0, B, 1, 0, 0, -1 put A/2, B/2 , 900, ! 1st hole r, 360, 4000+sIn 3D script for a full circle, you need to place an additional point
put 0, 0 , 15, A, 0 , 15, A, B , 15, 0, B , 15, 0, EPS, 15+64, ! additional point 0, 0 , -1 put A/2, B/2, 900, ! 1st hole r, 360, 4000+15+64Or you have to script an arc or two half circles.
put 0, 0 , 15, A, 0 , 15, A, B , 15, 0, B , 15, 0, 0 , -1 put A/2+r, B/2, 15+64, ! 1st point of the hole A/2, B/2, 900, 0, 360-360/res, 4000+15+64, A/2+r, B/2, -1 ! closingPlease, correct me if I am wrong.
2010-02-02 06:58 PM