I am placing 2 properties "name" and "description" into the P&ID as annotation. This is active when placing the symbol, but the order of placement is not what I want. I want the order to be "name" first and the "description" second.
Currently the order is "description" then "name". I am not sure on what basis the placement order gets determined... Alphabetically or last created place first.
How do I change the placement order?
Look at this post in the Plant Design Engineering Wiki:
The key is to set the ECExpression in the order in which you need the tag format to be.
In your case the Calculated ECProperty Calculation would be "this.NAME & this.DESCRIPTION". You can include any number of properties. One note - Properties that are of the Associated Type (Plant Area, Unit, System, Service) require a slightly different method becuase these are "associated" properties.
For calling Plant Area it would be "this.GetRelatedInstance("PLANT_AREA_HAS_NAMED_ITEM:1:PLANT_AREA, NAME:?").NAME:.
For reference look in the OpenPlant_Supplemental_Tagging schema and the NAME properties on the different classes.
I hope this helps,
Thanks for the feedback. My question is a little bit different, I think.
I have 2 separate properties that I want to automatically place with the symbol. The positions cannot be automatically calculated as the equipment sizes differ. So the placement method has been set to 1, which allows me to place the text after positioning the symbol.
When I place the symbol, the 2 properties can be place, but I would like the order to be different. I my case the name (tag number which has been concatenated based on a standard) is placed second to the description. I would like the name to be placed first and then the description to be placed second.
How will I change this or is it based on alphabetical order.
Hope this makes sense.
Marais van Heerden (Spyker)
This is strange. I just added an annotation custom attribute to DESCRIPTION for equipment class. The Tag Name property of course already had the annotation custom attribute.
I set both properties to annotate mannuall0y. When I place my equipment the first annotation is the Tag and the second is the Description. I have not been able to find a way to control the placement order of these.
If you can upload your schemas that may help me. If these are too sensitive in nature please send them to me directly and I can take a look at them. I will need the OpenPlant_PID, OpenPlant_PID_Supplemental_xxx and OpenPlant_Supplemental_Tagging schemas.
Depending on when you want the description property to be placed as annotation there are two methods of getting the annotation you desire.
Method 1: At component placement.
Method 2: Using the separate Annotation component.