<?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 change 'materialsChained' false to true with custum section beam? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/587975#M9162</link>
    <description>&lt;P&gt;Does anyone other than me have this problem?&lt;BR /&gt;Or am I misunderstanding something?&lt;BR /&gt;Any advice would be helpful.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 14:15:05 GMT</pubDate>
    <dc:creator>HKM</dc:creator>
    <dc:date>2024-02-13T14:15:05Z</dc:date>
    <item>
      <title>How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/584164#M9088</link>
      <description>&lt;P&gt;Windows10 Archicad26 APIDevKit 26.3000&lt;/P&gt;
&lt;P&gt;beamSegment not has 'extrusionSurfaceMaterial' property&lt;BR /&gt;then beam with custum section can't change 'materialsChained' property false to true.&lt;/P&gt;
&lt;P&gt;How to change 'materialsChained' property false to true with beam with custum section in C++?;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:08:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/584164#M9088</guid>
      <dc:creator>HKM</dc:creator>
      <dc:date>2024-09-17T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/585037#M9110</link>
      <description>&lt;P&gt;It seems that "Do_TestMaterialChaining" in the SDK sample "Element_Test" is not working properly.&lt;BR /&gt;Is this a misunderstanding on my part?&lt;BR /&gt;It would be helpful if you could at least give me a hint.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 04:35:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/585037#M9110</guid>
      <dc:creator>HKM</dc:creator>
      <dc:date>2024-01-23T04:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/585534#M9123</link>
      <description>&lt;P&gt;Hi HKM,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes &lt;STRONG&gt;extrusionSurfaceMaterial&lt;/STRONG&gt; is only available for Column Segments.&lt;/P&gt;
