Does anyone know how to change the Enterprise Item Number (EIN) programmatically?

Darius James McAdam

Does anyone know how to change the Enterprise Item Number (EIN) programmatically?

I just started using 3DExperience and have been trying to figure this out for the past couple of days. I've modified some attributes using the following code:

VPMOccurence_object.InstanceOccurrenceOf.ReferenceInstanceOf.SetAttributeValue "V_Name", "new title"
VPMOccurence_object.InstanceOccurrenceOf.SetAttributeValue "PLM_ExternalID", "new instance name"

I found some string input for the .SetAttributeValue method on this site:

https://catiahelp.azurewebsites.net/English/CAADocPLMPackage/PLMClass_PLMTaskAction.htm

I've been looking un the 3DExperience API indexes documentation, but I haven't found how to change the EIN yet. If anyone has done this before or has any ideas to try, let me know.

Thanks!
Darius

Darius James McAdam

RE: Does anyone know how to change the Enterprise Item Number (EIN) programmatically?
(in response to Darius James McAdam)

Found the answer in this post:
http://www.coe.org/p/fo/et/thread=31339

Looks like you can read EIN in VBA with:
VPMReference.GetAttributeValue("V_PartNumber")

However, writing to an EIN with:
VPMReference.SetAttributeValue "V_PartNumber", "New EIN"

Gives a permission denied error

It sounds like EINs can be written to with Enterprise Knowlege Language (EKL)