<?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 Parameter Dynamic Array Question. in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251137#M4506</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi everyone,&lt;BR /&gt;I need to create a dynamic array for angle parameters to assign to Graphical Editing Hotspot.&lt;BR /&gt;As attachment image, I created an array for number of the rebars I need but when I moved hotspot, all of them is moved because I do not know how to create a dynamic array for "angle_2" parameter. I want to move each of the rebar separately.&lt;BR /&gt;Please show me how to do it and write onto which script window for dynamic array parameters.&lt;BR /&gt;&lt;BR /&gt;P/S: When I can move each of rebar separately, then I want to know distance between selectd rebar's hotspot to both of next rebars for confirm. I thought can calculate the distance of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; to [i-1] and [i+1] elements. Then I will show them as displayParam in Graphical Editing Hotspot.&lt;BR /&gt;
&lt;PRE&gt;	angle=0
	for i=1 to iRebar_num-1
		angle=i*360/iRebar_num
		rot2 angle
			hotspot2 0, 0, unID, angle_2, 6 : unID=unID+1
			hotspot2 mRebarDis,0,unID,angle_2,4+128 : unID=unID+1
			hotspot2 (mRebarDis*cos(angle_2)),(mRebarDis*sin(angle_2)),unID,angle_2,5 : unID=unID+1
				add2	(mRebarDis*cos(angle_2)),(mRebarDis*sin(angle_2))
					poly2_b	2, 1+2+4+64, gs_fill_pen, gs_back_pen,
							0, 0, 901,
							rKei/2, 360, 4001
		del 2
	next i&lt;/PRE&gt;
Best regards,&lt;BR /&gt;Thanks so much.&lt;/DIV&gt;</description>
    <pubDate>Mon, 26 Sep 2022 20:53:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-26T20:53:32Z</dc:date>
    <item>
      <title>Parameter Dynamic Array Question.</title>
      <link>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251137#M4506</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi everyone,&lt;BR /&gt;I need to create a dynamic array for angle parameters to assign to Graphical Editing Hotspot.&lt;BR /&gt;As attachment image, I created an array for number of the rebars I need but when I moved hotspot, all of them is moved because I do not know how to create a dynamic array for "angle_2" parameter. I want to move each of the rebar separately.&lt;BR /&gt;Please show me how to do it and write onto which script window for dynamic array parameters.&lt;BR /&gt;&lt;BR /&gt;P/S: When I can move each of rebar separately, then I want to know distance between selectd rebar's hotspot to both of next rebars for confirm. I thought can calculate the distance of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; to [i-1] and [i+1] elements. Then I will show them as displayParam in Graphical Editing Hotspot.&lt;BR /&gt;
&lt;PRE&gt;	angle=0
	for i=1 to iRebar_num-1
		angle=i*360/iRebar_num
		rot2 angle
			hotspot2 0, 0, unID, angle_2, 6 : unID=unID+1
			hotspot2 mRebarDis,0,unID,angle_2,4+128 : unID=unID+1
			hotspot2 (mRebarDis*cos(angle_2)),(mRebarDis*sin(angle_2)),unID,angle_2,5 : unID=unID+1
				add2	(mRebarDis*cos(angle_2)),(mRebarDis*sin(angle_2))
					poly2_b	2, 1+2+4+64, gs_fill_pen, gs_back_pen,
							0, 0, 901,
							rKei/2, 360, 4001
		del 2
	next i&lt;/PRE&gt;
Best regards,&lt;BR /&gt;Thanks so much.&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:53:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251137#M4506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T20:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Dynamic Array Question.</title>
      <link>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251138#M4507</link>
      <description>Hey there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Try &lt;A href="https://github.com/runxel/GDL-playground/tree/master/objects/Dyn%20Hotspots" target="_blank"&gt;this one&lt;/A&gt;.&lt;BR /&gt;
Basically the idea is to store the rotation offset from the current point into an array.&lt;BR /&gt;
Good luck!</description>
      <pubDate>Mon, 08 Jun 2020 15:29:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251138#M4507</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2020-06-08T15:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Dynamic Array Question.</title>
      <link>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251139#M4508</link>
      <description>Hi Runxel,&lt;BR /&gt;
&lt;BR /&gt;
I knew you as GDL-Sublime's developer, it is great idea and amazing tool.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
P/S: Private question, do you know or can make an ArchiCAD API Add-on?&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much. &lt;BR /&gt;
Best regards,</description>
      <pubDate>Tue, 09 Jun 2020 01:30:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251139#M4508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-09T01:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Dynamic Array Question.</title>
      <link>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251140#M4509</link>
      <description>&lt;BLOCKQUOTE&gt;runxel wrote:&lt;BR /&gt;
Hey there &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Try &lt;A href="https://github.com/runxel/GDL-playground/tree/master/objects/Dyn%20Hotspots" target="_blank"&gt;this one&lt;/A&gt;.&lt;BR /&gt;
Basically the idea is to store the rotation offset from the current point into an array.&lt;BR /&gt;
Good luck!
&lt;/BLOCKQUOTE&gt;

Thank Lucas so much.&lt;BR /&gt;
It worked well and this is exactly what I want to learn. Detailed explaining from Pro with kind. I am very happy to learn something from you about GDL or API (if you doing).&lt;BR /&gt;
I am trying to learn how to write GDL more easier from GDL-Sublime of yours via XML workflow.&lt;BR /&gt;
&lt;BR /&gt;
Thank again.&lt;BR /&gt;
Best regards.&lt;BR /&gt;
HAI</description>
      <pubDate>Tue, 09 Jun 2020 03:34:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Parameter-Dynamic-Array-Question/m-p/251140#M4509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-09T03:34:36Z</dc:date>
    </item>
  </channel>
</rss>

