LinearArray: fixes

* axis linkage was totally broken, wrong property was referred.
* span drive wasn't working due to mixing quantity and float
This commit is contained in:
DeepSOIC 2015-11-13 13:49:38 +03:00
parent 11df51a085
commit 09ca55af51

View File

@ -108,7 +108,7 @@ class LinearArray(latticeBaseFeature.LatticeFeature):
# Apply links
if obj.Link:
if latticeBaseFeature.isObjectLattice(obj.AxisLink):
if latticeBaseFeature.isObjectLattice(obj.Link):
latticeExecuter.warning(obj,"For polar array, axis link is expected to be a regular shape. Lattice objct was supplied instead, it's going to be treated as a generic shape.")
#resolve the link
@ -133,7 +133,7 @@ class LinearArray(latticeBaseFeature.LatticeFeature):
obj.Point = point
if obj.DrivenProperty != 'None':
if obj.DrivenProperty == 'Span':
obj.SpanEnd = obj.SpanStart + dir.Length
obj.SpanEnd = obj.SpanStart + App.Units.Quantity('mm')*dir.Length
else:
setattr(obj, obj.DrivenProperty, dir.Length)