<?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: Turning off 3D Editing plane from API in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Turning-off-3D-Editing-plane-from-API/m-p/629230#M9774</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think you can the menu off/on by sending the message to in menu item, here is the short code for your reference:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#include "DGApplication.hpp"

static void ForceEditingPlaneOnOff()
{
	// pushing all commands to one list

	DG::CommandArray sortedList(DG::CommandDescriptor::GetCommandTable().ConvertValues());
	DG::CommandArray::ConstIterator	iter = sortedList.Begin();

	GS::UniString searchStr("Editing Plane Display");

	while (iter != nullptr)
	{
		DG::Command cmd = (*iter)-&amp;gt;GetCommand();
		DG::CommandDescriptor* des = (*iter);
		
		bool ret = true;

		if ( des-&amp;gt;IsVisible())
		{
			if (searchStr != "")
			{
				GS::UniString targetText = des-&amp;gt;GetCleanText();

				if (searchStr == targetText) ret = true;
				else ret = false;

			}

			if (ret) {

				DG::Application&amp;amp; app = static_cast &amp;lt;DG::Application&amp;amp;&amp;gt; (*GS::Application::GetInstance ());
				ret = app.PostCommandMessage(cmd, GS::Message::Top);
				
				break;
			}
		}

		++iter;
	}

}
&lt;/LI-CODE&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 06:15:36 GMT</pubDate>
    <dc:creator>Hiromichi Shinkawa</dc:creator>
    <dc:date>2024-08-30T06:15:36Z</dc:date>
    <item>
      <title>Turning off 3D Editing plane from API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Turning-off-3D-Editing-plane-from-API/m-p/627538#M9766</link>
      <description>&lt;P&gt;How can I turn off/on the 3D editing plane from API like in Archicad?&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaszloHatvani_1-1724412675101.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/74587i110AE59A3EDCEC13/image-size/large?v=v2&amp;amp;px=999" role="button" title="LaszloHatvani_1-1724412675101.png" alt="LaszloHatvani_1-1724412675101.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2024 22:47:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Turning-off-3D-Editing-plane-from-API/m-p/627538#M9766</guid>
      <dc:creator>LaszloHatvani</dc:creator>
      <dc:date>2024-08-25T22:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Turning off 3D Editing plane from API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Turning-off-3D-Editing-plane-from-API/m-p/629230#M9774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think you can the menu off/on by sending the message to in menu item, here is the short code for your reference:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#include "DGApplication.hpp"

static void ForceEditingPlaneOnOff()
{
	// pushing all commands to one list

	DG::CommandArray sortedList(DG::CommandDescriptor::GetCommandTable().ConvertValues());
	DG::CommandArray::ConstIterator	iter = sortedList.Begin();

	GS::UniString searchStr("Editing Plane Display");

	while (iter != nullptr)
	{
		DG::Command cmd = (*iter)-&amp;gt;GetCommand();
		DG::CommandDescriptor* des = (*iter);
		
		bool ret = true;

		if ( des-&amp;gt;IsVisible())
		{
			if (searchStr != "")
			{
				GS::UniString targetText = des-&amp;gt;GetCleanText();

				if (searchStr == targetText) ret = true;
				else ret = false;

			}

			if (ret) {

				DG::Application&amp;amp; app = static_cast &amp;lt;DG::Application&amp;amp;&amp;gt; (*GS::Application::GetInstance ());
				ret = app.PostCommandMessage(cmd, GS::Message::Top);
				
				break;
			}
		}

		++iter;
	}

}
&lt;/LI-CODE&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 06:15:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Turning-off-3D-Editing-plane-from-API/m-p/629230#M9774</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2024-08-30T06:15:36Z</dc:date>
    </item>
  </channel>
</rss>

