Use TypeId in Draft
This commit is contained in:
parent
0bebfcc50f
commit
cb37f84ccb
|
@ -167,13 +167,13 @@ def getType(obj):
|
||||||
return "Sketch"
|
return "Sketch"
|
||||||
if obj.isDerivedFrom("Part::Feature"):
|
if obj.isDerivedFrom("Part::Feature"):
|
||||||
return "Part"
|
return "Part"
|
||||||
if (obj.Type == "App::Annotation"):
|
if (obj.TypeId == "App::Annotation"):
|
||||||
return "Annotation"
|
return "Annotation"
|
||||||
if obj.isDerivedFrom("Mesh::Feature"):
|
if obj.isDerivedFrom("Mesh::Feature"):
|
||||||
return "Mesh"
|
return "Mesh"
|
||||||
if obj.isDerivedFrom("Points::Feature"):
|
if obj.isDerivedFrom("Points::Feature"):
|
||||||
return "Points"
|
return "Points"
|
||||||
if (obj.Type == "App::DocumentObjectGroup"):
|
if (obj.TypeId == "App::DocumentObjectGroup"):
|
||||||
return "Group"
|
return "Group"
|
||||||
return "Unknown"
|
return "Unknown"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user