Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi community,
I want to get the value of an attribute in the code below. The attribute is of type real number, defined by the com.ptc.core.meta.common.FloatingPoint class. When I try to get the value it doesn't give me any results. Can you help me?
com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(part,null,java.util.Locale.getDefault(),new com.ptc.core.meta.common.UpdateOperationIdentifier());
obj.load("SURFACE_M2 ");
SURFACE_M2 = (com.ptc.core.meta.commmon.FloatingPoint) obj.get("SURFACE_M2");
Solved! Go to Solution.
Hi @smcvr
Wrong name definition >D
obj.load("SURFACE_M2 ");
You added a space in the end. Remove it.
PetrH
what is the windchill version ?
Hi @smcvr
Wrong name definition >D
obj.load("SURFACE_M2 ");
You added a space in the end. Remove it.
PetrH