<?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: Unable to change parameter &amp;quot;B&amp;quot; in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277209#M5607</link>
    <description>Now i ran parameter change function again after ACAPI_LibPart_GetParams, it seams that parameter have changed, but when creating object it creates object without changed "B" parameter although API shows "B" is changed value. &lt;BR /&gt;
 &lt;BR /&gt;
I'm surely missing something. Parameter update or something..</description>
    <pubDate>Wed, 17 Jun 2015 05:59:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-17T05:59:29Z</dc:date>
    <item>
      <title>Unable to change parameter "B"</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277207#M5605</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;
&lt;PRE&gt;CHCopyC ("B",chgParam.name); 
			 chgParam.realValue = Value; 
			 err = ACAPI_Goodies (APIAny_ChangeAParameterID, &amp;amp;chgParam, NULL); 
		&lt;/PRE&gt;
&lt;BR /&gt;I change parameter "B" value and after using function:
&lt;PRE&gt;err = ACAPI_LibPart_GetParams (LibIndex, &amp;amp;aa, &amp;amp;bb, &amp;amp;addParNum, &amp;amp;getParams.params) ; 
 &lt;/PRE&gt;
&lt;BR /&gt;"B" value turns back to "default" as it was before. How could i fix this so calling "B" (with ACAPI_LibPart_GetParams) returns changed value ? &lt;BR /&gt;Other parameters works fine have just problem with "A" and "B" after using ACAPI_LibPart_GetParams.&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:19:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277207#M5605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-13T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change parameter "B"</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277208#M5606</link>
      <description>&lt;PRE&gt;ACAPI_ELEMENT_MASK_SET (mask, API_ObjectType, yRatio); 
	memo.params = getParams.params;&lt;/PRE&gt; &lt;BR /&gt;
Maybe there is an issue with mask? By using mask differently could i get changed "B" after using ACAPI_LibPart_GetParams ?</description>
      <pubDate>Tue, 16 Jun 2015 10:03:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277208#M5606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change parameter "B"</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277209#M5607</link>
      <description>Now i ran parameter change function again after ACAPI_LibPart_GetParams, it seams that parameter have changed, but when creating object it creates object without changed "B" parameter although API shows "B" is changed value. &lt;BR /&gt;
 &lt;BR /&gt;
I'm surely missing something. Parameter update or something..</description>
      <pubDate>Wed, 17 Jun 2015 05:59:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277209#M5607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T05:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change parameter "B"</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277210#M5608</link>
      <description>Soooo... &lt;BR /&gt;
I didn't solve my issue, but!  &lt;BR /&gt;
By using elem.object.xRatio = valueX; &lt;BR /&gt;
		elem.object.yRatio = valueY; &lt;BR /&gt;
I did find workaround to get desired A and B positions. No idea why i couldn't change A and B.</description>
      <pubDate>Wed, 17 Jun 2015 08:46:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277210#M5608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T08:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change parameter "B"</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277211#M5609</link>
      <description>&lt;BLOCKQUOTE&gt;Rinovo wrote:&lt;BR /&gt;Soooo... &lt;BR /&gt;
I didn't solve my issue, but!  &lt;BR /&gt;
By using elem.object.xRatio = valueX; &lt;BR /&gt;
		elem.object.yRatio = valueY; &lt;BR /&gt;
I did find workaround to get desired A and B positions. No idea why i couldn't change A and B.&lt;/BLOCKQUOTE&gt;
The axial geometry of library parts is a bit messy in the API. If we're setting trying to set the axial width (for example) we set both the 'B' parameter and the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;xRatio&lt;E&gt;&lt;/E&gt; field, but it's the latter that matters. Also take note of the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;useXYFixSize&lt;E&gt;&lt;/E&gt; field –&amp;nbsp;when false, the width is calculated as &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;xRatio&lt;E&gt;&lt;/E&gt; multiplied by the default library part 'B' parameter value.</description>
      <pubDate>Wed, 17 Jun 2015 09:30:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277211#M5609</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2015-06-17T09:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change parameter "B"</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277212#M5610</link>
      <description>Thanks Ralph, for pointing out useXYFixSize. &lt;BR /&gt;
 &lt;BR /&gt;
Now i see why xRatio didn't multiply, i was already wondering why didn't it multiply. &lt;BR /&gt;
My first though was to use xRatio multiplier to calculate desired 'B' width. Turned out i can just set xRatio as desired width value.</description>
      <pubDate>Wed, 17 Jun 2015 10:39:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-change-parameter-quot-B-quot/m-p/277212#M5610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T10:39:01Z</dc:date>
    </item>
  </channel>
</rss>

