Examples
VBScript macro for exporting a file to STEP AP203
Language="VBScript"
Sub CATMain()
Dim PartDocument0 As Document
' Reading a CATPart file
Set PartDocument0 = CATIA.Documents.Open( "E:\tmp\Box.CATPart"
)
' Saving the part in a STEP file
PartDocument0.ExportData "E:\tmp\Box2",
"stp"
CATIA.Quit
End Sub
VBScript macro for exporting a Product file to STEP AP203
Language="VBScript
Sub CATMain()
Dim ProductDocument0 As Document
Set ProductDocument0 = CATIA.Documents.Open( "E:\tmp\Product1.CATProduct"
)
ProductDocument0.ExportData "E:\tmp\Product1",
"stp"
CATIA.Quit
End Sub |