-
Notifications
You must be signed in to change notification settings - Fork 1
PropValue
mtbeek32 edited this page Feb 20, 2024
·
7 revisions
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'
}
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.