<?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: Identifier of navigator - project plan in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214897#M5833</link>
    <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;But Can I disable in several windows like this ?? &lt;BR /&gt;
 
&lt;PRE&gt;/* [  5] */         "My menu item^D2^D3^D4"&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Yes, sure.&lt;BR /&gt;
&lt;BR /&gt;
Btw D2 is a valid control code (meaning: the command is disabled above the floor plan window), but as far as I know D3 and D4 are not. &lt;BR /&gt;
By default the commands are disabled in 3D views (until you use E3 control code for example).&lt;BR /&gt;
&lt;BR /&gt;
See valid control codes in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Required Resources&lt;E&gt;&lt;/E&gt; documentation &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Control codes&lt;E&gt;&lt;/E&gt; section.</description>
    <pubDate>Wed, 18 Dec 2013 12:15:33 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2013-12-18T12:15:33Z</dc:date>
    <item>
      <title>Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214891#M5827</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello All ! &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;Are there a function that return an identifier in what plans we are in ArchiCAD ??&lt;BR /&gt;&lt;BR /&gt;An example : We are in a view cuts, I want the identifier of the view...&lt;BR /&gt;&lt;BR /&gt;If someone understands my reasoning, Help me !&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 16:55:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214891#M5827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-01T16:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214892#M5828</link>
      <description>Are you pertaining to APIDb_GetCurrentWindowID?&lt;BR /&gt;
&lt;BR /&gt;
That is: API_WindowInfo.typeID = APIWind_SectionID</description>
      <pubDate>Wed, 11 Dec 2013 09:38:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214892#M5828</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2013-12-11T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214893#M5829</link>
      <description>Hi, &lt;BR /&gt;
 &lt;BR /&gt;
Yes, you need the APIDb_GetCurrentWindowID function to get informations of the actual window. &lt;BR /&gt;
 
&lt;PRE&gt;API_WindowInfo windowInfo; 
memset (&amp;amp;windowInfo, 0, sizeof (windowInfo)); 
ACAPI_Database (APIDb_GetCurrentWindowID, &amp;amp;windowInfo, NULL); 
 
/* You will get the following informations for the current view 
 
typedef struct { 
	API_WindowTypeID				typeID; 
	Int32							index;						// database/window index 
	API_DatabaseUnId				databaseUnId;				// database unique ID 
	API_DatabaseUnId				masterLayoutUnId;			// for Layouts only; database unique ID of the master layout 
	GS::uchar_t						title[API_UniLongNameLen];	// title of the database (generally "ref"+" "+"name") - output only 
	GS::uchar_t						name[API_UniLongNameLen];	// name of the database 
	GS::uchar_t						ref[API_UniLongNameLen];	// reference string/id of the database 
	API_Guid						linkedElement;				// element linked to the database or drawing guid if (typeID == APIWind_DrawingID) (e.g. section to a section database); the element, never the section segment! 
	API_DatabaseUnId				linkedDatabaseUnId;			// for databases linked to elements (section, detail, etc.): the database containing the element 
	Int32							linkedSegmentMemoIndex;		// for interior elevations 
	Int32							filler_1[3]; 
} API_WindowInfo; 
*/ 
 
if (windowInfo.typeID == APIWind_SectionID) { // for more window types check APIdefs_Database.h header file 
	// the current window is a section view 
}&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Best Regards, &lt;BR /&gt;
Tibor Lorántfy</description>
      <pubDate>Fri, 13 Dec 2013 12:40:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214893#M5829</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2013-12-13T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214894#M5830</link>
      <description>Thank you very much, i have resolve my problem &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
I can disable functions of my add-on in this window !</description>
      <pubDate>Tue, 17 Dec 2013 14:23:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214894#M5830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-17T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214895#M5831</link>
      <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;Thank you very much, i have resolve my problem &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
I can disable functions of my add-on in this window !&lt;/BLOCKQUOTE&gt;
If your tool is activated through a menu, you can restrict its use to specific drawing types in the resources. Take a look at the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Required Resources&lt;E&gt;&lt;/E&gt; section in the API documentation.&lt;BR /&gt;
&lt;BR /&gt;
For example, if a menu should only be enabled for the Floor Plan, it should be written like this:
&lt;PRE&gt;/* [  5] */         "My menu item^D2"&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Dec 2013 14:32:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214895#M5831</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2013-12-17T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214896#M5832</link>
      <description>Yeah, that an another way to disable my Iconbutton.&lt;BR /&gt;
&lt;BR /&gt;
But Can I disable in several windows like this ??&lt;BR /&gt;

&lt;PRE&gt;/* [  5] */         "My menu item^D2^D3^D4"&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Dec 2013 11:37:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214896#M5832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-18T11:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214897#M5833</link>
      <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;But Can I disable in several windows like this ?? &lt;BR /&gt;
 
&lt;PRE&gt;/* [  5] */         "My menu item^D2^D3^D4"&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Yes, sure.&lt;BR /&gt;
&lt;BR /&gt;
Btw D2 is a valid control code (meaning: the command is disabled above the floor plan window), but as far as I know D3 and D4 are not. &lt;BR /&gt;
By default the commands are disabled in 3D views (until you use E3 control code for example).&lt;BR /&gt;
&lt;BR /&gt;
See valid control codes in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Required Resources&lt;E&gt;&lt;/E&gt; documentation &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Control codes&lt;E&gt;&lt;/E&gt; section.</description>
      <pubDate>Wed, 18 Dec 2013 12:15:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214897#M5833</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2013-12-18T12:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Identifier of navigator - project plan</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214898#M5834</link>
      <description>I going to see in the documentation Control codes section for more information.&lt;BR /&gt;
&lt;BR /&gt;
Thank you all !</description>
      <pubDate>Fri, 20 Dec 2013 15:03:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Identifier-of-navigator-project-plan/m-p/214898#M5834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-20T15:03:21Z</dc:date>
    </item>
  </channel>
</rss>

