Is there a way to have model attributes (colour, wt, style) set by component state rather than service?
Hello Bear,
Thanks for posting query to Bentley Plant forum. Yes, via named expression that should be possible. You can try to feed details to below mentioned named expression template."BY_LEVEL_AND_TEMPLATE:" & "<desired level name>" & ":<desired template group name>" & OPITEM.COMP_STATE & ":Model"Please note that above provided is a template & you need to enter desired level & group name as an example refer below expression that has been created using above expression."BY_LEVEL_AND_TEMPLATE:" & "Reserved Areas" & ":OpenPlant\Reserved Areas\" & OPITEM.SULFUR_LEVEL & ":Model"
Hope this helpsRegards | Deepak Singh
Thanks for the quick reply Deepak.
Only issue I have is that I don't want to change the level, just how the element looks. For instance, I have a line number 4220-PW-7818-80-C1 so the level the item is on is also 4220-PW-7818-80-C1. As it stands, some of the line is existing and some new so I want the existing part of the line to display grey rather than the attributes set for service PW.
False alarm, all sorted.
was wondering why would it happen to Elbows only. Since all the piping components obey the standard preferences to set the STATE property on themselves.
Good that its sorted out.
Happy to help.
thanks,
If you change state in 'Place Component' and not in 'Standard Preferences for Piping Component' then the elbows don't inherit the state. My mistake :-)
That is why you should make STATE, a readonly property. so that its always dictated by the Standard Pref.
Will do, thanks again Gaurav.