<?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 Changing one parameter breaks other parameters in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-one-parameter-breaks-other-parameters/m-p/640429#M9985</link>
    <description>&lt;P&gt;Hello. I was trying to implement one algorithm where I am trying to update one particular property of an instance of an object in Archicad environment.&lt;BR /&gt;&lt;BR /&gt;Here exists some rectangular element:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1732104960413.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79761i096C09706254808F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_0-1732104960413.png" alt="Emkave_0-1732104960413.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It has following properties:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_1-1732105057925.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79762i2EE2BF24BCA4DE3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_1-1732105057925.png" alt="Emkave_1-1732105057925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I will try to update only one property (width) to 100...&lt;BR /&gt;&lt;BR /&gt;I use commands in this order:&lt;BR /&gt;ACAPI_LibraryPart_OpenParameters(); to open the selected object's properties,&lt;/P&gt;
&lt;P&gt;and ACAPI_LibraryPart_ChangeAParameter(), where I pass updated parameters.&lt;/P&gt;
&lt;P&gt;then I execute ACAPI_LibraryPart_CloseParameters(); to close the parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not modify anything else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end I have this result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_2-1732109266279.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79767iB2BCFE385D6C24BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_2-1732109266279.png" alt="Emkave_2-1732109266279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with these properties:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_3-1732109282108.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79768iD4981F8A10F5F615/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_3-1732109282108.png" alt="Emkave_3-1732109282108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see,the width have been changed correctly. Other properties, however, have been corrupted.&lt;BR /&gt;Do somebody know why it might happen?&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 11&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 14:04:44 GMT</pubDate>
    <dc:creator>Emkave</dc:creator>
    <dc:date>2024-11-20T14:04:44Z</dc:date>
    <item>
      <title>Changing one parameter breaks other parameters</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-one-parameter-breaks-other-parameters/m-p/640429#M9985</link>
      <description>&lt;P&gt;Hello. I was trying to implement one algorithm where I am trying to update one particular property of an instance of an object in Archicad environment.&lt;BR /&gt;&lt;BR /&gt;Here exists some rectangular element:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1732104960413.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79761i096C09706254808F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_0-1732104960413.png" alt="Emkave_0-1732104960413.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It has following properties:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_1-1732105057925.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79762i2EE2BF24BCA4DE3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_1-1732105057925.png" alt="Emkave_1-1732105057925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I will try to update only one property (width) to 100...&lt;BR /&gt;&lt;BR /&gt;I use commands in this order:&lt;BR /&gt;ACAPI_LibraryPart_OpenParameters(); to open the selected object's properties,&lt;/P&gt;
&lt;P&gt;and ACAPI_LibraryPart_ChangeAParameter(), where I pass updated parameters.&lt;/P&gt;
&lt;P&gt;then I execute ACAPI_LibraryPart_CloseParameters(); to close the parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not modify anything else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end I have this result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_2-1732109266279.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79767iB2BCFE385D6C24BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_2-1732109266279.png" alt="Emkave_2-1732109266279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with these properties:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_3-1732109282108.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79768iD4981F8A10F5F615/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emkave_3-1732109282108.png" alt="Emkave_3-1732109282108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see,the width have been changed correctly. Other properties, however, have been corrupted.&lt;BR /&gt;Do somebody know why it might happen?&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 11&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:04:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-one-parameter-breaks-other-parameters/m-p/640429#M9985</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-11-20T14:04:44Z</dc:date>
    </item>
  </channel>
</rss>

