<?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: Requesting Drawing Window Type in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195569#M24007</link>
    <description>Hi David, Thanks for your advice, I have tried the GLOB_CONTEXT , &amp;amp; it just returns the number 2. I need that to actually read the Window Type.&lt;BR /&gt;
&lt;BR /&gt;
Can you elborate on the custom text?</description>
    <pubDate>Sat, 26 Sep 2009 05:16:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-26T05:16:42Z</dc:date>
    <item>
      <title>Requesting Drawing Window Type</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195567#M24005</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi Friends, &lt;BR /&gt;
This is a 2part question:&lt;BR /&gt;
firstly can you request the window type? (ie Section, Elevation, Interior Elevation, Details) I have created a simple text object but want it to be smart enough to know what kind of window its in &amp;amp; to change parameters accordingly.&lt;BR /&gt;
also, can you substitute abbreviations for actual text? ie my Elevation Marker reads NE, but in the above created object I want the WndID to come out "NorthEast". &lt;BR /&gt;
&lt;BR /&gt;
regards.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:39:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195567#M24005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting Drawing Window Type</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195568#M24006</link>
      <description>1. I think what you are looking for is... "GLOB_CONTEXT"&lt;BR /&gt;
&lt;BR /&gt;
2. Depending on the object parameters, you could set a "custom text" in lieu of the ID.</description>
      <pubDate>Sat, 26 Sep 2009 02:15:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195568#M24006</guid>
      <dc:creator>David Larrew</dc:creator>
      <dc:date>2009-09-26T02:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting Drawing Window Type</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195569#M24007</link>
      <description>Hi David, Thanks for your advice, I have tried the GLOB_CONTEXT , &amp;amp; it just returns the number 2. I need that to actually read the Window Type.&lt;BR /&gt;
&lt;BR /&gt;
Can you elborate on the custom text?</description>
      <pubDate>Sat, 26 Sep 2009 05:16:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195569#M24007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-26T05:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting Drawing Window Type</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195570#M24008</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
With either or both of these you can determine the situation quite well;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;GLOB_CONTEXT&lt;/B&gt; contains the info of the active appearance (window)&lt;BR /&gt;
AC 12 GDL Reference Guide p. 227
&lt;PRE&gt;GLOB_CONTEXT context of appearance 
1-library part editor
2-floor plan
3-3D view
4-section/elevation
5-settings dialog
6-list
7 - detail drawing
8 - layout
22 - editing feedback mode from the floor plan
23 - editing feedback mode from a 3Dview
24 - editing feedback mode from a section/elevation
28 - editing feedback mode from a layout
43 - generating as an operator from a 3D view
44 - generating as an operator from a section/elevation
46 - generating as an operator from a  list&lt;/PRE&gt;

&lt;B&gt;homeContext &lt;/B&gt;contains the info of the placement&lt;BR /&gt;
AC 12 GDL Reference Guide p. 259
&lt;PRE&gt;REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext) 
Returns in the given variables the internal ID (integer), the user ID and name (strings) of the home database (where the library part containing 
this request was placed). 
• if placed on the floor plan: the story internal ID, index as a string and name, homeContext = 1 
• if placed on a section: the section internal ID, reference IDand name, homeContext = 2 
• if placed on a detail: the detail internal ID, reference ID and name, homeContext = 3 
• if placed on a master layout: the layout internal ID, empty string and name, homeContext = 4 
• if placed on a layout: the layout internal ID, number and name, homeContext = 5 
For labels the returned data refers to the labeled element. The collected data can be used to uniquely identify elements in different ArchiCAD databases of a plan file. &lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Sat, 26 Sep 2009 11:03:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195570#M24008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-26T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting Drawing Window Type</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195571#M24009</link>
      <description>You can use the GLOB_CONTEXT like this...&lt;BR /&gt;
&lt;BR /&gt;
If GLOB_CONTEXT=(#) Then ... (you can script how you want the object to act or fill in a text value parameter to describe the window type)&lt;BR /&gt;
&lt;BR /&gt;
You can script an If/Then/Else statement to substitute the listed value (ID or custom text parameter) that you are using for your label...&lt;BR /&gt;
&lt;BR /&gt;
txtLBL=GLOB_ID  !(txtLBL text parameter = object ID)&lt;BR /&gt;
&lt;BR /&gt;
If GLOB_CONTEXT=2 Then  !(when viewed from the floor plan window)&lt;BR /&gt;
  txtLBL=custom_text  !(txtLBL = custom_text text parameter)&lt;BR /&gt;
EndIf&lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS txtLBL=txtLBL  !(txtLBL value is reflected in the GUI)</description>
      <pubDate>Sat, 26 Sep 2009 21:05:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Requesting-Drawing-Window-Type/m-p/195571#M24009</guid>
      <dc:creator>David Larrew</dc:creator>
      <dc:date>2009-09-26T21:05:14Z</dc:date>
    </item>
  </channel>
</rss>

