This script requires modification before it will function. You must replace the files and directories with your own.


What this script does:

  • Demonstrates how to import various file types


# replace paths used with your own
 
# import a step file
MyPart1 = Part(r'c:\mycadfiles\Corner.stp', Part.FileTypes.STEP)
 
# import an IGES file
MyPart3 = Part(r'c:\mycadfiles\wave washer.igs', Part.FileTypes.IGES)