<?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: How at runtime to change set of the points in the EXTRUD in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251541#M4611</link>
    <description>I am not 100% sure what you mean, but it sounds like you want to take a look at Parameter Buffer Manipulation. Commands: GET, PUT, USE and NSP.&lt;BR /&gt;
&lt;BR /&gt;
You can define parameters, grab them with PUT and then USE(NSP) for the EXTRUDE coordinates.&lt;BR /&gt;
&lt;BR /&gt;
Example taken from the GLD Reference Guide:&lt;BR /&gt;

&lt;PRE&gt;r=2: b=6: c=4: d=10
n=12
s=180/n
FOR t=0 TO 180 STEP s
PUT r+r*COS(T), c-r*SIN(t), 1
NEXT t
FOR i=1 TO 2
EXTRUDE 3+NSP/3, 0,0,d, 1+16,
0, b, 0,
2*r, b, 0,
USE(NSP),
0, b, 0
MULY -1
NEXT i
DEL 1
ADDZ d
REVOLVE 3+NSP/3, 180, 0,
0, b, 0,
2*r, b, 0,
GET(NSP),
0, b, 0&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Dec 2017 14:30:24 GMT</pubDate>
    <dc:creator>Erwin Edel</dc:creator>
    <dc:date>2017-12-07T14:30:24Z</dc:date>
    <item>
      <title>How at runtime to change set of the points in the EXTRUDE?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251539#M4609</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Really need help.&lt;BR /&gt;
&lt;BR /&gt;
I need to change set of the points in command EXTRUDE at runtime.&lt;BR /&gt;
How I can do it?&lt;BR /&gt;
&lt;BR /&gt;
EXTRUDE 15,0,0,0.01, 1+2+4+16+32,&lt;BR /&gt;
! --- set of points:&lt;BR /&gt;
   0.000000,0.000000,0,&lt;BR /&gt;
   0.683490,0.000000,0,&lt;BR /&gt;
   0.683490,0.376452,0,&lt;BR /&gt;
   0.000000,0.376452,0,&lt;BR /&gt;
   0.000000,0.000000,-1,&lt;BR /&gt;
   0.268917,0.285506,0,&lt;BR /&gt;
   0.370493,0.285506,0,&lt;BR /&gt;
   0.370493,0.178024,0,&lt;BR /&gt;
   0.268917,0.178024,0,&lt;BR /&gt;
   0.268917,0.285506,-1,&lt;BR /&gt;
   0.450810,0.208733,0,&lt;BR /&gt;
   0.526401,0.208733,0,&lt;BR /&gt;
   0.526401,0.144952,0,&lt;BR /&gt;
   0.450810,0.144952,0,&lt;BR /&gt;
   0.450810,0.208733,-1 &lt;BR /&gt;
&lt;BR /&gt;
Please help me!)&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:52:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251539#M4609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-07T12:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How at runtime to change set of the points in the EXTRUD</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251540#M4610</link>
      <description>Hi.&lt;BR /&gt;
How was this created? It looks like the coordinates come from a shape dragged to the script window or something saved as an object. You'd need to know the data before calling the command so it can be done at runtime. Depending on the final shape to be extruded, you would usually use parameters, arrays, loops and PUT, USE/GET to give the values to EXTRUDE in the script.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 07 Dec 2017 14:23:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251540#M4610</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2017-12-07T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: How at runtime to change set of the points in the EXTRUD</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251541#M4611</link>
      <description>I am not 100% sure what you mean, but it sounds like you want to take a look at Parameter Buffer Manipulation. Commands: GET, PUT, USE and NSP.&lt;BR /&gt;
&lt;BR /&gt;
You can define parameters, grab them with PUT and then USE(NSP) for the EXTRUDE coordinates.&lt;BR /&gt;
&lt;BR /&gt;
Example taken from the GLD Reference Guide:&lt;BR /&gt;

&lt;PRE&gt;r=2: b=6: c=4: d=10
n=12
s=180/n
FOR t=0 TO 180 STEP s
PUT r+r*COS(T), c-r*SIN(t), 1
NEXT t
FOR i=1 TO 2
EXTRUDE 3+NSP/3, 0,0,d, 1+16,
0, b, 0,
2*r, b, 0,
USE(NSP),
0, b, 0
MULY -1
NEXT i
DEL 1
ADDZ d
REVOLVE 3+NSP/3, 180, 0,
0, b, 0,
2*r, b, 0,
GET(NSP),
0, b, 0&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:30:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251541#M4611</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-12-07T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How at runtime to change set of the points in the EXTRUD</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251542#M4612</link>
      <description>Oh, thank You!)&lt;BR /&gt;
