<?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: OMG Title Type Help in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96612#M31685</link>
    <description>Im using the latest version of Archicad10 (on mac)&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Fri, 16 Feb 2007 15:16:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-02-16T15:16:44Z</dc:date>
    <item>
      <title>OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96610#M31683</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm completely at a loss on how to create the following title type.  It seems like such a shame to have to use old fashion text and lines for titles in archicad, just because I can't seem to get it to match the standard it has to take.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help guide me through how to create a title type that matches the attached image?  Archicad ships with one that is fairly close, but doesn't have the north arrow on it, and the graphic scale looks different.&lt;BR /&gt;
&lt;BR /&gt;
Any gdl gurus able to whip this is up like its nothing?  Im no GDL guru, and Im at a complete loss.&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/71467i5596EEE821A0B63F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="TitleType.jpg" title="TitleType.jpg" /&gt;</description>
      <pubDate>Fri, 16 Feb 2007 14:28:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96610#M31683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-16T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96611#M31684</link>
      <description>Which Archicad?</description>
      <pubDate>Fri, 16 Feb 2007 15:05:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96611#M31684</guid>
      <dc:creator>Djordje</dc:creator>
      <dc:date>2007-02-16T15:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96612#M31685</link>
      <description>Im using the latest version of Archicad10 (on mac)&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 16 Feb 2007 15:16:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96612#M31685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-16T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96613#M31686</link>
      <description>You should be able to draw what you want with 2D elements, insert the Text fields you want, then use the "Save as Title Type" command under your File &amp;gt; Libraries... menu.</description>
      <pubDate>Fri, 16 Feb 2007 15:28:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96613#M31686</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-02-16T15:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96614#M31687</link>
      <description>I can get everything to work except the graphic scale.  Thats the part that trips me up.</description>
      <pubDate>Fri, 16 Feb 2007 15:32:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96614#M31687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-16T15:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96615#M31688</link>
      <description>Without GDL... that might not be possible. You would need to tie the scale to the viewport somehow, which most objects cannot do without some scripting.</description>
      <pubDate>Fri, 16 Feb 2007 15:42:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96615#M31688</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-02-16T15:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96616#M31689</link>
      <description>&lt;BLOCKQUOTE&gt;TomWaltz wrote:&lt;BR /&gt;Without GDL... that might not be possible. You would need to tie the scale to the viewport somehow, which most objects cannot do without some scripting.&lt;/BLOCKQUOTE&gt;

Right, Hence my posting here in the GDL forum.  &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I've done a few simple gdl tweaks before, but I'm going to need some guidance on this one.</description>
      <pubDate>Fri, 16 Feb 2007 15:50:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96616#M31689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-16T15:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: OMG Title Type Help</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96617#M31690</link>
      <description>The graphic scale bit is a real pain in title types. They are a little tricky in ordinary symbols, but only if you are dealing with the weirdness of Imperial scales (1/4", 3/8", 1 1/2", 20' = 1", etc...)&lt;BR /&gt;
&lt;BR /&gt;
The problem in the title types is that for some reason the drawing scale is reported not as a simple proportion as in the GLOB_SCALE parameter but as formated text. This makes it trivially easy to place the scale as a text value but quite a bit of trouble to extract the original numerical information (ie the string `1/4" = 1'-0"` is equivalent to 1:48 ). The problem is further compounded by the fact that the formated text contains seemingly arbitrary numbers of space characters making a simple mapping (brute force) technique difficult.&lt;BR /&gt;
&lt;BR /&gt;
I did work out the following solution (which I think is kind of clever actually) but I wish I hadn't needed to spend the time on it. I hope this proves useful to some of you.&lt;BR /&gt;
&lt;BR /&gt;
One word of advice: Don't try to edit or revise the "Simple Title" or "Basic Title" in the library. They are ridiculously complicated and you can probably write a basic title to meet your needs in about 30 to 50 lines of code (excluding the graphic scale mumbo jumbo of course).&lt;BR /&gt;
&lt;BR /&gt;
The following only serves to extract the integer value of the reciprocal of the scale (like the GLOB_SCALE) for use later in the 2D script to display the graphic. I can post that code later if there is interest. Note that my code disables the graphic for metric scales (ML_graphic_scale = 0) since that was not required by this client.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;drwg_scale		= -1

