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

Importing SKP via code

eptar
Booster

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

3 REPLIES 3
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!

eptar
Booster

Possible to set location value when i start importing from code?skp_import.png