Hello, I am looking fo the code to get the physicalid of a PhysicalProduct in V6 (3dexperience). I tried:
Sub CATMain()
Dim oEditor3DShape As Editor
Set oEditor3DShape = CATIA.ActiveEditor
Dim oPart3D As Part
Set oPart3D = oEditor3DShape.ActiveObject
Dim oVPMRepReference As VPMRepReference
Set oVPMRepReference = oPart3D.Parent
Dim ophysicalid As String
ophysicalid = oVPMRepReference.GetAttributeValue("V_VersionID")
MsgBox "This PLMEntity object physicalid is: " & ophysicalid
End Sub
Thanks.
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP