Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

Add-on development (API DevKit 21)

$
0
0
Author:Cedric Tran
Posted: Wed Oct 04, 2017 8:43 am (GMT+1)


dfintha wrote:
Hello,

If you'd like to use values calculated in your C++ code, your best choice might be using parameters describing these values
in your GDL object, and then creating an Object instance with your Library Part and customized parameters.

To do so, you'll have to use ACAPI_LibPart_Search to find your Library Part's index, ACAPI_LibPart_GetParams to get the
default parameter list, which you can change for the instance to be placed, and ACAPI_Element_Create to create an object instance.

Documentation for these functions can be found in the installed DevKit's Documentation folder, or
at http://archicadapi.graphisoft.com. The latter requires you to log in to the site.

Best regards,
Dé nes


Thank you,
I understand the steps but I don't manage to search my library part. I tried to create a LibPart variable and modify his file name. However, I can't modify it because the type of the filename is GS:uchar_t and I don't understand how to use it (there is no documentation of this type in the site). Can you help me with this step please ?
Thank you for your answers.
Best regards.


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>