<?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: GDL Parameter with text in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139779#M14378</link>
    <description>Luís:&lt;BR /&gt;
&lt;BR /&gt;
This can be done in the Parameter Script, in the GDL Reference Guide look at the &lt;FONT color="blue"&gt;VALUES&lt;/FONT&gt; command. In your case something like:&lt;BR /&gt;
&lt;BR /&gt;
Values "Position" "Left", "Center", "Right"&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Tue, 23 Apr 2013 12:20:12 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2013-04-23T12:20:12Z</dc:date>
    <item>
      <title>GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139778#M14377</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I would like to create a parameter like integer but with text, &lt;BR /&gt;
&lt;BR /&gt;
Like: &lt;BR /&gt;
&lt;BR /&gt;
Option a: Left, Center, Right.&lt;BR /&gt;
&lt;BR /&gt;
and then use it for my 3d script.&lt;BR /&gt;
&lt;BR /&gt;
with integer i can only do it with 1, 2 or 3 not with text. Is there anyone that can help me please?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:58:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139778#M14377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T11:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139779#M14378</link>
      <description>Luís:&lt;BR /&gt;
&lt;BR /&gt;
This can be done in the Parameter Script, in the GDL Reference Guide look at the &lt;FONT color="blue"&gt;VALUES&lt;/FONT&gt; command. In your case something like:&lt;BR /&gt;
&lt;BR /&gt;
Values "Position" "Left", "Center", "Right"&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 23 Apr 2013 12:20:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139779#M14378</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2013-04-23T12:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139780#M14379</link>
      <description>I already tried it, I created a values thing, but that it says variable not initialized, how can I link that to a parameter?!? I'm not getting that part. &lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help</description>
      <pubDate>Tue, 23 Apr 2013 12:31:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139780#M14379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T12:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139781#M14380</link>
      <description>Luís:&lt;BR /&gt;
&lt;BR /&gt;
You need to create a parameter (&lt;FONT color="blue"&gt;Position&lt;/FONT&gt; in my example) and set its Type to Text. Note the use of quotes and commas (GDL is unforgiving). Post some screen shots of your main Library Part window (showing the parameters), Parameters Script and error message.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 23 Apr 2013 12:53:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139781#M14380</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2013-04-23T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139782#M14381</link>
      <description>I found it! Didn't know I had to add " to the variables! Now I'm having problems creating hotspots that I can move and that change the A ou B parameter... the sintax is a bit confusing, I have bought the GDL Handbook from Cadimage, but I can't break it down to something I would understand:&lt;BR /&gt;
&lt;BR /&gt;
!Dynamic hotspot to adjust length_variable along the x-axis &lt;BR /&gt;
add 2&lt;BR /&gt;
 reference_point_x, reference_point_y&lt;BR /&gt;
hotspot2 0, 0, hotspotIndex + 1, length_variable, 1 hotspot2 length_variable, 0, hotspotIndex + 2,&lt;BR /&gt;
length_variable, 2&lt;BR /&gt;
hotspot2 -1, 0, hotspotIndex + 3, length_variable, 3 hotspotIndex = hotspotIndex + 3&lt;BR /&gt;
del 1&lt;BR /&gt;
&lt;BR /&gt;
For instance what is hotspotIndex? &lt;BR /&gt;
&lt;BR /&gt;
Thanks again!</description>
      <pubDate>Thu, 25 Apr 2013 17:33:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139782#M14381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T17:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139783#M14382</link>
      <description>Each hotspot gets a unique numeric identifier (ie. 1, 2, 3, etc.)&lt;BR /&gt;
&lt;BR /&gt;
Try this&lt;BR /&gt;

&lt;PRE&gt;unID = 1
!! X movement
HOTSPOT  0,   0, 0, unID, varx, 1 : unID = unID+1 !base
HOTSPOT  varx, 0, 0, unID, varx, 2 : unID = unID+1 !move
HOTSPOT -1,   0, 0, unID, varx, 3 : unID = unID+1 !reference

!! Y movement
HOTSPOT 0,  0,   0, unID, vary, 1 : unID = unID+1 !base
HOTSPOT 0,  vary, 0, unID, vary, 2 : unID = unID+1 !move
HOTSPOT 0, -1,   0, unID, vary, 3 : unID = unID+1 !reference

!! Z movement
HOTSPOT 0, 0,  0,   unID, varz, 1 : unID = unID+1 !base
HOTSPOT 0, 0,  varz, unID, varz, 2 : unID = unID+1 !move
HOTSPOT 0, 0, -1,   unID, varz, 3 : unID = unID+1 !reference&lt;/PRE&gt;

