Adding an Element question
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-08
09:53 AM
- last edited on
2022-12-06
02:06 PM
by
Daniel Kassai
2017-06-08
09:53 AM
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

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
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-09 05:02 AM
2017-06-09
05:02 AM
jcimentarov wrote:Welcome, fellow newbie developer
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

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