<?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 access functionalities(like extrude,revolve) of GUI morph object through program. in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242726#M3820</link>
    <description>&lt;BLOCKQUOTE&gt;nikhil.negi wrote:&lt;BR /&gt;i was wondering if we can create morphs by providing a profile and extrusion or a profile and revolve axis. this functionality exists in the GUI but how do it through SDK?&lt;/BLOCKQUOTE&gt;

Currently that is not possible via API.&lt;BR /&gt;
You have to define the vertices/edges/polygons on your own.</description>
    <pubDate>Thu, 25 Jul 2019 07:37:01 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2019-07-25T07:37:01Z</dc:date>
    <item>
      <title>how to access functionalities(like extrude,revolve) of GUI morph object through program.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242723#M3817</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello Everyone,&lt;BR /&gt;&lt;BR /&gt;Note - I'm using Archicad 22 and equivalent SDK for development.&lt;BR /&gt;&lt;BR /&gt;I'm working on a program to create objects for which i have geometry information in JSON files.&lt;BR /&gt;the information is in the form of profile data, extrude begin, extrude end, revolve axis, angle of revolution etc.&lt;BR /&gt;&lt;BR /&gt;I know we can create morph objects by providing the vertices,edges,polygon to the body data and then creating the object but in GUI we can create 2d morph and then extrude it or revolve it around a given axis which is easier and more convenient &lt;BR /&gt;&lt;BR /&gt;I was wondering how can we do that through program(add on) I have gone through the Element_Basic.cpp of the examples provided with SDK but i could not find any solution for my problem i've also ready the documentation regarding morph provided with the SDK but even there i couldn't find a solution for my problem.&lt;BR /&gt;Please guide how to approach this problem. Article Links/Documenation/methods which i can use will be appreciated.&lt;BR /&gt;&lt;BR /&gt;In case I'm unclear about the problem or you require further information please do ask and i will provide it ASAP.&lt;BR /&gt;&lt;BR /&gt;Thank You in advance&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:23:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242723#M3817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-05T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to access functionalities(like extrude,revolve) of GUI morph object through program.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242724#M3818</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Please check the Do_CreateMorph example function inside Element_Basic.cpp.&lt;BR /&gt;
Steps you have to make:
&lt;LIST type="decimal"&gt;&lt;S&gt;&lt;UL&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt;Create a new body with ACAPI_Body_Create.&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt;Add vertices to the body by using ACAPI_Body_AddVertex.&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt;Use ACAPI_Body_AddEdge to create edges between the vertices.&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt;Determine polygons from edges with ACAPI_Body_AddPolygon. (Defining the normal vector is optional, but you can do that by adding normals using ACAPI_Body_AddPolyNormal.)&lt;/LI&gt;
&lt;LI&gt;&lt;S&gt;&lt;/S&gt;&lt;/LI&gt;&lt;LI&gt;Finish the body and copy it to the memo of the new morph (ACAPI_Body_Finish). Do not forget to dispose the body after you had it in the memo (ACAPI_Body_Dispose).&lt;/LI&gt;
&lt;/UL&gt;

Regards,&lt;BR /&gt;
Tibor&lt;/S&gt;&lt;/LIST&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:24:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242724#M3818</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-07-25T07:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to access functionalities(like extrude,revolve) of GUI morph object through program.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242725#M3819</link>
      <description>Hello Tibor,&lt;BR /&gt;
As I mentioned above, I went through the example you mentioned and I can see that we can create morphs by adding vertices,edges and polygons but i was wondering if we can create morphs by providing a profile and extrusion or a profile and revolve axis. this functionality exists in the GUI but how do it through SDK?</description>
      <pubDate>Thu, 25 Jul 2019 07:30:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242725#M3819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-25T07:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to access functionalities(like extrude,revolve) of GUI morph object through program.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242726#M3820</link>
      <description>&lt;BLOCKQUOTE&gt;nikhil.negi wrote:&lt;BR /&gt;i was wondering if we can create morphs by providing a profile and extrusion or a profile and revolve axis. this functionality exists in the GUI but how do it through SDK?&lt;/BLOCKQUOTE&gt;

Currently that is not possible via API.&lt;BR /&gt;
You have to define the vertices/edges/polygons on your own.</description>
      <pubDate>Thu, 25 Jul 2019 07:37:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242726#M3820</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-07-25T07:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to access functionalities(like extrude,revolve) of GUI morph object through program.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242727#M3821</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
The solution might depend on what you mean by "objects":&lt;BR /&gt;
- normal library part based objects → use GDL to create them. The Profiler goodie add-on works in a similar way, though it asks the user to draw the input profile in ARCHICAD&lt;BR /&gt;
- beams, columns → you can create a profile attribute, and refer to it&lt;BR /&gt;
- freeform →&amp;nbsp;use morphs, as Tibor suggested&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Thu, 25 Jul 2019 08:08:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242727#M3821</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-07-25T08:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to access functionalities(like extrude,revolve) of GUI morph object through program.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242728#M3822</link>
      <description>Hello again,&lt;BR /&gt;
&lt;BR /&gt;
I created some functions that would give me the vertices for the extrude from the profile and extrude vector so that i can create morph with the method mentioned in the example.&lt;BR /&gt;
but when i set 
&lt;PRE&gt;element.morph.bodyType = APIMorphBodyType_SurfaceBody;
	element.morph.edgeType = APIMorphEdgeType_SoftHiddenEdge;&lt;/PRE&gt;
It does nothing. No matter what i set these properties as, the final object is created with default properties always.&lt;BR /&gt;
I had posted a similar query where isflipped parameter of shell object was not getting set, here &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=23&amp;amp;t=67388" target="_blank"&gt;&lt;LINK_TEXT text="viewtopic.php?f=23&amp;amp;t=67388"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=23&amp;amp;t=67388&lt;/LINK_TEXT&gt;&lt;/A&gt; &lt;BR /&gt;
this seems to be similar to that problem. can you please verify if its a bug and if its not how can i set these properties programatically.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance</description>
      <pubDate>Mon, 29 Jul 2019 13:19:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-access-functionalities-like-extrude-revolve-of-GUI-morph/m-p/242728#M3822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T13:19:16Z</dc:date>
    </item>
  </channel>
</rss>