This will give you three hotspots for the variable "vary", vary", and "varz"</description>
      <pubDate>Thu, 25 Apr 2013 19:50:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139783#M14382</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2013-04-25T19:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139784#M14383</link>
      <description>&lt;BLOCKQUOTE&gt;luisfmoreira wrote:&lt;BR /&gt;Now I'm having problems creating hotspots that I can move and that change the A ou B parameter&lt;/BLOCKQUOTE&gt;

If you are using the &lt;FONT color="blue"&gt;A&lt;/FONT&gt; and &lt;FONT color="blue"&gt;B&lt;/FONT&gt; parameters (basic width and depth), then you don't need additional code, they are already inherently stretchable if used as the boundaries of the object.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Sat, 27 Apr 2013 12:44:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139784#M14383</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2013-04-27T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139785#M14384</link>
      <description>I made it, but I don't understand it completely! I wanted to use other parameters, not only A and B! &lt;BR /&gt;
&lt;BR /&gt;
I will paste the code later, maybe someone can help me improve it! GDL is extremely flexible but it's a shame we can't edit it graphically (like with stretchable blocks in autocad!) but I'm enjoying it a lot!</description>
      <pubDate>Thu, 02 May 2013 20:42:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139785#M14384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-02T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139786#M14385</link>
      <description>I've tried using what u guys gave me to code a stretching piece of furniture, but it's always backwards!!! It stretches to the oposite size &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_neutral.gif" style="display : inline;" /&gt;&lt;BR /&gt;
When I stretch it to the right it goes left! Any ideas&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
hotspotIndex=1	&lt;BR /&gt;
 &lt;BR /&gt;
	hotspot A,       -0.06, 0,  hotspotIndex + 1, SOCLD, 1&lt;BR /&gt;
	hotspot SOCLD,       -0.06, 0,  hotspotIndex + 2, SOCLD, 2&lt;BR /&gt;
	hotspot -A-SOCLD,       -0.06, 0,  hotspotIndex + 3, SOCLD, 3&lt;BR /&gt;
	&lt;BR /&gt;
hotspotIndex = hotspotIndex + 3&lt;BR /&gt;
&lt;BR /&gt;
			PRISM_ 4, HSOCL,&lt;BR /&gt;
					0.00, 0.00          , 24, &lt;BR /&gt;
					A + SOCLD, 0.00     , 24,&lt;BR /&gt;
					A + SOCLD, ES       , 15, &lt;BR /&gt;
					0.00,      ES       ,	15</description>
      <pubDate>Fri, 10 May 2013 16:20:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139786#M14385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-10T16:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139787#M14386</link>
      <description>Mate, you are really over-complexing it... It is clear that you don't have a good feeling with GDL, but I admire your efforts, and encourage you to go on.&lt;BR /&gt;
&lt;BR /&gt;
First of all, I can't understand why you added the A variable to your desired lenght.&lt;BR /&gt;
try this:&lt;BR /&gt;

&lt;PRE&gt;hotspotIndex=1	

hotspot        0, -0.06, 0, hotspotIndex + 1, SOCLD, 1 
hotspot    SOCLD, -0.06, 0, hotspotIndex + 2, SOCLD, 2 
hotspot       -1, -0.06, 0, hotspotIndex + 3, SOCLD, 3 

hotspotIndex = hotspotIndex + 3 

PRISM_ 4, HSOCL, 
  0.00,  0.00 , 24, 
  SOCLD, 0.00 , 24, 
  SOCLD, ES ,   15, 
  0.00,  ES ,	15&lt;/PRE&gt;

Then, well, I know this is only a sniplet of the code, but to start with the simplest, I suggest you to practice with the standard variables for length (A) width (B) and height (ZZYZX), instead of define your own (SOCLD, ES, HSOCL).&lt;BR /&gt;
&lt;BR /&gt;
Finally, for very basic resize function, provided you used A,B,ZZYZX for the global sizes, one can use a macro provided by Graphisoft (is hidden in the standard library) with the simple command:&lt;BR /&gt;
CALL "Resize_A_B_ZZYZX" PARAMETERS ALL</description>
      <pubDate>Sat, 11 May 2013 09:36:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139787#M14386</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2013-05-11T09:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Parameter with text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139788#M14387</link>
      <description>You also have to be careful when using the A, B and ZZYZX parameters as they have some built in behaviors that can get tricky with dynamic hotspots.</description>
      <pubDate>Sat, 11 May 2013 16:02:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Parameter-with-text/m-p/139788#M14387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-11T16:02:06Z</dc:date>
    </item>
  </channel>
</rss>

