https://www.forum.freecadweb.org/viewto ... 10#p341631.
The Model object is an App::Part, but it has a Shape property.
Code: Select all
>>> m = App.ActiveDocument.Model
>>> m
<Part object>
>>> m.Shape
<Compound object at 0x55b83ee12540>
>>> m.Group
[<group object>, <Part::PartFeature>, <App::Link object>, <App::FeaturePython object>, <App::Link object>, <App::FeaturePython object>, <App::Link object>, <App::FeaturePython object>, <App::Link object>, <App::FeaturePython object>]
Is this Shape added by Assembly4? Does it represent the whole assembly? Do "Model" objects always have a Shape?
Is objectName == "Model" a reliable indicator that the object is an assembly?
Thanks,
wf