Software Use > Scripting
import materials via COM API
(1/1)
Sascha:
Hi there,
is it possible to import materials over importing a different database within the COM-Interface? I found the command :"ImportDatabase" , but I don't undertstand the last argument: "strImportStatus".
Thanks, Sascha
Ryan:
This (hidden) method is not supported anymore. I believe the strStatus argument was originally meant to return error messages from the import.
Instead of importing materials from a separate database, you can you can create you own template database with your materials. When you create a new database, materials from the template will already be there.
http://hypersizer.com/help/index.php#Form-DbX/tdb-jump.php
-Ryan
Sascha:
Hi Ryan,
thanks for this fast answer. My goal is to import automatically (through python) generated materials. For example, i want to create effective and or discrete laminates automatically during a sofware run.
The idea was to create a *.mdb file with the EL-Definitions via python and import these materials. Do you know another way to do this?
Thanks, Sascha
Ryan:
We don't have a way to automatically generate ELs through the scripting API. We don't support importing materials via scripting either. The usual workaround is to generate a set of ELs through the user interface, and then reuse that database.
-Ryan
Sascha:
Ok, thanks.
Navigation
[0] Message Index
Go to full version