ARDI Point Codes
Each property in ARDI has a point code - a unique code that corresponds to the value inside the property.
They are made up of three elements, separated by colons.
[ASSET ID]:[PROPERTY ID]:[NODE NAME]
Automatically Generating
If your SVG file is uploaded to ARDI as a type of asset media, you can use embed codes to automatically look up the point names you need, using functions like PX_, CHILD_, NEXT_ and PREV_.
Asset ID
The Asset ID is the numeric ID of the ARDI asset. This can be found in the address bar of your browser when looking at the dashboard of an asset.
If the web address is /dashboard/261, the asset ID is 261.
Property ID
Next is the ID of the property. This can be found under Administration | Properties when you look at the address of each of your properties. It will also appear when you hover over a number of links in the ARDI web interface.
Node
Each property can be made up of more than one component - ARDI calls these nodes. For example, the position of your asset has a rotation, position and scale nodes.
Below is a table of common node names…
Property Type | Node Name |
---|---|
Measurement | measurement |
Boolean/Digital | state |
Enum/Lookup | value |
Text | text |
Position | position,rotation,scale |
Examples
If you had a Water Temperature Sensor (asset 14) with a 'Temperature' property (property 9), which is an analogue measurement, the point code would be 14:9:measurement.
How To Copy & Paste
There's an easy way to sneak a look at your point codes - open an asset dashboard, right-click and choose 'View Source'.
In your code, you'll find calls to subscribe. These are the same calls you'll use in your Javascript file, because the ARDI web pages use the same API.