<?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: Communication Manager - saving as OBJ in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145777#M5921</link>
    <description>&lt;BLOCKQUOTE&gt;Ziv wrote:&lt;BR /&gt;
Hi,&lt;BR /&gt;
I’m running the code and the archicad is crashing every time, says it’s ucrtbase.pdb error&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to solve?
&lt;/BLOCKQUOTE&gt;

I also get this message</description>
    <pubDate>Sun, 17 Nov 2019 07:18:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-17T07:18:01Z</dc:date>
    <item>
      <title>Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145770#M5914</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;First post on that Forum - hello everybody,&lt;BR /&gt;&lt;BR /&gt;Problem: I'm developing a simple add-on. At some point it should save current project (3D data) in Wavefront OBJ format. There's already an add-on for writing out OBJ format, which works fine, so I should use it from my add-on.&lt;BR /&gt;&lt;BR /&gt;Question: how do I know the MDID (module identifier) to properly call the third-party add-on from my add-on? &lt;BR /&gt;&lt;BR /&gt;I know there's Communication Manager, and I've searched the docs and this forum. Looks like this should be pretty straightforward, yet: what is the OBJ add-on MDID?&lt;BR /&gt;&lt;BR /&gt;In the doc's example they use DXF/DWG:&lt;BR /&gt;API_ModulID mdid = { 1198731108, 1322668197 }; // MDID of the DXF/DWG add-on&lt;BR /&gt;&lt;BR /&gt;Again, how they know what is the mdid of that module? How to find it?&lt;BR /&gt;&lt;BR /&gt;I'm rookie with ArchiCAD API - hope you guys can help!&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:27:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145770#M5914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-01T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145771#M5915</link>
      <description>I am trying to do the exact same thing..&lt;BR /&gt;
Anyone knows how can I find the MDID?</description>
      <pubDate>Thu, 24 Oct 2019 15:23:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145771#M5915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145772#M5916</link>
      <description>For the Wavefront add-on:&lt;BR /&gt;
&lt;BR /&gt;
API_ModulID mdid = { 1198731108, 1142057562 };&lt;BR /&gt;
&lt;BR /&gt;
so the code is something like this:&lt;BR /&gt;

&lt;PRE&gt;static void		Do_Save_ObjFile (void)
{
	IO::Location folderLoc;
	API_SpecFolderID specID = API_UserDocumentsFolderID;
	ACAPI_Environment (APIEnv_GetSpecFolderID, &amp;amp;specID, &amp;amp;folderLoc);
	IO::Name		objName ("ObjTest.obj");
	IO::Location	objFile (folderLoc, objName);

	if (!objFile.IsEmpty ()) {
		API_IOParams ioParams;
		ioParams.method = IO_SAVEAS3D;
		ioParams.refCon = 1;
		ioParams.fileLoc = &amp;amp;objFile;
		ioParams.saveFileIOName = &amp;amp;objName;
		ioParams.noDialog = true;

		GSHandle	parhdl = nullptr;
		GSErrCode	err = ACAPI_Goodies (APIAny_InitMDCLParameterListID, &amp;amp;parhdl);
		if (err == NoError) {
			if (AddParameterToCommandCall (parhdl, "ioParams", &amp;amp;ioParams)) {
				API_ModulID	mdid;
				BNZeroMemory (&amp;amp;mdid, sizeof (mdid));
				mdid.developerID = 1198731108;
				mdid.localID = 1142057562;
				ACAPI_Command_Call (&amp;amp;mdid, 'OBJO', 1, parhdl, nullptr, false);
			}
			ACAPI_Goodies (APIAny_FreeMDCLParameterListID, &amp;amp;parhdl);
		}
	}

	return;
}		// Do_Save_ObjFile
&lt;/PRE&gt;

Best, Akos</description>
      <pubDate>Thu, 24 Oct 2019 17:34:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145772#M5916</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-10-24T17:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145773#M5917</link>
      <description>Akos thank you so much!&lt;BR /&gt;
Thats very helpful!! &lt;BR /&gt;
Have a great day</description>
      <pubDate>Mon, 28 Oct 2019 11:12:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145773#M5917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145774#M5918</link>
      <description>Hello again akos, I’m having trouble making that function work, I can’t find the AddParameterToCommandCall functio. What is it?</description>
      <pubDate>Thu, 07 Nov 2019 09:02:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145774#M5918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-07T09:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145775#M5919</link>
      <description>Here is a possible implementation for AddParameterToCommandCall function:
&lt;PRE&gt;bool	AddParameterToCommandCall (GSHandle&amp;amp; parhdl, const char* parname, API_IOParams* ptr)
{
	API_MDCLParameter	par;
	BNZeroMemory (&amp;amp;par, sizeof (par));
	par.name = parname;
	par.type = MDCLPar_pointer;
	par.ptr_par = (void*) ptr;
	return ACAPI_Goodies (APIAny_AddMDCLParameterID, parhdl, &amp;amp;par) == NoError;
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:11:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145775#M5919</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-11-08T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145776#M5920</link>
      <description>Hi,&lt;BR /&gt;
I’m running the code and the archicad is crashing every time, says it’s ucrtbase.pdb error&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to solve?</description>
      <pubDate>Sun, 10 Nov 2019 14:28:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145776#M5920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-10T14:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145777#M5921</link>
      <description>&lt;BLOCKQUOTE&gt;Ziv wrote:&lt;BR /&gt;
Hi,&lt;BR /&gt;
I’m running the code and the archicad is crashing every time, says it’s ucrtbase.pdb error&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to solve?
&lt;/BLOCKQUOTE&gt;

I also get this message</description>
      <pubDate>Sun, 17 Nov 2019 07:18:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145777#M5921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-17T07:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145778#M5922</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
The 3D window has to be active when you call this function.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps, Akos</description>
      <pubDate>Mon, 02 Dec 2019 15:07:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145778#M5922</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-12-02T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145779#M5923</link>
      <description>&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
The 3D window has to be active when you call this function.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps, Akos
&lt;/BLOCKQUOTE&gt;
Yep I know, but it still crashes..</description>
      <pubDate>Mon, 02 Dec 2019 17:07:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145779#M5923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-02T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Communication Manager - saving as OBJ</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145780#M5924</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Is this plan dependent? If so, then what kind of elements cause the crash?&lt;BR /&gt;
&lt;BR /&gt;
If not, could you please send me the bug ID?&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Tue, 03 Dec 2019 09:29:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Communication-Manager-saving-as-OBJ/m-p/145780#M5924</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-12-03T09:29:55Z</dc:date>
    </item>
  </channel>
</rss>