IF STRSTR(AC_DrawingScale, `0"`) &amp;gt; 0 	THEN 100
IF STRSTR(AC_DrawingScale, `1"`) = 1 	THEN 200
IF STRSTR(AC_DrawingScale, `:`) &amp;gt; 0 	THEN 300


100: ! ARCHITECTURAL SCALES

IF STRSTR(AC_DrawingScale, `1/128"`) = 1 	THEN drwg_scale = 1536
IF STRSTR(AC_DrawingScale, `1/64"`) = 1 	THEN drwg_scale = 768
IF STRSTR(AC_DrawingScale, `1/32"`) = 1 	THEN drwg_scale = 384
IF STRSTR(AC_DrawingScale, `1/16"`) = 1 	THEN drwg_scale = 192
IF STRSTR(AC_DrawingScale, `3/32"`)  = 1 	THEN drwg_scale = 128
IF STRSTR(AC_DrawingScale, `1/8"`)  = 1 		THEN drwg_scale = 96
IF STRSTR(AC_DrawingScale, `3/16"`)  = 1 	THEN drwg_scale = 64
IF STRSTR(AC_DrawingScale, `1/4"`)  = 1 		THEN drwg_scale = 48
IF STRSTR(AC_DrawingScale, `3/8"`)  = 1 		THEN drwg_scale = 32
IF STRSTR(AC_DrawingScale, `1/2"`)  = 1 		THEN drwg_scale = 24
IF STRSTR(AC_DrawingScale, `3/4"`)  = 1 		THEN drwg_scale = 16
IF STRSTR(AC_DrawingScale, `1"`)  = 1 		THEN drwg_scale = 12
IF STRSTR(AC_DrawingScale, `1 1/2"`)  = 1 	THEN drwg_scale = 8
IF STRSTR(AC_DrawingScale, `3"`)  = 1 		THEN drwg_scale = 4
IF STRSTR(AC_DrawingScale, `6"`)  = 1 		THEN drwg_scale = 2
IF STRSTR(AC_DrawingScale, `1'`)  = 1 		THEN drwg_scale = 1

GOTO 1000



200: ! ENGINEERING SCALES
IF STRSTR(AC_DrawingScale, `1'`) &amp;gt; 0 		THEN drwg_scale = 12
IF STRSTR(AC_DrawingScale, `2'`) &amp;gt; 0 		THEN drwg_scale = 24
IF STRSTR(AC_DrawingScale, `5'`) &amp;gt; 0 		THEN drwg_scale = 60
IF STRSTR(AC_DrawingScale, `10'`) &amp;gt; 0 		THEN drwg_scale = 120
IF STRSTR(AC_DrawingScale, `20'`) &amp;gt; 0 		THEN drwg_scale = 240
IF STRSTR(AC_DrawingScale, `30'`) &amp;gt; 0 		THEN drwg_scale = 360
IF STRSTR(AC_DrawingScale, `40'`) &amp;gt; 0 		THEN drwg_scale = 480
IF STRSTR(AC_DrawingScale, ` 50'`) &amp;gt; 0 		THEN drwg_scale = 600
IF STRSTR(AC_DrawingScale, `100'`) &amp;gt; 0 		THEN drwg_scale = 1200
IF STRSTR(AC_DrawingScale, `200'`) &amp;gt; 0 		THEN drwg_scale = 2400
IF STRSTR(AC_DrawingScale, `=500'`) &amp;gt; 0 	THEN drwg_scale = 6000
IF STRSTR(AC_DrawingScale, `1000'`) &amp;gt; 0 	THEN drwg_scale = 12000
IF STRSTR(AC_DrawingScale, `1250'`) &amp;gt; 0 	THEN drwg_scale = 15000
IF STRSTR(AC_DrawingScale, `2500'`) &amp;gt; 0 	THEN drwg_scale = 30000

GOTO 1000


300: ! METRIC SCALES
n				= STRSTR(AC_DrawingScale, `:`)
r				= SPLIT(STRSUB(AC_DrawingScale, n, 5), "%n", drwg_scale)
ML_graphic_scale	= 0

1000: ! DONE WITH SCALES &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Feb 2007 18:28:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/OMG-Title-Type-Help/m-p/96617#M31690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-17T18:28:53Z</dc:date>
    </item>
  </channel>
</rss>

