cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

Convert morph to an Object in C++ Add-On code

kency
Enthusiast

Hello,

 

Is there a function that would convert the given Morph GUID to an Object in C++ API like we do it in UI.

kency_0-1720005671602.png

 

12 REPLIES 12
Akos Somorjai
Graphisoft
Graphisoft

Hi kency,

 

Here comes the modified object (inside the .pln).

I replaced the '262144' in the EDGE commands with '2' -- see the statuses for the EDGE statement in the GDL manual.

 

Best, Akos

 

Screenshot 2024-07-15 at 13.32.40.png

Thank you @Akos Somorjai This gsm was created from Morph using the command we shared earlier  https://graphisoft.github.io/archicad-api-devkit/struct_a_p_i___save_pars___object.html. So is there something we can correct here itself? Rather than editing the created gsm again.

Hi kency,

 

You're welcome!

Well, there isn't any parameter in that function that would affect the script that way.

But: you can update the 3D script of the created library part with ACAPI_LibraryPart_UpdateSection().

 

Best, Akos