Assembly import script & PartDesign Solid object

This commit is contained in:
jriegel
2013-01-02 20:44:09 +01:00
committed by Stefan Tröger
parent fca3b9dffb
commit fc7db6369c
6 changed files with 157 additions and 13 deletions

View File

@@ -79,11 +79,25 @@ static PyObject * setActiveAssembly(PyObject *self, PyObject *args)
Py_Return;
}
/* module functions */
static PyObject * getActiveAssembly(PyObject *self, PyObject *args)
{
if(ActiveAsmObject){
return ActiveAsmObject->getPyObject();
}
Py_Return;
}
/* registration table */
struct PyMethodDef AssemblyGui_Import_methods[] = {
{"setActiveAssembly" ,setActiveAssembly ,METH_VARARGS,
"setActiveAssembly(AssemblyObject) -- Set the Assembly object in work."},
{"getActiveAssembly" ,getActiveAssembly ,METH_VARARGS,
"getActiveAssembly() -- Returns the Assembly object in work."},
{NULL, NULL} /* end of table marker */
};