From 09ca55af5169ed14cc5194fdcaf8f2554d9c8aa0 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Fri, 13 Nov 2015 13:49:38 +0300 Subject: [PATCH] LinearArray: fixes * axis linkage was totally broken, wrong property was referred. * span drive wasn't working due to mixing quantity and float --- latticeLinearArray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latticeLinearArray.py b/latticeLinearArray.py index fb41d0d..e161f8e 100644 --- a/latticeLinearArray.py +++ b/latticeLinearArray.py @@ -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)