<?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: Modify value of layout ID in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221055#M2603</link>
    <description>What exactly does not work? To get Layout ID from "HomeDB_info" request you need to use homeDBUserID.&lt;BR /&gt;
And after to use string modification command (STRSUB)&lt;BR /&gt;
&lt;BR /&gt;
Something like that:&lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)&lt;BR /&gt;
IF homeContext=5 THEN&lt;BR /&gt;
   _LayoutID=homeDBUserId&lt;BR /&gt;
   My_LayoutID=STRSUB (My_LayoutID, 1, 4)&lt;BR /&gt;
   text2 0,0, My_LayoutID&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
If this script is not working - maybe ArchiCAD passes to _LayoutID number value instead of string. Then convert it to the string (using STR command) prior using it in STRSUB.</description>
    <pubDate>Tue, 07 May 2019 20:39:21 GMT</pubDate>
    <dc:creator>Podolsky</dc:creator>
    <dc:date>2019-05-07T20:39:21Z</dc:date>
    <item>
      <title>Modify value of layout ID</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221054#M2602</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm building a simple 2D-object. I want it to be placed on a floor plan and I want it to show the value of the layout-ID when shown on a layout. The thing is that i only want it show part of the layout-ID (like the 4 first letters) &lt;BR /&gt;
&lt;BR /&gt;
As far as i know I can´t use the auto text - &amp;lt;LAYOUTID&amp;gt; - command since the retrieved value can't be modified.&lt;BR /&gt;
&lt;BR /&gt;
I´ve been working around with  &lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)&lt;BR /&gt;
&lt;BR /&gt;
but can´t make it work. &lt;BR /&gt;
&lt;BR /&gt;
Does anyone have an idea of how to solve this?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2019 07:50:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221054#M2602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-06T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modify value of layout ID</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221055#M2603</link>
      <description>What exactly does not work? To get Layout ID from "HomeDB_info" request you need to use homeDBUserID.&lt;BR /&gt;
And after to use string modification command (STRSUB)&lt;BR /&gt;
&lt;BR /&gt;
Something like that:&lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)&lt;BR /&gt;
IF homeContext=5 THEN&lt;BR /&gt;
   _LayoutID=homeDBUserId&lt;BR /&gt;
   My_LayoutID=STRSUB (My_LayoutID, 1, 4)&lt;BR /&gt;
   text2 0,0, My_LayoutID&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
If this script is not working - maybe ArchiCAD passes to _LayoutID number value instead of string. Then convert it to the string (using STR command) prior using it in STRSUB.</description>
      <pubDate>Tue, 07 May 2019 20:39:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221055#M2603</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2019-05-07T20:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modify value of layout ID</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221056#M2604</link>
      <description>The object is to be placed on a floor plan so the returned value when using &lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;n = REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)&lt;E&gt;&lt;/E&gt; &lt;BR /&gt;
&lt;BR /&gt;
will be similar to the value returned when using&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;n = REQUEST ("Home_story", "", index, story_name)&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
When using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&amp;lt;LAYOUTID&amp;gt;&lt;E&gt;&lt;/E&gt; the returned value will be the ID of any arbitrary layout within in which the object is displayed even though the object is placed on a floor plan. &lt;BR /&gt;
&lt;BR /&gt;
So what I'm aiming at is to somehow request the ID of any arbitrary layout in which the object will be showed and then modify that value.</description>
      <pubDate>Thu, 09 May 2019 20:32:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221056#M2604</guid>
      <dc:creator>Fredrikcastilla</dc:creator>
      <dc:date>2019-05-09T20:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify value of layout ID</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221057#M2605</link>
      <description>Just to clarify, are you looking to create an object where you place it in floor plan but it automatically displays which layout it is on when opened in a layout? So a single object in floor plan would show 0001 or 0002 if those were the layouts you opened them in?&lt;BR /&gt;
&lt;BR /&gt;
I'm not sure this is possible</description>
      <pubDate>Fri, 10 May 2019 15:38:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221057#M2605</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2019-05-10T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modify value of layout ID</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221058#M2606</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;Just to clarify, are you looking to create an object where you place it in floor plan but it automatically displays which layout it is on when opened in a layout? So a single object in floor plan would show 0001 or 0002 if those were the layouts you opened them in?&lt;BR /&gt;
&lt;BR /&gt;
I'm not sure this is possible&lt;/BLOCKQUOTE&gt;

Yes, that's exactly what I mean. It would behave like the autotext but with the possibility to modify the value.</description>
      <pubDate>Sun, 12 May 2019 14:22:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modify-value-of-layout-ID/m-p/221058#M2606</guid>
      <dc:creator>Fredrikcastilla</dc:creator>
      <dc:date>2019-05-12T14:22:05Z</dc:date>
    </item>
  </channel>
</rss>

