Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

How to create assosiative dimensions

arad
Participant

How can I create dimensions that interlock with walls, columns, etc.?

 

I looked at the following page, but the information seems to be outdated.

The structure and members seem to be different.

 

https://archicadapi.graphisoft.com/documentation/frequently-asked-questions?s=dimension#FAQ_3

https://community.graphisoft.com/t5/Developer-forum/Dimensions/m-p/84474

 

Do you have a sample code?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hello Arad,

 

Oh, maybe you have an older version of the DevKit. Let me enclose that part of the code.

 

Best, Akos

View solution in original post

5 REPLIES 5
Akos Somorjai
Graphisoft
Graphisoft

Hello,

 

Please take a look at the Do_CreateAssociativeDimensions() example code in Element_Basics.cpp.

 

Best, Akos

Hello, Akos.

 

 

Thank you very much.

However, I cannot find Do_CreateAssociativeDimensions.
Do_CreateStaticDimension is there.

 

Am I looking at something wrong?

 

Solution
Akos Somorjai
Graphisoft
Graphisoft

Hello Arad,

 

Oh, maybe you have an older version of the DevKit. Let me enclose that part of the code.

 

Best, Akos

Hello Akos.

 

Thanks for your help.
I will try it.

We are creating an associated dimension for the column and beam. Is it possible?
For me, neig.inIndex changes for line, wall and object, but column, beam.. does not change.

 

i cat create associated dimension for line. but don't ... for column

 

Why doesn't inIndex change? - Graphisoft Community

AC27 on window 11