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!

Importing SKP via code

eptar
Contributor

Hi,

 

Is there a way to import SKP via code (using existing functionality, without writing my own skp importer)? Or at least call the SKP importer directly using ACAPI_Command_Call? I've found some examples for DXF / DWG operations, so I hope we can get the related IDs / sample somehow, if the SKP import functionality is accessible from another addon.

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hello,

 

Yes, this is possible. Please note that this is a private interface to the add-on, so it may change any time; always test before you try to call it.

 

The command is called 'LOAD', its version is 1. Parameters:

Name Type Meaning
"path" [in] string path to the .skp file to load
"originalFileName" [in] string; optional name for the created object; the name of the SKP file is used if not supplied
"LibIndex" [out] int the index of the created library part

 

The MDID of the add-on is {1198731108, 2994444117}.

 

Best, Akos

View solution in original post

2 REPLIES 2
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hello,

 

Yes, this is possible. Please note that this is a private interface to the add-on, so it may change any time; always test before you try to call it.

 

The command is called 'LOAD', its version is 1. Parameters:

Name Type Meaning
"path" [in] string path to the .skp file to load
"originalFileName" [in] string; optional name for the created object; the name of the SKP file is used if not supplied
"LibIndex" [out] int the index of the created library part

 

The MDID of the add-on is {1198731108, 2994444117}.

 

Best, Akos

Thanks, it works!