<?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: How to get sightPtr in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263843#M2332</link>
    <description>Thank you Tibor! I got it.</description>
    <pubDate>Wed, 22 Jul 2020 10:29:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-22T10:29:29Z</dc:date>
    <item>
      <title>How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263839#M2328</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi guys.&lt;BR /&gt;&lt;BR /&gt;I would like to export model from ARCHICAD. Different from ModelAccess_Test module which triggers the functions by "save", the requirement is to click the button on the menu. However, if I install menu handler, I could not get Modeler::SightPtr like Install_FileTypeHandler3D. I was wondering how to get Modeler::SightPtr in some other ways.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:33:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263839#M2328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263840#M2329</link>
      <description>I use ACAPI_3D_GetCurrentWindowSight but when the button is gray in 3D window...When I click it in the non-3D window, ACAPI_3D_GetCurrentWindow returns bad window.</description>
      <pubDate>Wed, 22 Jul 2020 09:41:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263840#M2329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263841#M2330</link>
      <description>Could anybody be so kind as to help me please?</description>
      <pubDate>Wed, 22 Jul 2020 09:41:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263841#M2330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T09:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263842#M2331</link>
      <description>Hi scandi,&lt;BR /&gt;
&lt;BR /&gt;
If you register a new menu item from an Add-On by default it will be enabled (not gray) only when a 2D view (floorplan) is active.&lt;BR /&gt;
But you can enable your menu items under any other view types if you modify the resource string of your menu item in your GRC file. Simply add ^E3 (= Enable in 3D) after the string title of your menu item into the GRC and it won't be gray and you will be able to use ACAPI_3D_GetCurrentWindowSight:
&lt;PRE&gt;'STR#' 32500 "My menu strings" {
/* [  1] */     "My Main Menu"
/* [  2] */         "My Menu^E3"
}&lt;/PRE&gt;

See more informations here: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Wed, 22 Jul 2020 10:13:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263842#M2331</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2020-07-22T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263843#M2332</link>
      <description>Thank you Tibor! I got it.</description>
      <pubDate>Wed, 22 Jul 2020 10:29:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263843#M2332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T10:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263844#M2333</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
Hi scandi,&lt;BR /&gt;
&lt;BR /&gt;
If you register a new menu item from an Add-On by default it will be enabled (not gray) only when a 2D view (floorplan) is active.&lt;BR /&gt;
But you can enable your menu items under any other view types if you modify the resource string of your menu item in your GRC file. Simply add ^E3 (= Enable in 3D) after the string title of your menu item into the GRC and it won't be gray and you will be able to use ACAPI_3D_GetCurrentWindowSight:
&lt;PRE&gt;'STR#' 32500 "My menu strings" {
/* [  1] */     "My Main Menu"
/* [  2] */         "My Menu^E3"
}&lt;/PRE&gt;

See more informations here: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;/A&gt;
&lt;/BLOCKQUOTE&gt;

Hi Tibor.&lt;BR /&gt;
&lt;BR /&gt;
Could you please tell me how to enable the button only in 3D window please? Is there a disable-2D string?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!</description>
      <pubDate>Thu, 23 Jul 2020 09:53:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263844#M2333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263845#M2334</link>
      <description>&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
Hi scandi,&lt;BR /&gt;
&lt;BR /&gt;
If you register a new menu item from an Add-On by default it will be enabled (not gray) only when a 2D view (floorplan) is active.&lt;BR /&gt;
But you can enable your menu items under any other view types if you modify the resource string of your menu item in your GRC file. Simply add ^E3 (= Enable in 3D) after the string title of your menu item into the GRC and it won't be gray and you will be able to use ACAPI_3D_GetCurrentWindowSight:
&lt;PRE&gt;'STR#' 32500 "My menu strings" {
/* [  1] */     "My Main Menu"
/* [  2] */         "My Menu^E3"
}&lt;/PRE&gt;

See more informations here: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;/A&gt;
&lt;/BLOCKQUOTE&gt;

Hi Tibor.&lt;BR /&gt;
&lt;BR /&gt;
Could you please tell me how to enable the button only in 3D window please? Is there a disable-2D string?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!
&lt;/BLOCKQUOTE&gt;

I find it! "^D2" will work. Maybe D2 means "Disable in 2D".</description>
      <pubDate>Thu, 23 Jul 2020 09:59:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263845#M2334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263846#M2335</link>
      <description>&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;I find it! "^D2" will work. Maybe D2 means "Disable in 2D".
&lt;/BLOCKQUOTE&gt;
Follow the link Tibor gave you - it provides all the documentation for the menu resources: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Thu, 23 Jul 2020 11:31:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263846#M2335</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-23T11:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sightPtr</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263847#M2336</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;I find it! "^D2" will work. Maybe D2 means "Disable in 2D".
&lt;/BLOCKQUOTE&gt;
Follow the link Tibor gave you - it provides all the documentation for the menu resources: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;/A&gt;
&lt;/BLOCKQUOTE&gt;

Thank you. I didn't notice that link.</description>
      <pubDate>Thu, 23 Jul 2020 16:54:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-sightPtr/m-p/263847#M2336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T16:54:43Z</dc:date>
    </item>
  </channel>
</rss>

