<?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 Change parameters in building Material in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597097#M9276</link>
    <description>&lt;P&gt;I want to set information into the building material parameter but can't. Can you help me ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linh_0-1711980075764.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58290iA97725D7AE0CAF48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Linh_0-1711980075764.png" alt="Linh_0-1711980075764.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 11:12:02 GMT</pubDate>
    <dc:creator>Linh</dc:creator>
    <dc:date>2024-09-17T11:12:02Z</dc:date>
    <item>
      <title>Change parameters in building Material</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597097#M9276</link>
      <description>&lt;P&gt;I want to set information into the building material parameter but can't. Can you help me ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linh_0-1711980075764.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58290iA97725D7AE0CAF48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Linh_0-1711980075764.png" alt="Linh_0-1711980075764.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:12:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597097#M9276</guid>
      <dc:creator>Linh</dc:creator>
      <dc:date>2024-09-17T11:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change parameters in building Material</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597099#M9279</link>
      <description>&lt;P&gt;Topic : I want to set information into the building material parameter but can't. Can you help me ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the code below to create the building material&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="cpp"&gt;API_Attribute fill_atr;
API_AttributeDef fill_atrdef;
API_FillLine *fillLine;
API_Polygon *poly;
API_Coord *coords;
Int32 *subpoly;
double *lineLength;
GSErrCode err;

WriteReport ("# Create the following fill attributes:");
WriteReport ("#   - solid:  \"Training Solid\"");
WriteReport ("#   - empty:  \"Training Empty\"");
WriteReport ("#   - vector: \"Training Vector\"");
WriteReport ("#   - symbol: \"Training Symbol\"");
WriteReport ("# Archicad menus must be updated");
WriteReport ("# Check the \"Fill Types...\" dialog after execution");

// APIFill_Solid
fill_atr = {};
fill_atrdef = {};

fill_atr.header.typeID = API_FilltypeID;
fill_atr.header.flags  = APIFill_ScaleWithPlan;
strcpy (fill_atr.header.name, "Training Solid");
fill_atr.filltype.subType = APIFill_Solid;

BNZeroMemory (fill_atr.filltype.bitPat, sizeof (API_Pattern));

err = ACAPI_Attribute_Create (&amp;amp;fill_atr, &amp;amp;fill_atrdef);
if (err == APIERR_ATTREXIST) { // This can not be modified
err = NoError;
}
ACAPI_DisposeAttrDefsHdls (&amp;amp;fill_atrdef);
if (err != NoError) {
WriteReport_Err ("Error while creating the solid fill", err);
} else {
WriteReport ("The solid fill \"Training Solid\" was created successfully!");
}

// APIFill_Empty
fill_atr = {};
fill_atr.header.typeID = API_FilltypeID;
fill_atr.header.flags  = APIFill_ScaleWithPlan;
strcpy (fill_atr.header.name, "Training Empty");
fill_atr.filltype.subType = APIFill_Empty;

err = ACAPI_Attribute_Create (&amp;amp;fill_atr, &amp;amp;fill_atrdef);
if (err == APIERR_ATTREXIST) { // This can not be modified
err = NoError;
}
ACAPI_DisposeAttrDefsHdls (&amp;amp;fill_atrdef);
if (err != NoError) {
WriteReport_Err ("Error while creating the empty fill", err);
} else {
WriteReport ("The empty fill \"Training Empty\" was created successfully!");
}&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;But I want to assign parameter information as shown below, but I don't know how. Can you help me ?&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linh_0-1711980420391.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58291i42D9E01E87621AFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Linh_0-1711980420391.png" alt="Linh_0-1711980420391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 27&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 20:14:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597099#M9279</guid>
      <dc:creator>Linh</dc:creator>
      <dc:date>2024-04-04T20:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change parameters in building Material</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597101#M9277</link>
      <description>&lt;P&gt;Hi Linh,&lt;BR /&gt;&lt;BR /&gt;This looks like Attribute Properties to me. Check out this &lt;A href="http://%20https://graphisoft.github.io/archicad-api-devkit/group___attribute.html#ga19ccac2a0e0facdb15ef573ec1d7d939" target="_self"&gt;ACAPI_Attribute_SetProperties&lt;/A&gt; and the others around it.&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:26:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597101#M9277</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-04-01T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change parameters in building Material</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597102#M9278</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 08:59:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597102#M9278</guid>
      <dc:creator>Linh</dc:creator>
      <dc:date>2024-04-02T08:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change parameters in building Material</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597201#M9280</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/8527"&gt;@BerndSchwarzenbacher&lt;/a&gt;&amp;nbsp;&amp;nbsp;. I tried it . I think it works quite well .&amp;nbsp;Thank you so much !&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 08:59:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-parameters-in-building-Material/m-p/597201#M9280</guid>
      <dc:creator>Linh</dc:creator>
      <dc:date>2024-04-02T08:59:14Z</dc:date>
    </item>
  </channel>
</rss>

