<?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: Split Home Story info in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280277#M3842</link>
    <description>If you place text (or object with text) on a story and use Autotext #DrawingID in the textfield, it will display the Drawing ID on layout, which would be GF instead of 0 I guess for your project. If "GF" is part of the the DrawingName field, you would have to split up the text string or make a range of IF ... THEN statements to setup a custom parameter based on the story number.&lt;BR /&gt;
&lt;BR /&gt;
Look at SPLIT command (page 295 in GDL Reference Guide) on how to split up a single string into multiple variables.&lt;BR /&gt;
&lt;BR /&gt;
Edit: as an example, I use an autotext textblock with #DrawingName in favour of drawing title on layout. All I want is a simple 'ground floor' 'east elevation' etc text at my gridmarker. When looking at my project in project or view map I just see that "#DrawingName" textfield, but when you place the view on layout it converts to the name of the view.</description>
    <pubDate>Tue, 03 Apr 2018 08:55:48 GMT</pubDate>
    <dc:creator>Erwin Edel</dc:creator>
    <dc:date>2018-04-03T08:55:48Z</dc:date>
    <item>
      <title>Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280274#M3839</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I was wondering how to split the home story info so instead of GF-Ground Floor it would just read GF?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Apr 2018 08:24:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280274#M3839</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-03T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280275#M3840</link>
      <description>Autotext string is #DrawingID, assuming you are using the ID field for 'GF'.</description>
      <pubDate>Tue, 03 Apr 2018 08:33:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280275#M3840</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2018-04-03T08:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280276#M3841</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;Autotext string is #DrawingID, assuming you are using the ID field for 'GF'.&lt;/BLOCKQUOTE&gt;
Sorry, I don't quite understand. How do I implement this? I want my object to read whatever the home story is and then instead of outputting the entire text e.g "GF-Ground Floor", just output GF.</description>
      <pubDate>Tue, 03 Apr 2018 08:38:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280276#M3841</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-03T08:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280277#M3842</link>
      <description>If you place text (or object with text) on a story and use Autotext #DrawingID in the textfield, it will display the Drawing ID on layout, which would be GF instead of 0 I guess for your project. If "GF" is part of the the DrawingName field, you would have to split up the text string or make a range of IF ... THEN statements to setup a custom parameter based on the story number.&lt;BR /&gt;
&lt;BR /&gt;
Look at SPLIT command (page 295 in GDL Reference Guide) on how to split up a single string into multiple variables.&lt;BR /&gt;
&lt;BR /&gt;
Edit: as an example, I use an autotext textblock with #DrawingName in favour of drawing title on layout. All I want is a simple 'ground floor' 'east elevation' etc text at my gridmarker. When looking at my project in project or view map I just see that "#DrawingName" textfield, but when you place the view on layout it converts to the name of the view.</description>
      <pubDate>Tue, 03 Apr 2018 08:55:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280277#M3842</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2018-04-03T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280278#M3843</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;If you place text (or object with text) on a story and use Autotext #DrawingID in the textfield, it will display the Drawing ID on layout, which would be GF instead of 0 I guess for your project. If "GF" is part of the the DrawingName field, you would have to split up the text string or make a range of IF ... THEN statements to setup a custom parameter based on the story number.&lt;BR /&gt;
&lt;BR /&gt;
Look at SPLIT command (page 295 in GDL Reference Guide) on how to split up a single string into multiple variables.&lt;/BLOCKQUOTE&gt;

#DrawingID doesn't seem to do anything. I tried &amp;lt;DRAWINGID&amp;gt; which gave me an output of #DrgID which is obviously not what I would like. The SPLIT command doesn't make much sense to me. &lt;BR /&gt;
&lt;BR /&gt;
I am trying to "split" the variable from this request command &lt;PRE&gt;x = REQUEST ("Home_story", "", index, story_name)&lt;/PRE&gt; I just don't know how to do it.</description>
      <pubDate>Tue, 03 Apr 2018 09:01:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280278#M3843</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-03T09:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280279#M3844</link>
      <description>I am basically after the home story but just a shortened version of it so GF instead of GF-Ground Floor or 01 instead of 01-First Floor. I need it to add it to a pre-defined zone name. I don't know if split is what I need but I need it to be automatic. So it needs to include the request home_story command.</description>
      <pubDate>Tue, 03 Apr 2018 09:43:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280279#M3844</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-03T09:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280280#M3845</link>
      <description>I have gotten this far
&lt;PRE&gt;n = SPLIT (story_name, "%s", num) 
IF n = 1 THEN
    text2 0, 0, num
ENDIF&lt;/PRE&gt;

it is currently showing as GF-Ground rather than GF-Ground Floor which is a step in the right direction but I can't get any further. I need the string to stop after the GF part. &lt;BR /&gt;
Any guidance would be appreciated,&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 03 Apr 2018 11:24:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280280#M3845</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-03T11:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Split Home Story info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280281#M3846</link>
      <description>I have answered in the GDL Center forum.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/forums/topic/split-function-problem" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/forums/topic/ ... on-problem"&gt;http://gdl.graphisoft.com/forums/topic/split-function-problem&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
But I will copy the post here as well.&lt;BR /&gt;
&lt;BR /&gt;
If your storey name is “GF-Ground Floor” then you will find that “GF-Ground” is one part of the string and “Floor” is another.&lt;BR /&gt;
 So …&lt;BR /&gt;

&lt;PRE&gt;x = REQUEST (“Home_story”, “”, index, story_name)
n = SPLIT (story_name, "%s %s", split1, split2) 
IF n THEN
    text2 0, 0.5, story_name
    text2 0, 0, split1
    text2 0, -0.5, split2
ENDIF&lt;/PRE&gt;

What you actually need to do is search for the “-” character.&lt;BR /&gt;
 Assuming this is the same for all your storeys.&lt;BR /&gt;
 Then output the required number of characters.&lt;BR /&gt;

&lt;PRE&gt;pos = STRSTR (story_name, "-")
!    text2 0, 0, pos

prefix = STRSUB (story_name, 1, pos-1)
    text2 0, -2, prefix&lt;/PRE&gt;

Of course if the prefix is always 2 characters you know this already so you can just output the first 2 characters with STRSUB.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 04 Apr 2018 06:23:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Home-Story-info/m-p/280281#M3846</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-04-04T06:23:37Z</dc:date>
    </item>
  </channel>
</rss>

