<?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 Creating assosiative dimensions in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-assosiative-dimensions/m-p/400314#M8633</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to create an associated dimensions in a wall, without success yet...&lt;/P&gt;
&lt;P&gt;I'm following the "Do_CreateAssociativeDimensions" under "Element_Basic" in the Element_Test example, and I saw there that the function creates a dimension on the narrow part of the wall while I try to create a dimension on the long part of the wall. In addition, I tried to change the inindex which didn't help me too much... I did not understand why the numbers 11 and 21 were used inside the inindex function (in the example), what these specific numbers represent, and how I am supposed to understand what numbers I should use to create a dimension on the long part of the wall?&lt;BR /&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Windows 11, Visual Studio 2019, ArchiCAD 26, C++&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:23:31 GMT</pubDate>
    <dc:creator>yahavsa</dc:creator>
    <dc:date>2024-09-16T12:23:31Z</dc:date>
    <item>
      <title>Creating assosiative dimensions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-assosiative-dimensions/m-p/400314#M8633</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to create an associated dimensions in a wall, without success yet...&lt;/P&gt;
&lt;P&gt;I'm following the "Do_CreateAssociativeDimensions" under "Element_Basic" in the Element_Test example, and I saw there that the function creates a dimension on the narrow part of the wall while I try to create a dimension on the long part of the wall. In addition, I tried to change the inindex which didn't help me too much... I did not understand why the numbers 11 and 21 were used inside the inindex function (in the example), what these specific numbers represent, and how I am supposed to understand what numbers I should use to create a dimension on the long part of the wall?&lt;BR /&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Windows 11, Visual Studio 2019, ArchiCAD 26, C++&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:23:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Creating-assosiative-dimensions/m-p/400314#M8633</guid>
      <dc:creator>yahavsa</dc:creator>
      <dc:date>2024-09-16T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating assosiative dimensions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-assosiative-dimensions/m-p/401314#M8664</link>
      <description>&lt;P&gt;Hi Yahavsa,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the information you need, I think it's best to make the element you want manually and then do &lt;STRONG&gt;ACAPI_Element_Get&lt;/STRONG&gt; and &lt;STRONG&gt;ACAPI_Element_GetMemo&lt;/STRONG&gt; to investigate the data of which it is composed. This way I found that you can make a dimension along the wall reference line the following way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In function &lt;CODE&gt;AssociativeDimensionsOnWallThickness::Create ()&lt;/CODE&gt; replace the relevant lines with:&lt;BR /&gt;&lt;LI-CODE lang="cpp"&gt;// length dim
const API_Coord dimRefPoint { 0, 0 };
const API_Vector dimDirection { 0, 1 };	// parallel to wall&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;In function &lt;CODE&gt;CreateDimension&lt;/CODE&gt; change the following lines to:&lt;BR /&gt;&lt;LI-CODE lang="cpp"&gt;dimElem.base.base.line = false;
dimElem.base.base.inIndex = (dimElemIdx == 0) ? 1 : 2;
dimElem.base.base.special = 1;&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This also fits with the documentation of the &lt;A href="https://archicadapi.graphisoft.com/documentation/api_neigid#wallneig" target="_self"&gt;Wall Neigs&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Unfortunately I wasn't able to figure out why numbers 11 and 21 are used for inIndex for the wall thickness.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps!&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2023 11:17:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Creating-assosiative-dimensions/m-p/401314#M8664</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-07T11:17:09Z</dc:date>
    </item>
  </channel>
</rss>

