<?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 do I know the input parameters when create an elemen in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157018#M6468</link>
    <description>&lt;BLOCKQUOTE&gt;wcyoot wrote:&lt;BR /&gt;Such as "API_MeshType" in v11,when I attampt to create it using "ACAPI_Element_Creat",I don't know what are the input parameters to set before creating.How do I?&lt;/BLOCKQUOTE&gt;
A detailed answer would be too long. Basically you need to fill in the structure for the type of element you want to create, e.g. if you want to create a line you need to fill in the 'API_LineType' structure of the union called 'API_Element'.&lt;BR /&gt;
&lt;BR /&gt;
The easiest way is to first use 'ACAPI_Element_GetDefaults', which fills in all the default settings for the element. You can then set the values of specific fields as required before calling 'ACAPI_Element_Create'.&lt;BR /&gt;
&lt;BR /&gt;
Take a look at the 'Element_Test' example bundled with the API dev kit too.</description>
    <pubDate>Tue, 02 Sep 2008 16:24:09 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2008-09-02T16:24:09Z</dc:date>
    <item>
      <title>How do I know the input parameters when create an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157017#M6467</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Such as "API_MeshType" in v11,when I attampt to create it using "ACAPI_Element_Creat",I don't know what are the input parameters to set before creating.How do I?&lt;BR /&gt;&lt;BR /&gt;I'm sorry to my bad English!&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Aug 2023 12:59:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157017#M6467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-04T12:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I know the input parameters when create an elemen</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157018#M6468</link>
      <description>&lt;BLOCKQUOTE&gt;wcyoot wrote:&lt;BR /&gt;Such as "API_MeshType" in v11,when I attampt to create it using "ACAPI_Element_Creat",I don't know what are the input parameters to set before creating.How do I?&lt;/BLOCKQUOTE&gt;
A detailed answer would be too long. Basically you need to fill in the structure for the type of element you want to create, e.g. if you want to create a line you need to fill in the 'API_LineType' structure of the union called 'API_Element'.&lt;BR /&gt;
&lt;BR /&gt;
The easiest way is to first use 'ACAPI_Element_GetDefaults', which fills in all the default settings for the element. You can then set the values of specific fields as required before calling 'ACAPI_Element_Create'.&lt;BR /&gt;
&lt;BR /&gt;
Take a look at the 'Element_Test' example bundled with the API dev kit too.</description>
      <pubDate>Tue, 02 Sep 2008 16:24:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157018#M6468</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2008-09-02T16:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I know the input parameters when create an elemen</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157019#M6469</link>
      <description>&lt;BLOCKQUOTE&gt;wcyoot wrote:&lt;BR /&gt;Such as "API_MeshType" in v11,when I attampt to create it using "ACAPI_Element_Creat",I don't know what are the input parameters to set before creating.How do I?&lt;/BLOCKQUOTE&gt;

Yep, Ralph is right. All element structures contain settings-like parameters (those are the ones that you see when you open the Settings dialog in ArchiCAD for that element), and geometrical members (those are filled in via user input, for example when the user draws a wall by clicking at the two ends). The settings parameters can be filled with ACAPI_Element_GetDefaults(), but the geometrical parameters should be filled by your add-on. In the case of a wall, at least the begC and endC members of API_WallType should contain valid coordinates.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps,&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
      <pubDate>Tue, 21 Oct 2008 04:11:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-know-the-input-parameters-when-create-an-element/m-p/157019#M6469</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2008-10-21T04:11:51Z</dc:date>
    </item>
  </channel>
</rss>

