PolarArray: 'center' reference option

This commit is contained in:
DeepSOIC 2018-08-16 21:51:01 +03:00
parent 65c6dad39f
commit 8f15765047

View File

@ -92,7 +92,7 @@ class PolarArray(APlm.AttachableFeature):
created = self.assureProperty(selfobj,
'App::PropertyEnumeration',
'ReferencePlacementOption',
['none', 'SpanStart', 'SpanEnd', 'at custom value', 'first placement', 'last placement'],
['none', 'center', 'SpanStart', 'SpanEnd', 'at custom value', 'first placement', 'last placement'],
"Polar Array",
"Reference placement, corresponds to the original occurrence of the object to be populated."
)
@ -222,6 +222,8 @@ class PolarArray(APlm.AttachableFeature):
ref = selfobj.ReferencePlacementOption
if ref == 'none':
self.setReferencePlm(selfobj, None)
elif ref == 'center':
self.setReferencePlm(selfobj, App.Placement())
elif ref == 'SpanStart':
self.setReferencePlm(selfobj, plmByVal(selfobj.SpanStart))
elif ref == 'SpanEnd':