View Full Version : How to add continuation drawing unit number to OPC
Smart Plant admin
08-23-2011, 10:55 PM
Hi All,
I want to show a next continuation drawing unit number on utility OPC instead of drawing number.
please guide how to add u continuation unit number property in "Item" field of Smart text editor in catalog manager.
please refer attachment with detail snaps.
Regards,
Sandip
smartman
08-24-2011, 11:25 PM
I tried to think over this and tried few things in catalog Manager.
This seems bit complex than it looks. It is because you want to show UnitNumber or Code of Pair drawing. This Unit code of paired drawing is not available as property in Catalog Manager.
So here is what I think is solution.
Create small utility dll like GetUnitfromOPC(SP_IP of OPC) . This dll will return Unit code or number of OPC which you want.
Then you can create extra property under OPC table in Data Dictionary Manager which will use above dll for calculation.
This new property you can then you in your label.
Sounds confusing? But this is all I could think of.
Or I am missing some simple solution here.
I am sure someone out there must have done it. Please share if you can.
Patrick_Aps
08-25-2011, 02:37 AM
Most Likely this is not in the exact format that you want it,
but is it possible to get the Path-property of the paired drawing ?
When placed in a label this should look like \Area\Plant\Drawingname.pid
Could be a quick workaround that is implementable without VB coding and without introducing an extra property on the Drawing object.
smartman
08-25-2011, 02:56 AM
Patrick , yes this is good idea. Now I think somehow we can put some overlapping label which can hide everything except Unit which he wants.
So as expected there could be some clever workaround.
somnath.thakare
09-01-2011, 03:04 AM
Dear Stubin,
How we can create such dll, as u mention in your first solution.
smartman
09-03-2011, 11:30 PM
Please go through SPPID Programming help and SPPID Automation course. You need to have some background in VB.
It is not easy to explain here fully. You can take help from IT in your company.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.