GetChildObject [Modeler]
Returns a 3D modeler child object, which can be assigned to a variable. Will return normally if there are no active objects. For 3D Components and UDMs, these commands do not return parts, coordinate systems, plans, as top-level modeler children.
| UI Access | N/A | ||||||
| Parameters |
|
||||||
| Return Value | Returns the 3D Modeler object. In the examples below, it is assigned to the variable oEditor. |
| Python Syntax | GetChildObject(<object>) |
| Python Example |
Standalone Example: oDesign = oProject.GetActiveDesign() oEditor = oDesign.GetChildObject("3D Modeler") Example used in Conjunction with GetChildNames and GetPropNames: oDesign = oProject.GetActiveDesign() oModel = oDesign.GetChildObject("3D Modeler") oModel.GetChildTypes()
oModel.GetChildNames("ModelParts")
oWGi = oModel.GetChildObject("WG_Interior")
oWGi.GetPropNames()
|