How I can create 3DPart inside of 3DX Macro?
I tried with this
If I change 3DPart to 3DShape it runs without a problem but, with 3DPart I am getting only Error message "Operation not authorized". Also I am aware that I am getting 3DShape representation but here I want to create 3DPart.
I tried with this
Code:
Sub Create()
Dim oPLMNewService as PLMNewService
Set oPLMNewService = CATIA.GetSessionService("PLMNewService")
Dim oEditor As Editor
oPLMNewService.PLMCreate "[b]3DPart[/b]", oEditor
Dim oPart As Part
Set oPart = oEditor.ActiveObject
End Sub
If I change 3DPart to 3DShape it runs without a problem but, with 3DPart I am getting only Error message "Operation not authorized". Also I am aware that I am getting 3DShape representation but here I want to create 3DPart.