2017-08-10 10:13 AM - last edited on 2022-12-06 01:59 PM by Daniel Kassai
2017-08-10 01:01 PM
2017-08-10 02:18 PM
dfintha wrote:Hello,
Hello,
If I understand you well, you'd like to reuse the settings of a previously placed Wall instance to create similar new ones.
This can be done by creating a favorite with the ACAPI_Favorite_Create function, and then using it to fill the default
settings of a new element with the ACAPI_Favorite_GetDefaults function.
If you want to reuse the settings directly without creating a favorite, you can use the ACAPI_Element_Change function
with the withdel argument set to false. This way, the function creates a copy of the wall, and applies the changes to
the copied element.
Best regards,
Dénes
2017-08-23 03:18 PM
dfintha wrote:Hello,
Hello,
If I understand you well, you'd like to reuse the settings of a previously placed Wall instance to create similar new ones.
This can be done by creating a favorite with the ACAPI_Favorite_Create function, and then using it to fill the default
settings of a new element with the ACAPI_Favorite_GetDefaults function.
If you want to reuse the settings directly without creating a favorite, you can use the ACAPI_Element_Change function
with the withdel argument set to false. This way, the function creates a copy of the wall, and applies the changes to
the copied element.
Best regards,
Dénes
2017-08-24 01:01 PM
2017-10-04 09:43 AM
dfintha wrote:Thank you,
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