I'm trying to create an associated dimensions in a wall, without success yet...
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? Thanks!
To get the information you need, I think it's best to make the element you want manually and then do ACAPI_Element_Get and ACAPI_Element_GetMemo 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.
In function AssociativeDimensionsOnWallThickness::Create () replace the relevant lines with: