OpenPlant PowerPID How to Convert AutoPLANT PIDs in Batch Mode Version

OpenPlant PowerPID
How to Convert AutoPLANT PIDs in Batch Mode
Version 1.0
June 16, 2014
How to Convert AutoPLANT PIDs in Batch Mode
Trademarks
Bentley, the “B” Bentley logo, MicroStation, ProjectWise and AutoPLANT are registered trademarks of Bentley Systems, Inc
or Bentley Software, Inc.
Microsoft, Windows and SQL Server are registered trademarks of Microsoft Corporation.
AutoCAD is a registered trademark of Autodesk, Inc.
Oracle 11g, 10g and Oracle 9i are registered trademarks of Oracle Corporation.
Other brands and product names are the trademarks of their respective owners.
Copyrights
© 2010 Bentley Systems, Incorporated
No part of this document may be reproduced, translated, or transmitted in any form or by an means, electronic or
mechanical, for any purpose without the express written permission of Bentley Systems, Inc, and then only on the
condition that this notice is included in any such reproduction. No information as to the contents of this document may be
communicated to any third party without the prior written consent of Bentley Systems, Inc.
Information in this document is subject to change without notice and does not represent a commitment on the part of
Bentley Systems, Inc. Bentley Systems, Inc. is not liable for errors contained in this document or for incidental or
consequential damages in connection with furnishing or use of this material.
Including software, file formats, and audiovisual displays; may only be used pursuant to applicable software license
agreement contains confidential and proprietary information of Bentley Systems, Inc. and/or third parties which is
protected by copyright and trade secret law and may not be provided otherwise made available without proper
authorization.
RESTRICTED RIGHTS LEGENDS
Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the
Right in Technical Data and Computer Software clause in DFARS 252.227-7013 or subparagraphs (c)(1) and (2) of the
Commercial Computer Software – Restricted Rights in 48 CFR 52.227-19 as applicable.
Unpublished – rights reserved under the Copyright Laws of the United States and International treaties.
Downloaded files from Bentley-related Internet websites and files included on MySELECT CDs are subject to the legal
terms, conditions, policies and usage restrictions posted on the website(s), which may significantly alter the rights granted
in the license agreement included with these materials.
Version 1.0
June 16, 2014
Page 2 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Table of Contents
Document Version History.............................................................................................................................................4
Software Versions ..........................................................................................................................................................4
Assumptions prior to starting ........................................................................................................................................5
OpenPlant Power PID and Schema Editing ................................................................................................................5
Objective ........................................................................................................................................................................5
General Overview of Required Administrative Task ..................................................................................................5
General File Editing ................................................................................................................................................5
OpenPlant PowerPID .............................................................................................................................................5
Configuring OpenPlant PowerPID to Convert in Batch mode .......................................................................................6
Preparing PowerPID for the Conversion ....................................................................................................................6
Creating the Batch Process ........................................................................................................................................7
Executing the Batch Process ......................................................................................................................................8
Additional Information ..............................................................................................................................................8
Notes .............................................................................................................................................................................9
Version 1.0
June 16, 2014
Page 3 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Document Version History
Version Date
Author
Comments
1.0
Tony DeRosa
Initial Release
06/16/2014
Reviewed By
Date
Approved By
Date
Software Versions
Application Name
Version
OpenPlant PowerPID
08.11.10.38 (Ss5 and Higher)
Version 1.0
June 16, 2014
Page 4 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Assumptions prior to starting
OpenPlant Power PID and Schema Editing

A general understanding and use OpenPlant PowerPID.
Objective
This session will cover the process of creating a Batch Process that will allow a user to run AutoPLANT PID
conversions in a batch process. This Batch Process will load all the files in a particular folder, and then process
them one at time in succession converting them from AutoPLANT PIDs to OpenPlant PowerPID drawings.
General Overview of Required Administrative Task
General File Editing

Editing of xml files using a text editor.
OpenPlant PowerPID



