2009-04-15 02:38 PM
105: pnum=39 PUT 0, 0, 0 PUT 0.0392795, 0, 0 PUT 0.0392795, 0.1095692, 1 PUT 0.0392437, 0.1147646, 1 PUT 0.0396736, 0.1194417, 1 PUT 0.0405131, 0.1236261, 1 PUT 0.0417058, 0.1273432, 1 PUT 0.0431956, 0.1306186, 1 PUT 0.044926, 0.1334777, 1 PUT 0.046841, 0.1359461, 1 PUT 0.0488839, 0.138049, 1 PUT 0.050999, 0.1398123, 1 PUT 0.0531295, 0.1412612, 1 PUT 0.0552194, 0.1424213, 1 PUT 0.0572122, 0.1433178, 1 PUT 0.059052, 0.1439767, 1 PUT 0.0606822, 0.1444231, 1 PUT 0.0620467, 0.1446826, 1 PUT 0.063089, 0.1447805, 0 PUT 0.0631363, 0.1625932, 0 PUT 0.0658582, 0.1626122, 1 PUT 0.0682747, 0.1628674, 1 PUT 0.0704037, 0.1633422, 1 PUT 0.0722628, 0.1640205, 1 PUT 0.0738701, 0.1648855, 1 PUT 0.075243, 0.1659213, 1 PUT 0.0763995, 0.1671112, 1 PUT 0.0773573, 0.1684392, 1 PUT 0.0781343, 0.1698884, 1 PUT 0.0787481, 0.171443, 1 PUT 0.0792166, 0.1730863, 1 PUT 0.0795574, 0.1748022, 1 PUT 0.0797885, 0.1765741, 1 PUT 0.0799274, 0.1783858, 1 PUT 0.0799921, 0.1802208, 1 PUT 0.0800001, 0.182063, 1 PUT 0.0800001, 0.25, 0 PUT 2.739999999998E-005, 0.25, 0 PUT 0, 0, 0to parametric nodes similiar to this (its taken from archicad moulding library):
105: pnum=15 PUT 0, 0, 0 PUT 0, zzyzx*13/67, 0 PUT b*1/8.5, zzyzx*14/67, 0 PUT b*1/8.5, zzyzx*56/67, 0 PUT 0, zzyzx*57/67, 0 PUT 0, zzyzx, 0 PUT b*3/8.5, zzyzx, 0 PUT b*4/8.5, zzyzx*65/67, 1 PUT b*3.9/8.5, zzyzx*63.75/67, 1001 PUT b*3.55/8.5, zzyzx*62.73/67, 1001 PUT b*5/8.5, zzyzx*59/67, 1001 PUT b*8/8.5, zzyzx*53/67, 1001 PUT b*5.5/8.5, zzyzx*49/67, 1000 PUT b, zzyzx*49/67, 0 PUT b, 0, 0
2009-04-16 03:47 AM
2009-04-16 07:46 AM
I need to do this because i want my mouldings to be resizable.
PUT 0 * scale, 0 * scale, 0 PUT 0.0392795 * scale, 0 * scale, 0 PUT 0.0392795 * scale, 0.1095692 * scale, 1 PUT 0.0392437 * scale, 0.1147646 * scale, 1 PUT 0.0396736 * scale, 0.1194417 * scale, 1 PUT 0.0405131 * scale, 0.1236261 * scale, 1 PUT 0.0417058 * scale, 0.1273432 * scale, 1You can automate the procedure, using the "Find & Replace function, substituting a simple comma with "*scale,"
2009-04-16 11:59 AM
IF num=101 THEN skala=b/0.06: PARAMETERS skala=skala: ENDIF IF num=101 THEN zzyzx=b*3.66666: PARAMETERS zzyzx=zzyzx: ENDIF3D script:
101: pnum=25 PUT 0*skala, 0*skala, 0 PUT 0.0186566*skala, 0*skala, 0 PUT 0.018654*skala, 0.0636825*skala, 0 PUT 0.026527*skala, 0.06368*skala, 0 PUT 0.02659*skala, 0.1365975*skala, 0 PUT 0.0350715*skala, 0.1366137*skala, 0 PUT 0.0344461*skala, 0.1412077*skala, 0 PUT 0.0342521*skala, 0.1454709*skala, 1 PUT 0.0344594*skala, 0.1494084*skala, 1 PUT 0.0350378*skala, 0.1530249*skala, 1 PUT 0.0359575*skala, 0.1563249*skala, 1 PUT 0.0371879*skala, 0.1593133*skala, 1 PUT 0.0386992*skala, 0.1619946*skala, 1 PUT 0.040461*skala, 0.1643737*skala, 1 PUT 0.0424436*skala, 0.1664548*skala, 1 PUT 0.0446163*skala, 0.1682432*skala, 1 PUT 0.0469494*skala, 0.1697432*skala, 1 PUT 0.0494125*skala, 0.1709596*skala, 1 PUT 0.0519757*skala, 0.171897*skala, 1 PUT 0.0546086*skala, 0.1725603*skala, 1 PUT 0.0572812*skala, 0.1729539*skala, 1 PUT 0.0599633*skala, 0.1730828*skala, 0 PUT 0.06*skala, 0.22*skala, 0 PUT 0*skala, 0.22*skala, 0 PUT 0*skala, 0*skala, 0
IF num=101 THEN skala=zzyzx/0.22: PARAMETERS skala=skala: ENDIF IF num=101 THEN b=zzyzx/3.66666: PARAMETERS b=b: ENDIFNow, I`ve got a dream of two editable dimensions
IF num=101 THEN skala=zzyzx/0.22: PARAMETERS skala=skala: ENDIF IF num=101 THEN b=zzyzx/3.66666: PARAMETERS b=b: zzyzx=b*3.66666: PARAMETERS zzyzx=zzyzx: ENDIFIt seems that the only way to get it done are parametric nodes...
2009-04-16 10:22 PM
IF num=101 THEN b=zzyzx/3.66666: PARAMETERS b=b: zzyzx=b*3.66666: PARAMETERS zzyzx=zzyzx: ENDIF
2009-04-16 11:16 PM
2009-04-17 08:11 AM
Perhaps it would be easier to define the profile parametricallySure. But that's more for programmers than designers.
2009-04-17 12:11 PM
Why two "IF" statement with the same condition? (num=101)the "num" parameter is connected with value list, i.e. 101 means "profile nr1"
And what is the "num" parameter for?
Perhaps it would be easier to define the profile parametrically (with a few vertex co-ordinates and some mathematical curves), rather than point by point in this manner.It would be much better solution if I could only know how to do it. I`ve got real line of products (mouldings in corel draw or dwg format) and I need to put them in archicad.
2009-04-19 11:28 PM
2009-04-20 08:53 AM
Andrew wrote:I drag into the Interface Script if that is not being used.
- Create a 'target area' in the 2D script to drag the fill polygons into. Create several empty lines of code, and drag the fill polygons into this area of the script.