Add Assembly App objects and some python bindings
Make Part working
This commit is contained in:
@@ -39,12 +39,12 @@ PyDoc_STRVAR(module_Assembly_doc,
|
||||
|
||||
/* Python entry */
|
||||
extern "C" {
|
||||
void AppAssemblyExport initAssembly()
|
||||
void AssemblyExport initAssembly()
|
||||
{
|
||||
// load dependend module
|
||||
try {
|
||||
Base::Interpreter().loadModule("Part");
|
||||
Base::Interpreter().loadModule("PartDesign");
|
||||
Base::Interpreter().runString("import Part");
|
||||
//Base::Interpreter().runString("import PartDesign");
|
||||
}
|
||||
catch(const Base::Exception& e) {
|
||||
PyErr_SetString(PyExc_ImportError, e.what());
|
||||
|
||||
Reference in New Issue
Block a user