<?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: Add-On Menu disabled after file close in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190517#M5664</link>
    <description>Thanks Ralph, I saw those codes, but I couldn't work out the relationship between the windows, the codes and the reality of the display.&lt;BR /&gt;
&lt;BR /&gt;
I'll experiment and see what works.</description>
    <pubDate>Sat, 08 Sep 2012 10:39:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-08T10:39:24Z</dc:date>
    <item>
      <title>Add-On Menu disabled after file close</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190512#M5659</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, my add on menu is disabled after a file close.&lt;BR /&gt;I added a notification handler to check the menu on file close and it reports the menu as enabled.&lt;BR /&gt;&lt;BR /&gt;How can I have my add-on menu enabled even when there is no file open, please?&lt;BR /&gt;&lt;BR /&gt;Currently I'm working with AC13 but about to shift to AC15.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:02:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190512#M5659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T15:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add-On Menu disabled after file close</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190513#M5660</link>
      <description>&lt;BLOCKQUOTE&gt;GDefina wrote:&lt;BR /&gt;Hi, my add on menu is disabled after a file close.&lt;BR /&gt;
I added a notification handler to check the menu on file close and it reports the menu as enabled.&lt;BR /&gt;
How can I have my add-on menu enabled even when there is no file open, please?&lt;/BLOCKQUOTE&gt;
That's standard behaviour as far as I know. I don't know of a method to keep the menu enabled when no project is open. You want to be careful even if you find a way because most API commands won't function without an open project.</description>
      <pubDate>Fri, 07 Sep 2012 08:44:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190513#M5660</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2012-09-07T08:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add-On Menu disabled after file close</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190514#M5661</link>
      <description>Thanks. &lt;BR /&gt;
That's unfortunate as my add-on interfaces with a Document Management System and I wanted the Open function to be able to work after a document had been closed.</description>
      <pubDate>Fri, 07 Sep 2012 08:56:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190514#M5661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-07T08:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add-On Menu disabled after file close</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190515#M5662</link>
      <description>When the project is displaying something other than the floor plan the add-on menu is disabled. Is there a mechanism to have the menu visible regardless of what is being viewed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.</description>
      <pubDate>Sat, 08 Sep 2012 10:31:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190515#M5662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-08T10:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add-On Menu disabled after file close</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190516#M5663</link>
      <description>&lt;BLOCKQUOTE&gt;GDefina wrote:&lt;BR /&gt;When the project is displaying something other than the floor plan the add-on menu is disabled. Is there a mechanism to have the menu visible regardless of what is being viewed?&lt;/BLOCKQUOTE&gt;
Yes. You can append codes to menu resources to specify when the menu is enabled, e.g. if the menu should be enabled when something is selected:&lt;PRE&gt;'STR#' 32500  "My menu" {
	/*[ 1]*/	"My Item…^S"
}&lt;/PRE&gt;
There is a code for every drawing/window type too. You can find an example and a full list of codes in the Required Resources section of the API documentation.</description>
      <pubDate>Sat, 08 Sep 2012 10:37:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190516#M5663</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2012-09-08T10:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add-On Menu disabled after file close</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190517#M5664</link>
      <description>Thanks Ralph, I saw those codes, but I couldn't work out the relationship between the windows, the codes and the reality of the display.&lt;BR /&gt;
&lt;BR /&gt;
I'll experiment and see what works.</description>
      <pubDate>Sat, 08 Sep 2012 10:39:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Add-On-Menu-disabled-after-file-close/m-p/190517#M5664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-08T10:39:24Z</dc:date>
    </item>
  </channel>
</rss>

