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-27 06:35 PM
2010-01-27 06:56 PM
2010-01-27 07:28 PM
PRISM_ 31, 0.1, 0, 0, 15, 1, 0, 15, 1, 1, 15, 0, 1, 15, 0, 0, -1, 0.1421712065621, 0.2718219590103, 79, 0.2671712065621, 0.2718219590103, 979, 0, -90, 4079, 0.2671712065621, 0.3968219590103, 79, 0.2671712065621, 0.2718219590103, 979, 0, -90, 4079, 0.3921712065621, 0.2718219590103, 79, 0.2671712065621, 0.2718219590103, 979, 0, -90, 4079, 0.2671712065621, 0.1468219590103, 79, 0.2671712065621, 0.2718219590103, 979, 0, -90, 4079, 0.1421712065621, 0.2718219590103, -1, 0.4935412639657, 0.615680201261, 79, 0.6185412639657, 0.615680201261, 979, 0, -90, 4079, 0.6185412639657, 0.740680201261, 79, 0.6185412639657, 0.615680201261, 979, 0, -90, 4079, 0.7435412639657, 0.615680201261, 79, 0.6185412639657, 0.615680201261, 979, 0, -90, 4079, 0.6185412639657, 0.490680201261, 79, 0.6185412639657, 0.615680201261, 979, 0, -90, 4079, 0.4935412639657, 0.615680201261, -1
2010-01-27 08:07 PM
2010-01-27 09:10 PM
Peter wrote:I've used the 4000 status value with 360° for holes with no problem. Not sure if it makes much difference. I've just always been kind of obsessive about minimizing lines in the script.
Seems strange to have to individually do each 90 degree quadrant separately!
2010-01-27 09:22 PM
2010-01-27 10:34 PM
!!! ----- 1st hole ----- put 0.035, yy, 900, 0.015, 360, 4000+1 !!! ----- 2nd hole ----- put 0.065, yy, 900, 0.010, 360, 4000+1 !!! ----- 3rd hole an up ----- !put 0.095, yy, 900, ! 0.010, 360, 4000+1In 3D script, you must define the first and last points for the first hole,
res = 16 resol res !!! ----- 1st hole ----- put 0.035+0.015, yy, 79, ! 1st point 0.035 , yy, 900, 0, 360-360/res, 4000+79, 0.035+0.015, yy, -1 ! closing !!! ----- 2nd hole ----- put 0.065, yy, 900, 0.010, 360, 4000+79 !!! ----- 3rd hole and up ----- !put 0.095, yy, 900, ! 0.010, 360, 4000+79
2010-01-27 11:58 PM
Olivier wrote:This gives me the error as the attached image, Olivier. Are you sure it runs on your machine? I'm on AC13 latest hotfix.
In 3D script, you must define the first and last points for the first hole,
to get a correct mask (status 4000). Further holes don't need that.
Michael wrote:This almost works, but the last boundary node gets shaded strangely with this method. If you then turn on the rectangular hole (with 15 masks) the circle masking fails again.
The mask value of the previous node controls the next node. If you change the mask of the last node of the prism to 79, it works fine. The 4th point (0, hei, 15,) not the 5th point (0, 0, -1)
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 , 79, !!Dummy node with mask 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, 79, !!Dummy node with mask xx, yy, -1 !!----Two circular holes PUT 0.035, yy, 900, 0.015, 360, 4000+79 PUT 0.065, yy, 900, 0.01, 360, 4000+79 !!-----Do the prism PRISM_ nsp/3, thik, GET (nsp)I appreciate the help guys. I think I can work around the problem with the extra dummy nodes in the rectangular polygons. I wonder if Zsolt could comment on whether this is the way it is meant to work, or if it is a bug?
2010-01-28 09:05 AM
Peter wrote:Peter, in your attachment (line 3), this is not the same code as in my example.
This gives me the error as the attached image, Olivier.
!!! ----- 1st hole ----- put 0.035+0.015, yy, 79, ! 1st point 0.035 , yy, 900, 0, 360-360/16, 4000+79, ! 16 is the resolution 0.035+0.015, yy, -1 ! closingIt works on 12. Don't know for 13.