cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to retrieve custom attribute values of a part and set them through Api?

ptc-6328570
1-Visitor

How to retrieve custom attribute values of a part and set them through Api?

How to retrieve custom attribute values of a part and set them through Api?

2 REPLIES 2

but i am getting this error can u help me out

ERROR [main] com.ptc.core.meta.type.runtime.server.impl.SecurityLabelConstraintFactory - wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:

java.rmi.UnmarshalException: error unmarshalling return; nested exception is:

java.lang.ClassNotFoundException: wt.part.alternaterep.WTPartAlternateRep (no security manager: RMI class loader disabled)

Nested exception is: wt.util.WTRemoteException: Unable to invoke remote method

Nested exception is: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:

java.lang.ClassNotFoundException: wt.part.alternaterep.WTPartAlternateRep (no security manager: RMI class loader disabled)

wt.util.WTException: wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:

java.rmi.UnmarshalException: error unmarshalling return; nested exception is

the code is:

_WTPart ref1=part;

LWCNormalizedObject obj = new LWCNormalizedObject(ref1,null,null,null);

obj.load("CAGE","COMMODITY");

Object CAGEValue = obj.get("CAGE");

Object COMMODITYValue = obj.get("COMMODITY");

part is the retrieved WTPart from search

Announcements


Top Tags