I had a better example, this is my original example ... If I find the other one I'll upload that as well.
Kudos to you, I was able to create different regions thanks to this, but now I'm facing a different problem regarding the changing the color of the region created, is it possible to assign a color to each region, based on a value?
Content Move Notice (Dec. 2018)
ThingWorx Code Examples boards are now merged into IoT Tech Tips under the Code Examples label.
The Service Apps board is now merged into the Manufacturing Apps board.