&lt;P&gt;But Beam Segments can actually override each side separately, that's why there are all the different sides available as overrides (&lt;STRONG&gt;leftMaterial&lt;/STRONG&gt;, &lt;STRONG&gt;rightMaterial&lt;/STRONG&gt;....).&lt;/P&gt;
&lt;P&gt;See the documentation of &lt;STRONG&gt;API_BeamSegmentType&lt;/STRONG&gt;. This also matches the options in the beam segment settings.&lt;/P&gt;
&lt;P&gt;And there is a &lt;STRONG&gt;materialsChanged&lt;/STRONG&gt; property in beam segments that chains or unchains the 5 different sides overrides of the beam.&lt;/P&gt;
&lt;P&gt;So to my understanding also the &lt;STRONG&gt;Do_TestMaterialChaining&lt;/STRONG&gt; example is correct. (It's a bit weird because it "inverts" the chain instead of setting it to a fixed "chained" or "unchained" value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 09:17:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/585534#M9123</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-01-26T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/585607#M9129</link>
      <description>&lt;P&gt;Custom section beams do not match description.&lt;BR /&gt;For custom sections, 'Extruded material'(translated from Japanese) is displayed at the top of the material.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CustumSectionBeam.jpg" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52477i942CB0E65EFADFB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="CustumSectionBeam.jpg" alt="CustumSectionBeam.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 23:55:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/585607#M9129</guid>
      <dc:creator>HKM</dc:creator>
      <dc:date>2024-01-30T23:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/586914#M9151</link>
      <description>&lt;P&gt;Check before and after segmentation.&lt;/P&gt;
&lt;P&gt;use "Do_TestMaterialChaining()" of SDK Example "Element_Test".&lt;/P&gt;
&lt;P&gt;Archicad 22 (before segmentation)&lt;BR /&gt;modified to "overridden = true" for all materials(side/bottom/left/right/right/top).&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;case API_BeamID:
ACAPI_ELEMENT_MASK_SET (mask, API_BeamType, materialsChained);
ACAPI_ELEMENT_MASK_SET (mask, API_BeamType, sideMat);
chainingValue = &amp;amp;element.beam.materialsChained;
element.beam.sideMat.attributeIndex = 19;
element.beam.sideMat.overridden = true;
ACAPI_ELEMENT_MASK_SET (mask, API_BeamType, botMat);
element.beam.botMat.attributeIndex = 19;
element.beam.botMat.overridden = true;
ACAPI_ELEMENT_MASK_SET (mask, API_BeamType, leftMat);
element.beam.leftMat.attributeIndex = 19;
element.beam.leftMat.overridden = true;
ACAPI_ELEMENT_MASK_SET (mask, API_BeamType, rightMat);
element.beam.rightMat.attributeIndex = 19;
element.beam.rightMat.overridden = true;
ACAPI_ELEMENT_MASK_SET (mask, API_BeamType, topMat);
element.beam.topMat.attributeIndex = 19;
element.beam.topMat.overridden = true;
//--------------------------------
Result
Extrusion side surface material is chenged

//--------------------------------
Archicad24 (after segmentation)
modified to "overridden = true" for all materials(left/right/top/bottom/ends).
case API_BeamID:
BNZeroMemory (&amp;amp;memo, sizeof (API_ElementMemo));
err = ACAPI_Element_GetMemo (element.header.guid, &amp;amp;memo, APIMemoMask_BeamSegment);
for (USize idx = 0; idx &amp;lt; element.beam.nSegments; ++idx) {
chainingValue = &amp;amp;memo.beamSegments[idx].materialsChained;
memo.beamSegments[idx].leftMaterial.attributeIndex = 19;
memo.beamSegments[idx].leftMaterial.overridden = true;
memo.beamSegments[idx].rightMaterial.attributeIndex = 19;
memo.beamSegments[idx].rightMaterial.overridden = true;
memo.beamSegments[idx].topMaterial.attributeIndex = 19;
memo.beamSegments[idx].topMaterial.overridden = true;
memo.beamSegments[idx].bottomMaterial.attributeIndex = 19;
memo.beamSegments[idx].bottomMaterial.overridden = true;
memo.beamSegments[idx].endsMaterial.attributeIndex = 19;
memo.beamSegments[idx].endsMaterial.overridden = true;
*chainingValue = !*chainingValue;
}
API_Element maskElem;
ACAPI_ELEMENT_MASK_CLEAR (maskElem);
err = ACAPI_Element_Change (&amp;amp;element, &amp;amp;maskElem, &amp;amp;memo, APIMemoMask_BeamSegment, true);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Result&lt;BR /&gt;Extrusion side surface material is not chenged&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B20240206.jpg" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/52955iE6AE9A26B1A6E01E/image-size/large?v=v2&amp;amp;px=999" role="button" title="B20240206.jpg" alt="B20240206.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 01:28:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/586914#M9151</guid>
      <dc:creator>HKM</dc:creator>
      <dc:date>2024-02-10T01:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/587975#M9162</link>
      <description>&lt;P&gt;Does anyone other than me have this problem?&lt;BR /&gt;Or am I misunderstanding something?&lt;BR /&gt;Any advice would be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:15:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/587975#M9162</guid>
      <dc:creator>HKM</dc:creator>
      <dc:date>2024-02-13T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/606920#M9469</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If your problem is you're not able to change the profile beam side material with API, then it's true.&lt;/P&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 07:53:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/606920#M9469</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2024-06-07T07:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/607700#M9488</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;So does that mean I'm wrong?&lt;BR /&gt;Or is this a bug in the SDK that will be fixed?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 01:55:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/607700#M9488</guid>
      <dc:creator>HKM</dc:creator>
      <dc:date>2024-06-12T01:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to change 'materialsChained' false to true with custum section beam?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/607766#M9491</link>
      <description>&lt;P&gt;No, you're right, it's a limitation of the current SDK. I don't know whether an updated SDK can be released for AC27, but it will be solved in AC28 SDK officially.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 06:11:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-materialsChained-false-to-true-with-custum-section/m-p/607766#M9491</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2024-06-12T06:11:40Z</dc:date>
    </item>
  </channel>
</rss>

