<?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: ARCHICAD API QUESTION in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226954#M4160</link>
    <description>Hi Ilse,&lt;BR /&gt;
&lt;BR /&gt;
I wrote you a short example code:
&lt;PRE&gt;API_Attribute composite;
BNZeroMemory (&amp;amp;composite, sizeof(API_Attribute));
composite.header.typeID = API_CompWallID;
composite.header.index  = element.wall.composite;

GSErrCode err = ACAPI_Attribute_Get (&amp;amp;composite);
if (err == NoError) {
	API_AttributeDefExt	compDefs;
	BNZeroMemory (&amp;amp;compDefs, sizeof (API_AttributeDefExt));

	err = ACAPI_Attribute_GetDefExt (API_CompWallID, composite.header.index, &amp;amp;compDefs);
	if (err == NoError) {
		// enumerate the parts
		for (short ii = 0; ii &amp;lt; composite.compWall.nComps; ++ii) {
			API_CWallComponent&amp;amp; part = (*compDefs.cwall_compItems)[ii];
			part.buildingMaterial;	/**&amp;lt; index of the building material */
			part.fillThick;			/**&amp;lt; absolute thickness of the component in m	*/
		}
		// after you modified the thickness you can save it using ACAPI_Attribute_ModifyExt
	}
	ACAPI_DisposeAttrDefsHdlsExt (&amp;amp;compDefs);
}&lt;/PRE&gt;

If you have any further questions, feel free to ask me!&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tibor</description>
    <pubDate>Fri, 10 Aug 2018 15:00:24 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2018-08-10T15:00:24Z</dc:date>
    <item>
      <title>Archicad API QUESTION</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226953#M4159</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I've got an question about the Archicad API element Quantities. &lt;BR /&gt;&lt;BR /&gt;In the API_WallQuantity you can choose: &lt;BR /&gt;- skinAThickness: Wall skin thickness on the reference line side&lt;BR /&gt;- skinBThickness: Wall skin thickness on the side opposite to the reference line&lt;BR /&gt;&lt;BR /&gt;We need the thickness of the inside part( the load-bearing part/skin of the wall) to go further with...&lt;BR /&gt;&lt;BR /&gt;But with the parameters above it really depends on where you reference line is in the wall... &lt;BR /&gt;&lt;BR /&gt;So I was wondering if there is a parameter in the API that I can use that for example search for the building material of the inside skin and than give the thickness of that part. Or is there a general thickness I can link to that part of the wall...&lt;BR /&gt;&lt;BR /&gt;I hope anyone has experience with this and can help us out. &lt;BR /&gt;&lt;BR /&gt;thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;&lt;BR /&gt;Ilse J&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 12:29:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226953#M4159</guid>
      <dc:creator>Ilse J</dc:creator>
      <dc:date>2022-12-06T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: ARCHICAD API QUESTION</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226954#M4160</link>
      <description>Hi Ilse,&lt;BR /&gt;
&lt;BR /&gt;
I wrote you a short example code:
&lt;PRE&gt;API_Attribute composite;
BNZeroMemory (&amp;amp;composite, sizeof(API_Attribute));
composite.header.typeID = API_CompWallID;
composite.header.index  = element.wall.composite;

GSErrCode err = ACAPI_Attribute_Get (&amp;amp;composite);
if (err == NoError) {
	API_AttributeDefExt	compDefs;
	BNZeroMemory (&amp;amp;compDefs, sizeof (API_AttributeDefExt));

	err = ACAPI_Attribute_GetDefExt (API_CompWallID, composite.header.index, &amp;amp;compDefs);
	if (err == NoError) {
		// enumerate the parts
		for (short ii = 0; ii &amp;lt; composite.compWall.nComps; ++ii) {
			API_CWallComponent&amp;amp; part = (*compDefs.cwall_compItems)[ii];
			part.buildingMaterial;	/**&amp;lt; index of the building material */
			part.fillThick;			/**&amp;lt; absolute thickness of the component in m	*/
		}
		// after you modified the thickness you can save it using ACAPI_Attribute_ModifyExt
	}
	ACAPI_DisposeAttrDefsHdlsExt (&amp;amp;compDefs);
}&lt;/PRE&gt;

If you have any further questions, feel free to ask me!&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tibor</description>
      <pubDate>Fri, 10 Aug 2018 15:00:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226954#M4160</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-08-10T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: ARCHICAD API QUESTION</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226955#M4161</link>
      <description>Dear Tibor, &lt;BR /&gt;
&lt;BR /&gt;
Thank you very much! We are going to try this one and if I have further question, I will contact you, thank you!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
With kind regards, &lt;BR /&gt;
&lt;BR /&gt;
Ilse</description>
      <pubDate>Mon, 13 Aug 2018 11:27:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Archicad-API-QUESTION/m-p/226955#M4161</guid>
      <dc:creator>Ilse J</dc:creator>
      <dc:date>2018-08-13T11:27:48Z</dc:date>
    </item>
  </channel>
</rss>

