How to open a new product window with a V6 Macro
To open a new product in V5 using a CATVBA macro, you would use this code:
Dim oProduct As Object
Set oProduct = CATIA.Documents.Add(“Product”)
To open a new product window in V6 using a macro, use this (note – an E70 license is required):
Dim oNewService As PLMNewService
Set oNewService = CATIA.GetSessionService(“PLMNewService”)
Dim oEditorProduct As Editor
oNewService.PLMCreate “VPMReference”, oEditorProduct
That’s it! Do you want to know how to program more macros in CATIA V6 (aka 3Dexperience or 3DX)? Let us know in the comments below!