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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Attribute of type real number

smcvr
14-Alexandrite

Attribute of type real number

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");

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:smcvr)

Hi @smcvr 

Wrong name definition >D 

obj.load("SURFACE_M2 ");

HelesicPetr_0-1696232192724.png

You added a space in the end. Remove it.

 

PetrH 

View solution in original post

5 REPLIES 5
Fadel
22-Sapphire I
(To:smcvr)

what is the windchill version ?

Fede
smcvr
14-Alexandrite
(To:Fadel)

Hi @Fadel 

 

Use Windchil  12.0.2.9

HelesicPetr
22-Sapphire I
(To:smcvr)

Hi @smcvr 

Wrong name definition >D 

obj.load("SURFACE_M2 ");

HelesicPetr_0-1696232192724.png

You added a space in the end. Remove it.

 

PetrH 

smcvr
14-Alexandrite
(To:HelesicPetr)

Hi @HelesicPetr,

 Thank you so much for your help 😄

HelesicPetr
22-Sapphire I
(To:smcvr)

@smcvr Four eyes see more than two 😄

PetrH

Announcements
Top Tags