<?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: Is &amp;lt;drawingscale&amp;gt; value a number or a string? [Drawing title with scale symbol based drawi in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356060#M1228</link>
    <description>&lt;P&gt;I am not sure how to explain this properly, but here goes.&lt;/P&gt;
&lt;P&gt;Autotext values are nothing - neither string or number.&lt;/P&gt;
&lt;P&gt;The &amp;lt;autotext&amp;gt; is just some kind of place-holder that can display the value of the autotext field, but does not actually convert the value into a usable string or number.&lt;/P&gt;
&lt;P&gt;So you can display the value, but you can not use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 00:58:07 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2022-09-16T00:58:07Z</dc:date>
    <item>
      <title>Is &lt;drawingscale&gt; value a number or a string? [Drawing title with scale symbol based drawing scale]</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356039#M1227</link>
      <description>&lt;P&gt;Hi to everyone,&lt;BR /&gt;&lt;BR /&gt;I am designing a title object with "scale symbol" for drawings. I need &amp;lt;drawingscale&amp;gt; value for make this "scale symbol".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;drawingscale&amp;gt; is one of autotext. So, are autotexts number or string? Or not both?&lt;/P&gt;&lt;P&gt;If I can use &amp;lt;drawingscale&amp;gt; value as a number (or string) I can draw scale symbol. But I couldn't do that because -I guess- autotexts are not return a number or a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-09-15 Drawing Title with Scale Symbol Based Drawing Scale.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29760i63E2602F782A0046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-09-15 Drawing Title with Scale Symbol Based Drawing Scale.png" alt="2022-09-15 Drawing Title with Scale Symbol Based Drawing Scale.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 21:06:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356039#M1227</guid>
      <dc:creator>adura</dc:creator>
      <dc:date>2022-09-15T21:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is &lt;drawingscale&gt; value a number or a string? [Drawing title with scale symbol based drawi</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356060#M1228</link>
      <description>&lt;P&gt;I am not sure how to explain this properly, but here goes.&lt;/P&gt;
&lt;P&gt;Autotext values are nothing - neither string or number.&lt;/P&gt;
&lt;P&gt;The &amp;lt;autotext&amp;gt; is just some kind of place-holder that can display the value of the autotext field, but does not actually convert the value into a usable string or number.&lt;/P&gt;
&lt;P&gt;So you can display the value, but you can not use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 00:58:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356060#M1228</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-09-16T00:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is &lt;drawingscale&gt; value a number or a string? [Drawing title with scale symbol based drawi</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356143#M1229</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is possible by creating two variables :&lt;/P&gt;&lt;P&gt;AC_OriginalDrawingScale (Text) and AC_Magnification (Real number)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the script of my object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!!!!!!!!Master script
EPS = 0.0001
unID = 1

ech_pla = SPLIT (AC_OriginalDrawingScale, "%n:%n", num1,sep,val_ech_orig)

dim_ech = 1

IF AC_Magnification &amp;gt; EPS THEN
dim_ech = val_ech_orig / (AC_Magnification/100)
ENDIF


!!!!!!!!!!Script 2D

long_esp = 1.00 
nb_div = 5
ep_ech_plan = 0.002
hach_symb = 64



PEN SYMB_VIEW_PEN


LINE2 0,0,(long_esp/dim_ech)* nb_div,0
HOTLINE2 0,0,(long_esp/dim_ech)* nb_div,0

LINE2 0, ep_ech_plan,(long_esp/dim_ech)* nb_div, ep_ech_plan
LINE2 0, -ep_ech_plan,(long_esp/dim_ech)* nb_div, -ep_ech_plan

HOTLINE2 0, ep_ech_plan,(long_esp/dim_ech)* nb_div, ep_ech_plan
HOTLINE2 0, -ep_ech_plan,(long_esp/dim_ech)* nb_div, -ep_ech_plan



FOR i=1 TO nb_div +1

LINE2 (long_esp/dim_ech)*(i-1), ep_ech_plan,(long_esp/dim_ech)*(i-1),-ep_ech_plan
HOTLINE2 (long_esp/dim_ech)*(i-1), ep_ech_plan/dim_ech,(long_esp/dim_ech)*(i-1),-ep_ech_plan/dim_ech


TEXT2 (long_esp/dim_ech)*(i-1),-ep_ech_plan, STR(long_esp*(i-1),1,0)


dist_der_num = (STW(STR(long_esp*nb_div,1,0))* GLOB_SCALE/1000)/2

IF i = nb_div +1 THEN
DEFINE STYLE "bb" pol_text,ht_text_symb,1,styl_text
SET STYLE "bb"
TEXT2 (long_esp/dim_ech)*(i-1)+dist_der_num,-ep_ech_plan, "m"

ENDIF


NEXT i

SET FILL hach_symb

FOR i=1 TO nb_div-1 STEP 2

POLY2 4, 2+4,
(long_esp/dim_ech)*(i),0,
(long_esp/dim_ech)*(i),ep_ech_plan,
(long_esp/dim_ech)*(i+1),ep_ech_plan,
(long_esp/dim_ech)*(i+1),0


NEXT i

FOR i=2 TO nb_div-1 STEP 2

POLY2 4, 2+4,
(long_esp/dim_ech)*(i),0,
(long_esp/dim_ech)*(i),-ep_ech_plan,
(long_esp/dim_ech)*(i+1),-ep_ech_plan,
(long_esp/dim_ech)*(i+1),0


NEXT i


FOR i=1 TO 10 STEP 2

POLY2 4, 2+4,
((long_esp/dim_ech)/10)*(i),0,
((long_esp/dim_ech)/10)*(i),-ep_ech_plan,
((long_esp/dim_ech)/10)*(i+1),-ep_ech_plan,
((long_esp/dim_ech)/10)*(i+1),0


NEXT i&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:32:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356143#M1229</guid>
      <dc:creator>Yves</dc:creator>
      <dc:date>2022-09-16T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is &lt;drawingscale&gt; value a number or a string? [Drawing title with scale symbol based drawi</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356148#M1230</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/2100"&gt;@adura&lt;/a&gt;&amp;nbsp;It looks like&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14214"&gt;@Yves&lt;/a&gt;&amp;nbsp;has probably given you a solution, but for reference there is also GLOB_SCALE which can be used in the &lt;U&gt;drawing space&lt;/U&gt; to set the size of text and other objects to paper space sizes. It wouldn't be suitable for a title block referencing the drawing.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 15:00:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356148#M1230</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2022-09-16T15:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is &lt;drawingscale&gt; value a number or a string? [Drawing title with scale symbol based drawi</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356276#M1231</link>
      <description>&lt;P&gt;Thanks a lot for your reply/solution &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14214"&gt;@Yves&lt;/a&gt;&amp;nbsp;... I will adapt your code to my own.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 18:43:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356276#M1231</guid>
      <dc:creator>adura</dc:creator>
      <dc:date>2022-09-18T18:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is &lt;drawingscale&gt; value a number or a string? [Drawing title with scale symbol based drawi</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356277#M1232</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11396"&gt;@DGSketcher&lt;/a&gt;.&lt;BR /&gt;I think GLOB_SCALE will not work here because the object will play on the layout.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 18:49:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-lt-drawingscale-gt-value-a-number-or-a-string-Drawing-title/m-p/356277#M1232</guid>
      <dc:creator>adura</dc:creator>
      <dc:date>2022-09-18T18:49:05Z</dc:date>
    </item>
  </channel>
</rss>

