<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Polyline nodes to parametric form in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118746#M24596</link>
    <description>Drag &amp;amp; drop is a great way to get the number and position of nodes.&lt;BR /&gt;
But to make them parametric you will need to adjust them manually.&lt;BR /&gt;
Barry.</description>
    <pubDate>Thu, 16 Apr 2009 01:47:58 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2009-04-16T01:47:58Z</dc:date>
    <item>
      <title>Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118745#M24595</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I`d like to transform numeric nodes like this (i got them with drag&amp;amp;drop method):&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;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, 0     
&lt;/PRE&gt;

to parametric  nodes similiar to this (its taken from archicad moulding library):&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;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
&lt;/PRE&gt;

&lt;BR /&gt;
I need to do this because i want my mouldings to be resizable.&lt;BR /&gt;
 the shape must be same.&lt;BR /&gt;
&lt;BR /&gt;
thanks in advance for any tips.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Apr 2009 12:38:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118745#M24595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-15T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118746#M24596</link>
      <description>Drag &amp;amp; drop is a great way to get the number and position of nodes.&lt;BR /&gt;
But to make them parametric you will need to adjust them manually.&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 16 Apr 2009 01:47:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118746#M24596</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-04-16T01:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118747#M24597</link>
      <description>&lt;BLOCKQUOTE&gt;I need to do this because i want my mouldings to be resizable.&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
If you only need to vary the scale of the polygon, then it can be somehow simple.&lt;BR /&gt;
&lt;B&gt;Draw&lt;/B&gt; the form in the Floor Plan window, placing it on the Global Origin. The Origin position will be the fixed point of the transformation (center of the profile, or an edge, as you need it).&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Drag&lt;/B&gt; it in the 2D Script window&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Create&lt;/B&gt; a multiplier parameter, let call it "scale", of type "real number".&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Add&lt;/B&gt; the scale to all the coordinates, like this:
&lt;PRE&gt;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,      1 &lt;/PRE&gt;

You can automate the procedure, using the "Find &amp;amp; Replace function, substituting a simple comma with "&lt;B&gt;*scale,&lt;/B&gt;"</description>
      <pubDate>Thu, 16 Apr 2009 05:46:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118747#M24597</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2009-04-16T05:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118748#M24598</link>
      <description>Good ideas Roberto, but  size of the profile must be defined by user using  zzyzx parameter. &lt;BR /&gt;
&lt;BR /&gt;
I tried to make a workaround with IF stataments, but it doesn`t work &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
----------------&lt;BR /&gt;
"skala"  means scale  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
default dimensions of profile: zzyzx=0.22  b=0.06&lt;BR /&gt;
&lt;BR /&gt;
Master Script:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;IF num=101  THEN
   skala=b/0.06: PARAMETERS skala=skala: ENDIF  

IF num=101  THEN
   zzyzx=b*3.66666: PARAMETERS zzyzx=zzyzx: ENDIF 

&lt;/PRE&gt;

3D script:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
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

&lt;/PRE&gt;

&lt;BR /&gt;
These scripts allow user to change size with b parameter (width), however using zzyzx (height) would be much more useful. &lt;BR /&gt;
&lt;BR /&gt;
I wish I could know how Graphisoft create their parametric nodes. I`m sure it isnt done manually - it would take ages to make a library of over 20 mouldings.&lt;BR /&gt;
&lt;BR /&gt;
I`d be grateful for any futher advice &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Lukas&lt;BR /&gt;
&lt;BR /&gt;
UPDATE:&lt;BR /&gt;
&lt;BR /&gt;
Ok, now its possible to change size with zzyzx (just had to swap b to zzyzx &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt; )&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
IF num=101  THEN
   skala=zzyzx/0.22: PARAMETERS skala=skala: ENDIF  

IF num=101  THEN
   b=zzyzx/3.66666: PARAMETERS b=b: ENDIF 

&lt;/PRE&gt;

Now, I`ve got a dream of two editable dimensions &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
I tried this, but its not working:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;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:  ENDIF 
&lt;/PRE&gt;

It seems that the only way to get it done are parametric nodes...</description>
      <pubDate>Thu, 16 Apr 2009 09:59:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118748#M24598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-16T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118749#M24599</link>
      <description>I can't follow the full logic of your object. &lt;BR /&gt;
Why two "IF" statement with the same condition? (num=101)&lt;BR /&gt;
And what is the "num" parameter for?&lt;BR /&gt;
&lt;BR /&gt;
Another thing, I had many problems, in past version of GDL, with the &lt;B&gt;ENDIF&lt;/B&gt; or &lt;B&gt;ELSE &lt;/B&gt;command placed at the end of a row that contains the colon sign (&lt;B&gt;:&lt;/B&gt;). Not sure if this has been corrected, but I've stopped to use that. &lt;BR /&gt;
&lt;BR /&gt;
Finally, here:&lt;PRE&gt;IF num=101  THEN 
   b=zzyzx/3.66666: PARAMETERS b=b: 
   zzyzx=b*3.66666: PARAMETERS zzyzx=zzyzx:  ENDIF 
