<?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: Range values into arrays in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13643#M40124</link>
    <description>Thanks for the help and the private exchanges, Joachim, the workaround is great.&lt;BR /&gt;
It would be easier to use directly value command with range definition into arrays,&lt;BR /&gt;
because the ability to use also a custom value if needed.&lt;BR /&gt;
GS, please, is there an issue to fix it?</description>
    <pubDate>Thu, 23 Sep 2004 13:50:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-09-23T13:50:13Z</dc:date>
    <item>
      <title>Range values into arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13639#M40120</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I try to introduce a range value into an array, without success.&lt;BR /&gt;
(for eg. with graphical hotspots, possibility to increase each angle value by step 10 degrees, or custom)&lt;BR /&gt;
I can do it for a single object, but unfortunately, not into an array.&lt;BR /&gt;
According to the manual, it seems difficult, because no variable are allowed.&lt;BR /&gt;
I am not sure to interpretate this correctly, so i hope there is perhaps a workaround.&lt;BR /&gt;
Any info appreciated.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Sep 2004 08:27:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13639#M40120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-10T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Range values into arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13640#M40121</link>
      <description>I tried it and it seem to work:&lt;BR /&gt;
Define a parameter "q" array in the Parameters list.&lt;BR /&gt;
Then write in the Parameter Script something like this:&lt;BR /&gt;
&lt;BR /&gt;
VALUES "q" 1,2,3,RANGE(5,7)&lt;BR /&gt;
&lt;BR /&gt;
If you want to change each array parameter you have to make an Interface Script, where you write something like this:&lt;BR /&gt;
&lt;BR /&gt;
UI_DIALOG ""&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD{2} q[1], 10,10,80,20&lt;BR /&gt;
UI_INFIELD{2} q[2], 10,30,80,20&lt;BR /&gt;
UI_INFIELD{2} q[3], 10,50,80,20&lt;BR /&gt;
UI_INFIELD{2} q[4], 10,70,80,20</description>
      <pubDate>Wed, 15 Sep 2004 17:13:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13640#M40121</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2004-09-15T17:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Range values into arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13641#M40122</link>
      <description>Thanks for answering, Joachim.&lt;BR /&gt;
I will try your solution tomorrow, and tell you. &lt;BR /&gt;
Thanks again.</description>
      <pubDate>Wed, 15 Sep 2004 18:49:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13641#M40122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-15T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Range values into arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13642#M40123</link>
      <description>There seems to be a bug in ArchiCAD:&lt;BR /&gt;
To use movable hotspots together with the VALUES command and RANGE is no problem.&lt;BR /&gt;
But if you use movable hotspots together with the VALUES command and RANGE and you use Array parameters within the VALUES command the VALUES command will have no function while moving your hotspots in 2D or 3D.&lt;BR /&gt;
An example:&lt;BR /&gt;
Define an array parameter named "angle" with 2 rows (angle[2]),&lt;BR /&gt;
write in the Parameter Script:&lt;BR /&gt;
&lt;BR /&gt;
VALUES "angle"  RANGE [0, 360] STEP 360, 10&lt;BR /&gt;
this does not work if you use movable hotspots,&lt;BR /&gt;
you have to do a workaround instead:&lt;BR /&gt;
&lt;BR /&gt;
FOR i=1 TO 2&lt;BR /&gt;
	FOR k=0 TO 35 STEP 1&lt;BR /&gt;
		IF angle&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&amp;gt;10*k+5 AND angle&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&amp;lt;=10*(k+2)-5 THEN angle&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;=10*(k+1)&lt;BR /&gt;
		PARAMETERS angle&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;=angle&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&lt;BR /&gt;
	NEXT k&lt;BR /&gt;
NEXT i&lt;BR /&gt;
&lt;BR /&gt;
The 2D Script with the editable hotspots look like this (from the gdl manual):&lt;BR /&gt;
&lt;BR /&gt;
LINE2    0, 0, A, 0&lt;BR /&gt;
LINE2    0, 0, A*COS(angle[1]), A*SIN(angle[1])&lt;BR /&gt;
ARC2     0, 0, 0.90*A, 0, angle[1]&lt;BR /&gt;
ARC2     0, 0, 0.60*A, 0, angle[2]&lt;BR /&gt;
&lt;BR /&gt;
unID=1&lt;BR /&gt;
HOTSPOT2 0, 0, unID : unID=unID+1     ! anchor point&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0                             , 0                            , unID, angle[1], 6 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 0.9*A                      , 0                             , unID, angle[1], 4 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 0.9*A*COS(angle[1]), 0.9*A*SIN(angle[1]), unID,  angle[1], 5 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0                             , 0                            , unID, angle[2], 6 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 0.6*A                      , 0                             , unID, angle[2], 4 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 0.6*A*COS(angle[2]), 0.6*A*SIN(angle[2]), unID,  angle[2], 5 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
Has anyone another solution?&lt;BR /&gt;
Graphisoft, please put this into your bug list!</description>
      <pubDate>Thu, 23 Sep 2004 07:14:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13642#M40123</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2004-09-23T07:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Range values into arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13643#M40124</link>
      <description>Thanks for the help and the private exchanges, Joachim, the workaround is great.&lt;BR /&gt;
It would be easier to use directly value command with range definition into arrays,&lt;BR /&gt;
because the ability to use also a custom value if needed.&lt;BR /&gt;
GS, please, is there an issue to fix it?</description>
      <pubDate>Thu, 23 Sep 2004 13:50:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Range-values-into-arrays/m-p/13643#M40124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-23T13:50:13Z</dc:date>
    </item>
  </channel>
</rss>

