[Draft] Group object for dimension styles
This commit is contained in:
committed by
Yorik van Havre
parent
33f6d01192
commit
4855564bb8
@@ -52,4 +52,28 @@ class DraftAnnotation:
|
||||
pass
|
||||
|
||||
def onChanged(self, obj, prop):
|
||||
pass
|
||||
pass
|
||||
|
||||
class AnnotationStylesContainer:
|
||||
"""The Annotation Container"""
|
||||
|
||||
def __init__(self, obj):
|
||||
|
||||
self.Type = "AnnotationContainer"
|
||||
obj.Proxy = self
|
||||
|
||||
def execute(self, obj):
|
||||
|
||||
g = obj.Group
|
||||
g.sort(key=lambda o: o.Label)
|
||||
obj.Group = g
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
if hasattr(self, "Type"):
|
||||
return self.Type
|
||||
|
||||
def __setstate__(self, state):
|
||||
|
||||
if state:
|
||||
self.Type = state
|
||||
Reference in New Issue
Block a user