Community
Can anybody help?
I have the following VBA code....
Select Case PartType
Case "Flame Cut Profile"
PartGroup = "FC-"
Case "Flash Ground Profile"
PartGroup = "FG-"
Case "HD Plasma Cut Profile"
PartGroup = "HD-"
Case "Laser Cut Profile"
PartGroup = "LC-"
Case "Water Jet Profile"
PartGroup = "WJ-"
End Select
Can anybody tell me what the Python version code will be?
Many thanks in advance!
IsoCAM
use if-elif-else
if PartType == "Flame Cut Profile":
PartGroup = "FC-"
elif PartType == "Flash Ground Profile":
PartGroup = "FG-"
elif PartType == "HD Plasma Cut Profile"
....
else:
# optional
do_something_as_default
Jiri
Can't find what you're looking for? Ask the community or share your knowledge.