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

How to call and place a GDL element with API functions?

Archein
Participant

Hi everyone, I have some problems with the method to place a GDL object. Should I use ACAPI_​Element_​Create function? 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Mihaly Palenik
Graphisoft
Graphisoft

Hello,

 

yes you can use ACAPI_Element_Create to place a GDL element. First you have to set API_Element's object data member (API_ObjectType). object.libInd data member identifies gdl element. To determine library index by its name you can use ACAPI_Libpart_Search.

View solution in original post

1 REPLY 1
Solution
Mihaly Palenik
Graphisoft
Graphisoft

Hello,

 

yes you can use ACAPI_Element_Create to place a GDL element. First you have to set API_Element's object data member (API_ObjectType). object.libInd data member identifies gdl element. To determine library index by its name you can use ACAPI_Libpart_Search.