<?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: Story Marker, maximum text width in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172904#M13883</link>
    <description>&lt;BLOCKQUOTE&gt;Tom wrote:&lt;BR /&gt;Maybe the MAX command?&lt;/BLOCKQUOTE&gt;

That is where I would start, create an argument for each story using the STW command and plug them in. Define the text style &lt;B&gt;before&lt;/B&gt; using the STW command for accuracy of the text length.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Fri, 19 Jul 2013 12:16:54 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2013-07-19T12:16:54Z</dc:date>
    <item>
      <title>Story Marker, maximum text width</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172903#M13882</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
Hope I can explain this one. I might be dreaming a bit.&lt;BR /&gt;
I want to create a story marker, that collects the story name (easy enough). &lt;BR /&gt;
But what I'm hoping, is there a way I can use the STW command to determine the length of the longest story name.&lt;BR /&gt;
For example if I have a section with storys&lt;BR /&gt;
&lt;BR /&gt;
Level Ground&lt;BR /&gt;
Level 1&lt;BR /&gt;
Level 2&lt;BR /&gt;
&lt;BR /&gt;
Level Ground is obviously the longest name, so I want to only know the width of this name.&lt;BR /&gt;
This is so I can anchor my story settings correctly.&lt;BR /&gt;
&lt;BR /&gt;
Maybe the MAX command?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:32:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172903#M13882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-19T03:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Story Marker, maximum text width</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172904#M13883</link>
      <description>&lt;BLOCKQUOTE&gt;Tom wrote:&lt;BR /&gt;Maybe the MAX command?&lt;/BLOCKQUOTE&gt;

That is where I would start, create an argument for each story using the STW command and plug them in. Define the text style &lt;B&gt;before&lt;/B&gt; using the STW command for accuracy of the text length.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Fri, 19 Jul 2013 12:16:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172904#M13883</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2013-07-19T12:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Story Marker, maximum text width</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172905#M13884</link>
      <description>Hello Tom,&lt;BR /&gt;
&lt;BR /&gt;
You might try something like;&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
define style "textstyle" "Arial", 2, 1, 0
style "textstyle"

storyName= ""
maxWidth= 0

dim t[]
n= request("STORY_INFO", "", nr, t)!--GDL Reference Guide 13 page 288
for i= 1 to nr
	storyName= t[4*(i-1)+2]
	storyWidth= STW(storyName)/1000*A_
	if storyWidth&amp;gt; maxWidth then
		maxWidth= storyWidth
	endif
next i

&lt;/PRE&gt;

&lt;BR /&gt;
Hope it works...or helps, I can't test it at the moment.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Sat, 20 Jul 2013 19:48:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172905#M13884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-20T19:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Story Marker, maximum text width</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172906#M13885</link>
      <description>Juha,&lt;BR /&gt;
That is brilliant.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  Thank you very much.&lt;BR /&gt;
I would upload the final object code on here, but it is an absolute mess as I have modified an existing one.&lt;BR /&gt;
Works a treat though.&lt;BR /&gt;
&lt;BR /&gt;
This will be useful for custom story markers with different scales.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Again&lt;BR /&gt;
Tom</description>
      <pubDate>Mon, 22 Jul 2013 01:11:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172906#M13885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-22T01:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Story Marker, maximum text width</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172907#M13886</link>
      <description>I see you are on AC16.&lt;BR /&gt;
I that case you could also upload it to &lt;A href="https://bimcomponents.com/" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://bimcomponents.com/" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;https://bimcomponents.com/&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;https://bimcomponents.com/&lt;E&gt;&lt;/E&gt;.</description>
      <pubDate>Mon, 22 Jul 2013 19:01:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Story-Marker-maximum-text-width/m-p/172907#M13886</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2013-07-22T19:01:12Z</dc:date>
    </item>
  </channel>
</rss>

