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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How to write into class aspects field?

Michail
10-Marble

How to write into class aspects field?

Hello, I need to find a non-destructive way of writing into a class aspects constant ASPECT_DATACHANGETHRESHOLD​ at ThingShape level. I'd be grateful for your help!

8 REPLIES 8
tmousaw
6-Contributor
(To:Michail)

You can set the aspect ​dataChangeThreshold​ directly in ThingWorx Composer when defining the property on the ThingShape under "Data Change Info > Change Threshold".  Are you looking for a means to set this aspect that does not involve the ThingWorx Composer?

Michail
10-Marble
(To:tmousaw)

correct

tmousaw
6-Contributor
(To:Michail)

I'd like to have more context on your particular use case.  Can you elaborate?  Do you have an existing ThingShape and want to set the ​dataChangeThreshold​ aspect programmatically?  Or are you programmatically creating a ThingShape and need to set the aspect of the ​dataChangeThreshold​ of the properties you are adding?

Michail
10-Marble
(To:tmousaw)

Tim Mousaw​, please view the following post.

tmousaw
6-Contributor
(To:Michail)

Thank you for the context.

After some investigation, I do not believe there is any way for you to accomplish what you are trying programmatically.  I do believe that what you are trying to do ​should​ be available programmatically.  Therefore, I would suggest you submit a support ticket for your use case.  I will also respond to the other thread.

Michail
10-Marble
(To:tmousaw)

Thank you Tim Mousaw​, I've submitted a ticket.

posipova
20-Turquoise
(To:Michail)

You can set aspects in your java extension, ThingWorx Eclipse plugin makes it especially easy.

Polina Osipova​, would an app user be able to set it?

Announcements


Top Tags