Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
I want to update the value of Attribute CAD Document using Code without CADClient.
I need it for Creo Part file and Auto CAD file
Hello!
Maybe you can try the below code (in this case written for master attributes):
EPMDocumentMaster master = getMaster();
String attributeName = "MyAttribute";
String newValue = "MyNewAttributeValue";
LWCNormalizedObject lwcObject = new LWCNormalizedObject(master,null,Locale.US,new UpdateOperationIdentifier());
lwcObject.load(attributeName);
lwcObject.set(attributeName, newValue);
lwcObject.apply();
PersistenceHelper.manager.modify(master);
Best regards,
Peter