I do have IBA attribute field on the wizard table. I want to update that attribute without check out and checkin object.
I have tried using following code for that. But getting error message that "Design is not checked out and cannot be modified".
/* Set value of IBAName soft attribute to IBAValue */
perObj = object.apply();
perObj = (Persistable) PersistenceHelper.manager.modify(perObj);
There are some methods in wt.iba.value.service which you can use, but PTC does not recommend that.
Please refer to this thread.Re: Update IBA without Checking-Out the Object
Appreciate your prompt response. I will try to evaluate the mentioned package. It would be great if you help with some pseudo code if any.
I got workaround for this: below is the code
PersistableAdapter perAdap = new PersistableAdapter(perObj, null, Locale.US, new UpdateOperationIdentifier());
You need to persist your modifications :
The following code does what you want and uses the PersistableAdapter.
A direct use of IBAValueDBService may be prohibited by the thought police...
Please suggest a way to update values on the EPM Document too. As current code is showing some issue like: "Attribute values cannot be added, removed, or changed"
Yes, EPMDocuments cannot be managed with this API.
You need to use EPMWorkspaceHelper.manager.setAttributes, as described in the link below.
Some limitations :
Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!
Check out the Windchill Tips Board! We're talking about
Whirlpool's use of digital twin, augmented reality, and data-driven design!
The NAVIGATE WORKING GROUP is here! Come innovate with PTC!
The NAVIGATE WORKING GROUP is here! Come innovate with PTC!Sign up for a Working Group