FreeCAD Objects - isDerivedFrom("Part::Feature")...?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

FreeCAD Objects - isDerivedFrom("Part::Feature")...?

Post by paullee »

Hi, trying to understand what are relationship between different objects in FreeCAD ... only found some diagrams below.

Any more hints?

isDerivedFrom("Part::Feature"):
isDerivedFrom("Sketcher::SketchObject"):
isDerivedFrom("Part::Extrusion"):
isDerivedFrom("Mesh::Feature"):
isDerivedFrom("Part::MultiFuse"):
isDerivedFrom("Part::Compound"):
isDerivedFrom("App::DocumentObjectGroup"):

[EDIT]
isinstance(obj,Part.Shape):
if (obj.TypeId == "Part::Line"):
if (obj.TypeId == "App::Annotation"):
if (obj.TypeId == "App::DocumentObjectGroup"):
isDerivedFrom("Points::Feature"):

http://free-cad.sourceforge.net/SrcDocu ... ature.html
Screenshot from 2018-10-12 00-52-01.png
Screenshot from 2018-10-12 00-52-01.png (85.81 KiB) Viewed 620 times
Post Reply