PropValue - ObjectVision/GeoDMS GitHub Wiki
Miscellaneous functions PropValue
- PropValue(item, property)
PropValue(item, property) results in a string parameter with the value of the property argument for the item argument.
item can be any tree item, not being itself or one of it's subitems (an invalid recursion error is generated)
There is a list of all properties.
attribute<meter> A (ADomain) := B + C, descr = "A is the sum of B and C";
{
parameter<string> name := PropValue(A, 'name'); // result = 'A'
parameter<string> valuesunit := PropValue(A, 'ValuesUnit'); // result = 'meter'
parameter<string> expr := PropValue(A, 'expr'); // result = 'B + C'
parameter<string> descr := PropValue(A, 'descr); // result = 'A is the sum of B and C'
}