Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to determine if an object is part of a base / parent class? I.e. I would to do the following check:
if (ObjectType == ObjectParentType):
my code here
Object is a sketchLine or a sketchArc. From the reference manual I know that these are both inherited from sketchCurve. However, I can't figure out how to get the parent type from the sketchLine / Arc etc. so every test I have been able to do ends up failing because the equality ends up being something like sketchLine == sketchCurve, which fails.
Solved! Go to Solution.