Polar and Lin Arrays: show warning if element of lattice is used as axis
This commit is contained in:
parent
af8a5dd3d5
commit
2010121f2e
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user