<?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: Variable Not Setting in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104369#M35430</link>
    <description>If i remember well, GDL use metric system only ,and you can not set it to another.Try to remove the " symbol from the numbers</description>
    <pubDate>Tue, 03 Jan 2006 23:35:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-01-03T23:35:26Z</dc:date>
    <item>
      <title>Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104366#M35427</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;In a GDL I have a parameter named pPlatLen that is a text variable.&lt;BR /&gt;
&lt;BR /&gt;
In the PARAMETER script I have:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="darkblue"&gt;VALUES `pPlatLen` `48"`, `56"`, `60"`&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
In the MASTER script I have:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="darkblue"&gt;!!SET NUMERIC VARIABLE BASED ON TEXT VARIABLE VALUE&lt;BR /&gt;
IF `pPlatLen` = `48"` THEN&lt;BR /&gt;
  PlatLength = 48"&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF `pPlatLen` = `56"` THEN&lt;BR /&gt;
  PlatLength = 56"&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF `pPlatLen` = `60"` THEN&lt;BR /&gt;
  PlatLength = 60"&lt;BR /&gt;
ENDIF&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
In the 2D script I have:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="darkblue"&gt;&amp;lt;...snip...&amp;gt;&lt;BR /&gt;
LINE2 PlatLength + 1", 0'-0.0000", PlatLength + 3'-1", 0'-0.0000"&lt;BR /&gt;
LINE2 PlatLength + 3'-1", 0'-0.0000", PlatLength + 3'-1", 4'-3.0000"&lt;BR /&gt;
LINE2 PlatLength + 3'-1", 4'-3.0000", PlatLength + 1", 4'-3.0000"&lt;BR /&gt;
LINE2 PlatLength + 1", 4'-3.0000", PlatLength + 1", 0'-0.0000"&lt;BR /&gt;
&amp;lt;...snip...&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
The problem is that the 2D script ALWAYS believes that PlatLength is 0".  Why isn't the MASTER script assigning the values properly?  I can change the value of pPlatLen all day and nothing changes.&lt;BR /&gt;
&lt;BR /&gt;
If I put PlatLength = 48" in the 2D script right before the LINE2 calls, everything works great.&lt;BR /&gt;
&lt;BR /&gt;
What mysterious secret am I missing?!?&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Jan 2006 22:53:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104366#M35427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-03T22:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104367#M35428</link>
      <description>You are trying to set a numeric variable from a text variable. &lt;BR /&gt;
Maybe you should use a function to change the text to a number &lt;BR /&gt;
I am not very sure about this but i have found the same problem in VB6 so maybe is the same.&lt;BR /&gt;
Did you made this code?</description>
      <pubDate>Tue, 03 Jan 2006 23:19:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104367#M35428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-03T23:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104368#M35429</link>
      <description>I built it myself.  I even tried making a parameter called PlatLength and setting its value in the MASTER script, but I still got the same result.&lt;BR /&gt;
&lt;BR /&gt;
I swear I have seen this done before. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 03 Jan 2006 23:24:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104368#M35429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-03T23:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104369#M35430</link>
      <description>If i remember well, GDL use metric system only ,and you can not set it to another.Try to remove the " symbol from the numbers</description>
      <pubDate>Tue, 03 Jan 2006 23:35:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104369#M35430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-03T23:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104370#M35431</link>
      <description>&lt;BLOCKQUOTE&gt;miker wrote:&lt;BR /&gt;If i remember well, GDL use metric system only ,and you can not set it to another.Try to remove the " symbol from the numbers&lt;/BLOCKQUOTE&gt;

Nope, in the US version it works in metric -- except for a few functions.  But just adding distances works fine.</description>
      <pubDate>Tue, 03 Jan 2006 23:42:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104370#M35431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-03T23:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104371#M35432</link>
      <description>You have too much quotation marks:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#0088ff"&gt;IF `pPlatLen` = `48"` THEN...&lt;/FONT&gt; compares two explicit strings, if they are equal. They aren't, as you see. So the result is in each case zero, which means boolean false. The correct line is &lt;FONT color="#0088ff"&gt;IF pPlatLen = `48"` THEN...&lt;/FONT&gt; and compares the content of the string parameter pPlatLen with `48"`. That is, what you wanted.</description>
      <pubDate>Wed, 04 Jan 2006 00:53:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104371#M35432</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-01-04T00:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Not Setting</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104372#M35433</link>
      <description>&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt;The correct line is &lt;FONT color="#0088ff"&gt;IF pPlatLen = `48"` THEN...&lt;/FONT&gt; and compares the content of the string parameter pPlatLen with `48"`. That is, what you wanted.&lt;/BLOCKQUOTE&gt;

I swear I tried that yesterday, but just to make sure I tried it again and you're right.  Thanks!</description>
      <pubDate>Wed, 04 Jan 2006 15:34:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-Not-Setting/m-p/104372#M35433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-04T15:34:32Z</dc:date>
    </item>
  </channel>
</rss>

