Hi All,
Has anyone worked out a way to quickly copy a OPPID drawing to a new drawing and then update all the tags on the drawing without opening each drawing?
Example would be, I have 4 drawings that make up a generic well design, I need to generate a new set of drawings for each new well that we put in the field. I should be able to copy these drawing and update the tag's on the drawing based on the new Plant Area. FYI, there are currently more then 2500 wells with 20K to come.
If I could get an idea of the best way to approach this, if I need to use .Net or PowerShell or something else that would be a good start.
Thanks
Ray
Ray,
"....Update all the tags without opening each drawing" that's a thinker!!Let's see if we can get a few ideas from other Users in here in Bentley Communities. Also, in the meanwhile, let me try and get an answer for you discussing this internally.Regards | Soham Mhaskar.
Hello Ray.
We can write a Custom MDL app to do this. You need to provide the new PLANT_AREA name as an argument to this MDL app. The app will just rename the PLANT_AREA name e.g. from PA1 to PA2. If your tagging schema is using PLANT_AREA all the TAGs should automatically refer to PA2 and they would be new.
Does that sound good?
We can have a call to discuss the details if you want.
Thanks,
Hi Gaurav,
Yes this sounds like what we need, if we can make it work in the out of the box Metric workspace then I could modify it to suit what we need. The Workspace I have has 2 extra custom attributes that make up the tag, but if you can create an MDL that changes the PLANT_AREA that would be a great start. Do you see any issues with coping the drawing using Windows explorer/.NET code and then running the Batch Process in OPPID? I'm thinking specifically of the move/copy dialog that is displayed when you open the drawing after its been copied.
Can you confirm if this is for CONNECT Edition?
I guess we can suppress the copy dialogs using some config variables.
BMF_BORDER = NONE
PID_SUPPRESS_STARTUP_DIALOG=1
PLANT_PROJECT_BYPASS_PRIMARY_UNITS_CHECK=1