<?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 SaveAs .obj (or .treejs) in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259848#M402</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;I try to build a 3D preview from current selected object.&lt;BR /&gt;I have seen the ACAPI_Automate (APIDo_SaveID, ...) call but it seem's limited to the API_FTypeID list.&lt;BR /&gt;&lt;BR /&gt;Is there another way to do a SaveAs for exporting the current selected item (or even all the current 3D model) to a .obj format.&lt;BR /&gt;&lt;BR /&gt;In the File-&amp;gt;Save As... command we have the .obj export.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/DIV&gt;</description>
    <pubDate>Wed, 12 Jul 2023 19:11:21 GMT</pubDate>
    <dc:creator>gehairing</dc:creator>
    <dc:date>2023-07-12T19:11:21Z</dc:date>
    <item>
      <title>SaveAs .obj (or .treejs)</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259848#M402</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;I try to build a 3D preview from current selected object.&lt;BR /&gt;I have seen the ACAPI_Automate (APIDo_SaveID, ...) call but it seem's limited to the API_FTypeID list.&lt;BR /&gt;&lt;BR /&gt;Is there another way to do a SaveAs for exporting the current selected item (or even all the current 3D model) to a .obj format.&lt;BR /&gt;&lt;BR /&gt;In the File-&amp;gt;Save As... command we have the .obj export.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jul 2023 19:11:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259848#M402</guid>
      <dc:creator>gehairing</dc:creator>
      <dc:date>2023-07-12T19:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs .obj (or .treejs)</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259849#M403</link>
      <description>&lt;BLOCKQUOTE&gt;gehairing wrote:&lt;BR /&gt;Is there another way to do a SaveAs for exporting the current selected item (or even all the current 3D model) to a .obj format.&lt;BR /&gt;
In the File-&amp;gt;Save As... command we have the .obj export.&lt;/BLOCKQUOTE&gt;
Just to clarify – do you want to add your own export filter to the "Save As…" dialog from the 3D window? For saving as .obj?</description>
      <pubDate>Fri, 19 Feb 2016 09:56:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259849#M403</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2016-02-19T09:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs .obj (or .treejs)</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259850#M404</link>
      <description>Hi Ralph,&lt;BR /&gt;
&lt;BR /&gt;
No.&lt;BR /&gt;
&lt;BR /&gt;
I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.</description>
      <pubDate>Mon, 22 Feb 2016 08:41:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259850#M404</guid>
      <dc:creator>gehairing</dc:creator>
      <dc:date>2016-02-22T08:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs .obj (or .treejs)</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259851#M405</link>
      <description>&lt;BLOCKQUOTE&gt;gehairing wrote:&lt;BR /&gt;I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.&lt;/BLOCKQUOTE&gt;
It depends on the required format for the data. You could temporarily place an instance of the library part in the project and extract its 3D geometry through ModelAccess or 3D Manager API. The temporary object can be deleted afterward. But then you would need to convert that data to the required output format.</description>
      <pubDate>Mon, 22 Feb 2016 12:08:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259851#M405</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2016-02-22T12:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs .obj (or .treejs)</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259852#M406</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;gehairing wrote:&lt;BR /&gt;I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.&lt;/BLOCKQUOTE&gt;
It depends on the required format for the data. You could temporarily place an instance of the library part in the project and extract its 3D geometry through ModelAccess or 3D Manager API. The temporary object can be deleted afterward. But then you would need to convert that data to the required output format.&lt;/BLOCKQUOTE&gt;

Actually the Wavefront add-on exports its functionality through add-on communication (take a look at the Communication_Manager / Communication_Client examples in the the devkit).&lt;BR /&gt;
&lt;BR /&gt;
The ID of the command is 'OBJO', its version is 1, and it expects a pointer to a correctly filled API_IOParams structure in the parameters. Just make sure you'll start your command from above the 3D Window with only your current object in it.&lt;BR /&gt;
&lt;BR /&gt;
Best, Ákos</description>
      <pubDate>Fri, 18 Mar 2016 17:39:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/SaveAs-obj-or-treejs/m-p/259852#M406</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2016-03-18T17:39:22Z</dc:date>
    </item>
  </channel>
</rss>