The text was created with GDL Code Generator Helper, that I'm trying to implement.&lt;BR /&gt;
&lt;A href="https://www.youtube.com/watch?v=XifIcdeLg3g" target="_blank"&gt;https://www.youtube.com/watch?v=XifIcdeLg3g&lt;/A&gt;&lt;BR /&gt;
The new idea to make the algorithm to: &lt;BR /&gt;
1. to draw FILL in 2d window &lt;BR /&gt;
2. select a FILL and an instance of an special object &lt;BR /&gt;
3. press the button and the coordinates of the hatch will be written to the array in the selected object &lt;BR /&gt;
4. and the object will take from the array coordinates and to do the EXTRUDE in the form of the former hatch&lt;BR /&gt;
&lt;BR /&gt;
I do not read about PUT/GET and try to use them. There's even examples in the GDL guide). &lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for the help everyone!)</description>
      <pubDate>Thu, 07 Dec 2017 15:04:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251542#M4612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-07T15:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: How at runtime to change set of the points in the EXTRUD</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251543#M4613</link>
      <description>It's really work!!!)&lt;BR /&gt;
&lt;BR /&gt;
!--- THIS:&lt;BR /&gt;
count = 15&lt;BR /&gt;
&lt;BR /&gt;
PUT   0.000000,0.000000,0&lt;BR /&gt;
PUT   0.683490,0.000000,0&lt;BR /&gt;
PUT   0.683490,0.376452,0&lt;BR /&gt;
PUT   0.000000,0.376452,0&lt;BR /&gt;
PUT   0.000000,0.000000,-1&lt;BR /&gt;
&lt;BR /&gt;
PUT   0.268917,0.285506,0&lt;BR /&gt;
PUT   0.370493,0.285506,0&lt;BR /&gt;
PUT   0.370493,0.178024,0&lt;BR /&gt;
PUT   0.268917,0.178024,0&lt;BR /&gt;
PUT   0.268917,0.285506,-1&lt;BR /&gt;
&lt;BR /&gt;
PUT   0.450810,0.208733,0&lt;BR /&gt;
PUT   0.526401,0.208733,0&lt;BR /&gt;
PUT   0.526401,0.144952,0&lt;BR /&gt;
PUT   0.450810,0.144952,0&lt;BR /&gt;
PUT   0.450810,0.208733,-1&lt;BR /&gt;
&lt;BR /&gt;
EXTRUDE count,0,0,0.01, 1+2+4+16+32,&lt;BR /&gt;
    GET(NSP)&lt;BR /&gt;
&lt;BR /&gt;
!--- AND THIS works too&lt;BR /&gt;
:&lt;BR /&gt;
! in parameter 3-dimension array TSPoints written points values&lt;BR /&gt;
&lt;BR /&gt;
count = vardim1(TSPoints)&lt;BR /&gt;
for i=1 to count&lt;BR /&gt;
  PUT TSPoints&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[1],TSPoints&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[2],TSPoints&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3]&lt;BR /&gt;
next i&lt;BR /&gt;
&lt;BR /&gt;
EXTRUDE count,0,0,0.01, 1+2+4+16+32,&lt;BR /&gt;
    GET(NSP)&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for the help everyone!)</description>
      <pubDate>Thu, 07 Dec 2017 15:45:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251543#M4613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-07T15:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How at runtime to change set of the points in the EXTRUD</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251544#M4614</link>
      <description>To help streamline a bit further, you don’t need to have PUT at the beginning of every line, e.g.&lt;BR /&gt;
&lt;BR /&gt;
PUT x1, y1, z1, s1,&lt;BR /&gt;
  x2, y2, z2, s2,&lt;BR /&gt;
  x3, y3, z3, s3</description>
      <pubDate>Fri, 08 Dec 2017 05:00:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-at-runtime-to-change-set-of-the-points-in-the-EXTRUDE/m-p/251544#M4614</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-12-08T05:00:29Z</dc:date>
    </item>
  </channel>
</rss>

