Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Thanks to the community I found how to get the units of a property by script.
But now, I am trying to edit it and I cannot find the good API call to do it.
Does anybody know if it is possible and how to do it?
I don't think there's a snippet to do it, you may call the same REST API which calls Composer when you edit units... ( but I think that on this case, it's modifying the entire entity ).
For this reason, I've implemented my own Units system, which it's more flexible, but It would be good if they allow easily to modify units ( but should be on a Thing Basis, not ThingTemplate/ThingShape ).
Thanks Carles for your answer. That make sense. May I ask you how do you have implemented your units system?
I don't know how to add properties on top on properties, the only way I can think is to create a infotable property in the thing which could contains all custom property fields.
Hi Fabien,
Our Units system it's rather complicated.. something like:
Best Regards,
Carles
Hi Carles,
Many thanks for all these details. That gives me very good inputs to find my own solution.
Best regards,
Fabien
@Carles - are you coming to LiveWorx? If so, I'd love to sit down with you and check out your units implementation. It sounds great.
Hi Stephen,
I would love to share with you the details for Units ( and for sure you will like to see the rest of our solution, Units it's just a small part of it ), but we can afford traveling to LiveWorx - we are Spain based -.
Best Regards,
Carles.