Version 1.0
June 16, 2014
Configure OpenPlant PowerPID to not prompt for user input during the conversion.
Create the batch process and save it. Define the folder to be processed.
Execute the process.
Page 5 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Configuring OpenPlant PowerPID to Convert in Batch mode
Below you will find the steps required to configure OpenPlant PowerPID to run the conversion process in a batch
mode.
Preparing PowerPID for the Conversion
This section will step you through adjusting OpenPlant PowerPID to not prompt the user during the conversion and
after the conversion runs. This is necessary in order to run the batch process without user interaction.
1.
2.
3.
Launch a text editor.
Load the Bentley.ConversionServices.xml file located in the “C:\Program Files (x86)\Bentley\PowerPID
(SELECTseries 5)\PowerPID\assemblies\Bmf” directory.
Locate the section shown below
<Extension
Name="AutoPLANT PID Conversion"
AssemblyPath="Bentley.Plant.Application.Pid.AutoPLANTPIDConversion.dll"
ConversionCLRClass="Bentley.Plant.Application.Pid.AutoPLANTPIDConversion.APPIDConversionProvider"
CreateLog="true"
ShowLogOnFinish="true"
CreateBackUp="true"
PromptMode="true">
</Extension>
4.
Edit the sections shown in bold red text below.
<Extension
Name="AutoPLANT PID Conversion"
AssemblyPath="Bentley.Plant.Application.Pid.AutoPLANTPIDConversion.dll"
ConversionCLRClass="Bentley.Plant.Application.Pid.AutoPLANTPIDConversion.APPIDConversionProvider"
CreateLog="true"
ShowLogOnFinish="false"
CreateBackUp="true"
PromptMode="false">
</Extension>
5.
Save the file.
a. This may require you save this to a different location and then copy it into the directory where it
is stored.
Version 1.0
June 16, 2014
Page 6 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Creating the Batch Process
In this section you will learn how to create the batch process using the Batch Processing Utility.
1.
2.
3.
4.
5.
6.
7.
8.
9.
Load OpenPlant PowerPID, select your project workspace that contains the files to be converted and
create a new empty file. Named similar to BatchConverterConfig.
When the file loads take the default drawing settings. There is no need to configure this in any way.
From the menu select Utilities > Batch Process…
From inside the [untitled] – Batch Process dialog select Edit > Add Files…
Browse to the directory containing the AutoPLANT PID files to be converted.
Select ALL files in this directory by picking the first file, holding down shift and selecting the last file. You
can also expand the dialog and use the command buttons to add the files.
Pick Done.
To save the settings and collection of desired files, select File > Save As…. Select a directory of your
choose to store the batch process file.
To be safe and select the correct file, select all the files in the Process Tasks section and then in set the
Initial Model to “Default Model Only”. Pick the Apply to Selection button.
10. Save the Batch Process.
Version 1.0
June 16, 2014
Page 7 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Executing the Batch Process
Now you will execute the batch process.
1.
2.
3.
4.
Continuing in the Batch Process dialog – from the menu select File > Process…
In the Files to Process dialog pick the Process button.
When the process is complete pick the Done button.
You will now see that the drawings were loaded in succession and the conversion executed on each file.
Additional Information
You could create a Command Line file and add additional key-in statements to the Command Line file such as
syncing files to and from the database and many more.
You can also use the key-ins to execute BASIC Macros, VBA Macros and MDL applications.
In a ProjectWise enabled project:
1. If you are running from inside of ProjectWise and you create the Batch Process job and Command line file
then in typical fashion the user is prompted to store the files in a ProjectWise folder.
2. When selecting files to add to the Batch Process job the user can select the files from ProjectWise folders.
Files will be checked out in sequence, the Command Line script ran and the files then checked back into
ProjectWise.
Version 1.0
June 16, 2014
Page 8 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate
How to Convert AutoPLANT PIDs in Batch Mode
Notes
Version 1.0
June 16, 2014
Page 9 of 9
Copyright © 2010 Bentley Systems, Inc.
Do Not Duplicate