BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Adding an Element question

Anonymous
Not applicable
Hey, It's your new favourite newbie again

I have another question: Let's say that I created a new composite and I want programatically to draw 1m of it at the center of the screen. Is this possible, because I can't find anything similar in the Element_test example add-on?

Thanks in advance,
Julian
1 REPLY 1
Akos Somorjai
Graphisoft
Graphisoft
jcimentarov wrote:
Hey, It's your new favourite newbie again

I have another question: Let's say that I created a new composite and I want programatically to draw 1m of it at the center of the screen. Is this possible, because I can't find anything similar in the Element_test example add-on?

Thanks in advance,
Julian
Welcome, fellow newbie developer

The composite in itself is an attribute, so you cannot draw it directly to the floor plan, it has to be assigned to some building element. So: create a 1m wall which refers to that composite (set the 'composite' data member in API_WallType to the attribute index of the newly created composite attribute), and you'll see what you want.

Best, Akos
Learn and get certified!