<?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 String's in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/String-s/m-p/143938#M17947</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Can anyone give me some insight into Strings? I cant seem to grasp what the underlying concept in using them. &lt;BR /&gt;
&lt;BR /&gt;
For example, the following code is for a title marker I am TRYING to make. The marker detects the drawings scale and determines what scale bar to show.&lt;BR /&gt;
&lt;BR /&gt;
n = SPLIT (AC_DrawingScale, "%n:%n", num1,notUsed, num2)&lt;BR /&gt;
IF num2=100 THEN&lt;BR /&gt;
	MUL2 100,100&lt;BR /&gt;
	GOSUB 100:&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF num2=200 THEN&lt;BR /&gt;
	GOSUB 200:&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF num2=500 THEN&lt;BR /&gt;
	GOSUB 500:&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The GOSUBS refer to the various scale bars that I have drawn. I can’t claim credit for the SPLIT command- I pulled that out of another title marker (which is probably part of my problem). Can someone explain to me what I need to make this work and/or why this won’t work? The way I understand it is that num1 and num2 are return the values of scale (1:100 into num1:num2). If num2 =100 then the 1:100 scale is displayed and so on.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
AC14 on windows 7&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 May 2023 10:37:20 GMT</pubDate>
    <dc:creator>wilson83</dc:creator>
    <dc:date>2023-05-24T10:37:20Z</dc:date>
    <item>
      <title>String's</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-s/m-p/143938#M17947</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Can anyone give me some insight into Strings? I cant seem to grasp what the underlying concept in using them. &lt;BR /&gt;
&lt;BR /&gt;
For example, the following code is for a title marker I am TRYING to make. The marker detects the drawings scale and determines what scale bar to show.&lt;BR /&gt;
&lt;BR /&gt;
n = SPLIT (AC_DrawingScale, "%n:%n", num1,notUsed, num2)&lt;BR /&gt;
IF num2=100 THEN&lt;BR /&gt;
	MUL2 100,100&lt;BR /&gt;
	GOSUB 100:&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF num2=200 THEN&lt;BR /&gt;
	GOSUB 200:&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF num2=500 THEN&lt;BR /&gt;
	GOSUB 500:&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The GOSUBS refer to the various scale bars that I have drawn. I can’t claim credit for the SPLIT command- I pulled that out of another title marker (which is probably part of my problem). Can someone explain to me what I need to make this work and/or why this won’t work? The way I understand it is that num1 and num2 are return the values of scale (1:100 into num1:num2). If num2 =100 then the 1:100 scale is displayed and so on.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
AC14 on windows 7&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:37:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-s/m-p/143938#M17947</guid>
      <dc:creator>wilson83</dc:creator>
      <dc:date>2023-05-24T10:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: String's</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-s/m-p/143939#M17948</link>
      <description>wilson83:&lt;BR /&gt;
&lt;BR /&gt;
The code works for me, but you need to add the parameter &lt;FONT color="blue"&gt;AC_DrawingScale&lt;/FONT&gt; to your object for this value to be available. Also, this will not work in the library editing window 2D Full View, you need to place a view in a layout and assign this title to it for testing.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Mon, 13 Dec 2010 12:45:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-s/m-p/143939#M17948</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2010-12-13T12:45:04Z</dc:date>
    </item>
  </channel>
</rss>

