oldfox
Alibre Super User
AddExtrudeCut( name, sketch, depth, boolean) errors out with the following error:
Traceback (most recent call last):
File "<string>", line 228, in <module>
AttributeError: 'Sketch' object has no attribute 'AddExtrudeCut'
And here's the code:
**************************************************************************************
# add plane
MyPart = Part("Keyseat", False)
ZXPlane = MyPart.GetPlane('ZX-Plane')
KeyseatPlane = MyPart.AddPlane('KeyseatPlane', ZXPlane, (CylRad - Depth))
S = MyPart.AddSketch('KeyseatCut', MyPart.GetPlane('KeyseatPlane'))
# draw lines
S.AddLine(LS1X, LS1Y, LE1X, LE1Y, False)
S.AddLine(LS2X, LS2Y, LE2X, LE2Y, False)
# dwaw arcs
S.AddArcCenterStartEnd(ERC1, 0.0, ERC1, ER, ERC1, -ER, False)
S.AddArcCenterStartEnd(ERC2, 0.0, ERC2, -ER, ERC2, ER, False)
S.AddExtrudeCut('KeyseatCut', KeyseatCut, Depth, False)
*************************************************************************************
The last line (#228) is of course the culprit. I thought I had everything it needed. Obviously not.
The plane, lines and arcs work just fine. I can manually cut the sketch as desired.
Lil help please.
Thanks.
Traceback (most recent call last):
File "<string>", line 228, in <module>
AttributeError: 'Sketch' object has no attribute 'AddExtrudeCut'
And here's the code:
**************************************************************************************
# add plane
MyPart = Part("Keyseat", False)
ZXPlane = MyPart.GetPlane('ZX-Plane')
KeyseatPlane = MyPart.AddPlane('KeyseatPlane', ZXPlane, (CylRad - Depth))
S = MyPart.AddSketch('KeyseatCut', MyPart.GetPlane('KeyseatPlane'))
# draw lines
S.AddLine(LS1X, LS1Y, LE1X, LE1Y, False)
S.AddLine(LS2X, LS2Y, LE2X, LE2Y, False)
# dwaw arcs
S.AddArcCenterStartEnd(ERC1, 0.0, ERC1, ER, ERC1, -ER, False)
S.AddArcCenterStartEnd(ERC2, 0.0, ERC2, -ER, ERC2, ER, False)
S.AddExtrudeCut('KeyseatCut', KeyseatCut, Depth, False)
*************************************************************************************
The last line (#228) is of course the culprit. I thought I had everything it needed. Obviously not.
The plane, lines and arcs work just fine. I can manually cut the sketch as desired.
Lil help please.
Thanks.