&lt;/PRE&gt; &lt;BR /&gt;
I see a recursive parameter change. &lt;B&gt;B&lt;/B&gt; is changed using &lt;B&gt;zzyzx&lt;/B&gt; value, then &lt;B&gt;zzyzx&lt;/B&gt; is changed using  the changed &lt;B&gt;B&lt;/B&gt; value. I don't know how experienced you are in GDL, so I'm not sure if you really want this, or if this is an attempt of a workaround... I suspect you have to study the &lt;B&gt;GLOB_MODPAR_NAME&lt;/B&gt; global variable.</description>
      <pubDate>Thu, 16 Apr 2009 20:22:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118749#M24599</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2009-04-16T20:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118750#M24600</link>
      <description>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.</description>
      <pubDate>Thu, 16 Apr 2009 21:16:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118750#M24600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-16T21:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118751#M24601</link>
      <description>&lt;BLOCKQUOTE&gt;Perhaps it would be easier to define the profile parametrically&lt;/BLOCKQUOTE&gt;
Sure. But that's more for programmers than designers.  &lt;BR /&gt;
In the long term, learning good GDL programming gives you the best ArchiCAD tool. &lt;BR /&gt;
People ask for a solution in the exact moment they need it, but learning requires time. We can suggest to take the opportunity to START studying... with the help of a good book!</description>
      <pubDate>Fri, 17 Apr 2009 06:11:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118751#M24601</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2009-04-17T06:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118752#M24602</link>
      <description>I`ve been learning GDL for 2 months and there is a long way ahead, but I got a task and a deadline so I must get it done with my current low knowledge.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;
Why two "IF" statement with the same condition? (num=101)&lt;BR /&gt;
And what is the "num" parameter for?
&lt;/BLOCKQUOTE&gt;

the "num" parameter is connected with value list, i.e. 101 means "profile nr1"&lt;BR /&gt;
The object is based on Archicad mouldning library, I just changed some scripts and nodes. There are scripts which I dont fully understand so I just left them untouched.&lt;BR /&gt;

 &lt;BLOCKQUOTE&gt;
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.
&lt;/BLOCKQUOTE&gt;

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.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, big thanks for your help and time. I`ll try to find some alternative way with help of Cookbook and GDL manual.&lt;BR /&gt;
&lt;BR /&gt;
Pozdrawiam  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Lukas</description>
      <pubDate>Fri, 17 Apr 2009 10:11:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118752#M24602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-17T10:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118753#M24603</link>
      <description>OK I understand the situation - sorry about my earlier post.&lt;BR /&gt;
&lt;BR /&gt;
Perhaps the easiest way to create a bunch of profiles would be to draw them in an ArchiCAD plan view window as fill polygons. Then you could drag the fill polygons into the 2D script of an object to convert them to GDL script. From that point, its easy to copy/paste the polygon definitions into the 3D script, and adjust the status values (if required) to produce 3D elements.&lt;BR /&gt;
&lt;BR /&gt;
Just a couple of things about this approach:&lt;BR /&gt;
- To create the fill polygons, draw the outline with a polyline then spacebar-click to create a fill polygon. Adjust the magic wand settings to control the number of resulting edges.&lt;BR /&gt;
- Create the fill polygons at the project origin.&lt;BR /&gt;
- 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.</description>
      <pubDate>Sun, 19 Apr 2009 21:28:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118753#M24603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-19T21:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118754#M24604</link>
      <description>&lt;BLOCKQUOTE&gt;Andrew wrote:&lt;BR /&gt;- 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.&lt;/BLOCKQUOTE&gt;

I drag into the Interface Script if that is not being used.&lt;BR /&gt;
This seems to work just as well as dragging into the 2D Script.&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 20 Apr 2009 06:53:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118754#M24604</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2009-04-20T06:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline nodes to parametric form</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118755#M24605</link>
      <description>Why not try &lt;B&gt;MUL&lt;/B&gt; or &lt;B&gt;XFORM&lt;/B&gt; transformation?</description>
      <pubDate>Thu, 23 Apr 2009 02:05:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polyline-nodes-to-parametric-form/m-p/118755#M24605</guid>
      <dc:creator>LiHigh</dc:creator>
      <dc:date>2009-04-23T02:05:19Z</dc:date>
    </item>
  </channel>
</rss>

