2024-07-08 11:13 AM
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!
Solved! Go to Solution.
2024-07-11 11:16 AM - edited 2024-07-11 11:17 AM
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
2024-07-11 11:16 AM - edited 2024-07-11 11:17 AM
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
2024-07-11 09:07 PM
Thanks, it works!
2024-07-24 08:40 AM
Possible to set location value when i start importing from code?