Quantcast
Viewing all articles
Browse latest Browse all 12277

Forum Post: RE: Instrument location codes in OPPID

Hello Gary, I have an update for this request. I have been successful in extracting the coordinates of instruments, and mapping these to a border letter/number grid system. It is not as pretty as I would like it to be but it does work. I still need to wrap up testing. As soon as this is complete, I will formalize and finalize the solution. I will post on the Wiki page of this Community site. A few things about what I have done: This will work for one size of drawing border only. It can be made to work for multiple borders provided the numeric and alpha axis both start in the lower left hand corner of the border and the spacing between grid letters/numbers is the same across all borders. It takes multiple properties, ECExpressions, and System.String symbol sets to get to each decimal equivalent for each axis - vertical and horizontal. This is the part that I consider to be " not pretty". I will work on this as time permits and attempt to clean this up. This is configured for INSTRUMENT class only at this time. This will require the addition of a new field to the database. The property that contains the border grid location will be mapped to this to field. Note - because this is a property mapped to the database, every move of an instrument will require a sync to the plant project database in order to update this property. Often users will not sync a file when they move an element. Synching can be set to automatically occur on file close allowing the property to be updated in the database, thus avoiding this issue. Regards,

Viewing all articles
Browse latest Browse all 12277

Trending Articles