I’m trying to create a Label Style in which, according to the "material" Allplan attribute, a different "provider" value appears. The list is very extensive, exceeds 250 characters so with internal formulas of Allplan I don’t have enough.
if material = concrete then the provider must be = A
if material = wood then the provider must be = B
if material = steel then the provider must be = C
Etc… (the list can be very long)
I am trying to create a function in VBS but something must be done wrong because I don’t get any results.
I have some objects with different values in material attribute. For example example:
Concrete, wood, steel…
(see picture 1)
I edit the “functions.vbs” file located in ..\Std\vbs folder, and add this information:
If Name="concrete" Then Provider = "A"
If Name="wood" Then Provider = "B"
If Name="steel" Then Provider = "C"
Else provider = "No provider"
(see picture 2)
Finally, inside Allplan, I create a new Label Style with the formula:
(where @508@ is “Material Allplan attribute)
(see picture 3)
And stored it
When I apply this Label Style to a object, no text appear
Any suggestions? I could not find where the error is...