Polar and Lin Arrays: show warning if element of lattice is used as axis

This commit is contained in:
DeepSOIC 2015-11-03 14:46:13 +03:00
parent af8a5dd3d5
commit 2010121f2e
2 changed files with 6 additions and 0 deletions

View File

@ -108,6 +108,9 @@ class LinearArray(latticeBaseFeature.LatticeFeature):
# Apply links
if obj.Link:
if latticeBaseFeature.isObjectLattice(obj.AxisLink):
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
if len(obj.LinkSubelement) > 0:
linkedShape = obj.Link.Shape.getElement(obj.LinkSubelement)

View File

@ -124,6 +124,9 @@ class PolarArray(latticeBaseFeature.LatticeFeature):
# Apply links
if obj.AxisLink:
if latticeBaseFeature.isObjectLattice(obj.AxisLink):
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
if len(obj.AxisLinkSubelement) > 0:
linkedShape = obj.AxisLink.Shape.getElement(obj.AxisLinkSubelement)