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:
parent
11df51a085
commit
09ca55af51
|
@ -108,7 +108,7 @@ class LinearArray(latticeBaseFeature.LatticeFeature):
|
||||||
|
|
||||||
# Apply links
|
# Apply links
|
||||||
if obj.Link:
|
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.")
|
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
|
#resolve the link
|
||||||
|
@ -133,7 +133,7 @@ class LinearArray(latticeBaseFeature.LatticeFeature):
|
||||||
obj.Point = point
|
obj.Point = point
|
||||||
if obj.DrivenProperty != 'None':
|
if obj.DrivenProperty != 'None':
|
||||||
if obj.DrivenProperty == 'Span':
|
if obj.DrivenProperty == 'Span':
|
||||||
obj.SpanEnd = obj.SpanStart + dir.Length
|
obj.SpanEnd = obj.SpanStart + App.Units.Quantity('mm')*dir.Length
|
||||||
else:
|
else:
|
||||||
setattr(obj, obj.DrivenProperty, dir.Length)
|
setattr(obj, obj.DrivenProperty, dir.Length)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user