A shape can contain solids without being a Solid.
Code: Select all
>>> f = App.ActiveDocument.Fusion >>> fs = f.Shape >>> fs.ShapeType 'Compound' >>> fs.Solids [<Solid object at 0x564a0c9ec060>] >>>
Thank you, but I use this already in my macro, but for a body in a model it doesn't works. It's a legal body without errors or something else. The file is on my laptop, but I will try it on my computer and report.
A Body is a DocumentObject, so it can never be a "Solid". Only Shapes can be Solids.
As wandererfan says, a PartDesign Body isn't a "solid" by itself, given that it can contain an Origin, a coordinate system, datum planes, lines, points, etc.
Oh yes, I think that's right.But that's not too bad. It is only for converting objects to a mesh for rendering / raytracing.