<?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: Textblock scaling by glob_scale in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236177#M4933</link>
    <description>Hi JGoode, &lt;BR /&gt;
look at GDL-Manual and search (CONTROL+F) for "GLOB_SCALE". &lt;BR /&gt;
At command "STW" you will find explanation. You have to multiple or divide. Make try and error in your script to DEFINE STYLE.  &lt;BR /&gt;
If you use milimeters for textsize input in UI then 1000*100. &lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_SCALE &amp;gt; 200 THEN	!!! If scale is bigger than 1:200, make  &lt;BR /&gt;
!fixed textsize &lt;BR /&gt;
TEXTSIZE = klaTreTXTsize * 1000*100/GLOB_SCALE&lt;BR /&gt;
ELSE&lt;BR /&gt;
TEXTSIZE = klaTreTXTsize * 1000&lt;BR /&gt;
ENDIF&lt;BR /&gt;
PEN klaTreTXTfa &lt;BR /&gt;
DEFINE STYLE "KlapptreppeTXT" "ISOCPEUR", TEXTSIZE , 5, 0 &lt;BR /&gt;
SET STYLE "KlapptreppeTXT" &lt;BR /&gt;
ADD2 0, TEXTSIZE / 1000*GLOB_SCALE	&lt;BR /&gt;
TEXT2 0, 0, "Klapptreppe"&lt;BR /&gt;
DEL 1 &lt;BR /&gt;
&lt;BR /&gt;
Regards Mario</description>
    <pubDate>Wed, 11 Oct 2017 13:30:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-11T13:30:23Z</dc:date>
    <item>
      <title>Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236169#M4925</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;How do I stop my text from scaling by glob_scale? there is no code to make it scale but it seems to do it automatically. It's a big inconvenience if placed on plan but the rest of the symbol doesn't show. Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:59:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236169#M4925</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-10-10T11:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236170#M4926</link>
      <description>Look into Define Style{2}, Paragraph, Set Style, Textblock and Richtext2&lt;BR /&gt;
&lt;BR /&gt;
It basically requires a fair bit of setting up, but with Textblock you can toggle fixed height.</description>
      <pubDate>Tue, 10 Oct 2017 12:15:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236170#M4926</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-10-10T12:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236171#M4927</link>
      <description>Also depending on the complexity of the object, I've found it quite easy to draw the 2D symbol and script layer visibilty in the 2D script to make the object parametric to my needs. This means you can just set up the text in the 2D window the way you like.&lt;BR /&gt;
&lt;BR /&gt;
A couple of IF...THEN statements with FRAGMENT2 and a mul2 to stop mirroring is generally all I need for simple 2D objects like electrical symbols, fire safety etc</description>
      <pubDate>Tue, 10 Oct 2017 12:35:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236171#M4927</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-10-10T12:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236172#M4928</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;Also depending on the complexity of the object, I've found it quite easy to draw the 2D symbol and script layer visibilty in the 2D script to make the object parametric to my needs. This means you can just set up the text in the 2D window the way you like.&lt;BR /&gt;
&lt;BR /&gt;
A couple of IF...THEN statements with FRAGMENT2 and a mul2 to stop mirroring is generally all I need for simple 2D objects like electrical symbols, fire safety etc&lt;/BLOCKQUOTE&gt; The object is only for layouts so it works perfectly fine for that. The issue is if someone places it on plan for whatever reason and it multiplies only the text by glob_scale automatically. The 2D symbol around it still shows however it it's multiplied by glob_scale, and I don't want it to be. I didn't know if there was a way to stop the text from scaling automatically.</description>
      <pubDate>Tue, 10 Oct 2017 13:37:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236172#M4928</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-10-10T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236173#M4929</link>
      <description>If the content of the textblock is scripted, then you need to go through all the statements I listed to set it up. Best to refer to the GDL Reference Guide to see a sample code or look up each statement, as they tend to have a lot of parameters.&lt;BR /&gt;
&lt;BR /&gt;
If the text is just some plain text, you could try just drawing the symbol in the 2D symbolic screen of object and add a few of the 2D symbol statements I mentioned in 2D script to help it behave with changing size, mirroring and such.</description>
      <pubDate>Tue, 10 Oct 2017 13:44:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236173#M4929</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-10-10T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236174#M4930</link>
      <description>I should add that layout and model views will act very annoying with objects though. Most of my simple 2D objects will look rediculous due to the view effectively being scale 1:1, making most objects huge in layout.&lt;BR /&gt;
&lt;BR /&gt;
Not sure what the object does, but I have my north arrows, title blocks and such as worksheets that I place on the master / layout for this reason.&lt;BR /&gt;
&lt;BR /&gt;
Also means that I only have to change the one worksheet and it will change on all my masters.</description>
      <pubDate>Tue, 10 Oct 2017 13:51:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236174#M4930</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-10-10T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236175#M4931</link>
      <description>In the 2D script, you can give out a warning. Something like :&lt;BR /&gt;
&lt;BR /&gt;
if glob_view_type &amp;lt;&amp;gt; 8 then&lt;BR /&gt;
	text2 0, 0, "Please place this object on Layout only."&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
HTH.</description>
      <pubDate>Tue, 10 Oct 2017 17:04:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236175#M4931</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2017-10-10T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236176#M4932</link>
      <description>When you DEFINE the font style in your script , you set the font size.&lt;BR /&gt;
You need to divide (or it may be multiply) this by the GLOB_SCALE (or A_).&lt;BR /&gt;
&lt;BR /&gt;
You may also need to divide/multiply the text position by GLOB_SCALE as well if the text is to be a desired offset from the object.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 11 Oct 2017 01:03:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236176#M4932</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-10-11T01:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Textblock scaling by glob_scale</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236177#M4933</link>
      <description>Hi JGoode, &lt;BR /&gt;
look at GDL-Manual and search (CONTROL+F) for "GLOB_SCALE". &lt;BR /&gt;
At command "STW" you will find explanation. You have to multiple or divide. Make try and error in your script to DEFINE STYLE.  &lt;BR /&gt;
If you use milimeters for textsize input in UI then 1000*100. &lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_SCALE &amp;gt; 200 THEN	!!! If scale is bigger than 1:200, make  &lt;BR /&gt;
!fixed textsize &lt;BR /&gt;
TEXTSIZE = klaTreTXTsize * 1000*100/GLOB_SCALE&lt;BR /&gt;
ELSE&lt;BR /&gt;
TEXTSIZE = klaTreTXTsize * 1000&lt;BR /&gt;
ENDIF&lt;BR /&gt;
PEN klaTreTXTfa &lt;BR /&gt;
DEFINE STYLE "KlapptreppeTXT" "ISOCPEUR", TEXTSIZE , 5, 0 &lt;BR /&gt;
SET STYLE "KlapptreppeTXT" &lt;BR /&gt;
ADD2 0, TEXTSIZE / 1000*GLOB_SCALE	&lt;BR /&gt;
TEXT2 0, 0, "Klapptreppe"&lt;BR /&gt;
DEL 1 &lt;BR /&gt;
&lt;BR /&gt;
Regards Mario</description>
      <pubDate>Wed, 11 Oct 2017 13:30:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Textblock-scaling-by-glob-scale/m-p/236177#M4933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-11T13:30:23Z</dc:date>
    </item>
  </channel>
</rss>

