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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Attribute of type real number

smcvr
15-Moonstone

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 II
(To:smcvr)

what is the windchill version ?

Fede
smcvr
15-Moonstone
(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
15-Moonstone
(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