15 lines
423 B
Python
15 lines
423 B
Python
modelNum = modelName
|
|
axis = modelParam
|
|
if axis == [1,0,0]:
|
|
PlaneMethod = 'XOY'
|
|
if axis == [0,1,0]:
|
|
PlaneMethod = 'XOZ'
|
|
if axis == [0,0,1]:
|
|
PlaneMethod = 'YOZ'
|
|
mirrorfeature = CAD.MirrorFeature()
|
|
mirrorfeature.setFeature(4)
|
|
mirrorfeature.appendBody(modelNum[0],0)
|
|
mirrorfeature.setSymmetricPlaneMethod('Coordinate')
|
|
mirrorfeature.setPlaneMethod(PlaneMethod)
|
|
mirrorfeature.SaveOrigin('Yes')
|
|
mirrorfeature.create() |