Utilities Guide
Utilities Guide
Utilities Guide
DPID2-PE-200028F-Updated
Copyright
Copyright 1999-2012 Intergraph Corporation. All Rights Reserved.
Including software, file formats, and audiovisual displays; may be used pursuant to applicable software license agreement;
contains confidential and proprietary information of Intergraph and/or third parties which is protected by copyright law, trade secret
law, and international treaty, and may not be provided or otherwise made available without proper authorization from Intergraph
Corporation.
U.S. Government Restricted Rights Legend
Use, duplication, or disclosure by the government is subject to restrictions as set forth below. For civilian agencies: This was
developed at private expense and is "restricted computer software" submitted with restricted rights in accordance with
subparagraphs (a) through (d) of the Commercial Computer Software - Restricted Rights clause at 52.227-19 of the Federal
Acquisition Regulations ("FAR") and its successors, and is unpublished and all rights are reserved under the copyright laws of the
United States. For units of the Department of Defense ("DoD"): This is "commercial computer software" as defined at DFARS
252.227-7014 and the rights of the Government are as specified at DFARS 227.7202-3.
Unpublished - rights reserved under the copyright laws of the United States.
Intergraph Corporation
P.O. Box 240000
Huntsville, AL 35813
Terms of Use
Use of this software product is subject to the End User License Agreement ("EULA") delivered with this software product unless the
licensee has a valid signed license for this software product with Intergraph Corporation. If the licensee has a valid signed license
for this software product with Intergraph Corporation, the valid signed license shall take precedence and govern the use of this
software product. Subject to the terms contained within the applicable license agreement, Intergraph Corporation gives licensee
permission to print a reasonable number of copies of the documentation as defined in the applicable license agreement and
delivered with the software product for licensee's internal, non-commercial use. The documentation may not be printed for resale or
redistribution.
Warranties and Liabilities
All warranties given by Intergraph Corporation about equipment or software are set forth in the EULA provided with the software or
applicable license for the software product signed by Intergraph Corporation, and nothing stated in, or implied by, this document or
its contents shall be considered or deemed a modification or amendment of such warranties. Intergraph believes the information in
this publication is accurate as of its publication date.
The information and the software discussed in this document are subject to change without notice and are subject to applicable
technical product descriptions. Intergraph Corporation is not responsible for any error that may appear in this document.
The software discussed in this document is furnished under a license and may be used or copied only in accordance with the terms
of this license. No responsibility is assumed by Intergraph for the use or reliability of software on equipment that is not supplied by
Intergraph or its affiliated companies. THE USER OF THE SOFTWARE IS EXPECTED TO MAKE THE FINAL EVALUATION AS
TO THE USEFULNESS OF THE SOFTWARE IN HIS OWN ENVIRONMENT.
Intergraph is not responsible for the accuracy of delivered data including, but not limited to, catalog, reference and symbol data.
Users should verify for themselves that the data is accurate and suitable for their project work.
Trademarks
Intergraph, the Intergraph logo, PDS, SmartPlant, SmartMarine, FrameWorks, I-Convert, I-Export, I-Sketch, IntelliShip, INtools,
ISOGEN, MARIAN, SmartSketch, SPOOLGEN, SupportManager, and SupportModeler are trademarks or registered trademarks of
Intergraph Corporation or its subsidiaries in the United States and other countries. Microsoft and Windows are registered
trademarks of Microsoft Corporation. MicroStation is a registered trademark of Bentley Systems, Inc. Other brands and product
names are trademarks of their respective owners.
Contents
SmartPlant P&ID Utilities ............................................................................................................................ 5
Check Item Paths Utility .......................................................................................................................... 5
Check Symbols Utility ............................................................................................................................. 5
Check Symbols in a Plant ................................................................................................................ 5
Sample Check Symbol Log File ....................................................................................................... 6
Clean Data Utility (DelOrpModItems.dll) ................................................................................................. 7
Clean Data (Delete Orphan Model Items) ........................................................................................ 7
Display Tabs Conversion Utility .............................................................................................................. 9
Duplicate Item Tag Report Utility .......................................................................................................... 10
Item Tag Validation Utilities .................................................................................................................. 11
Local Model Item Lookup Table Utility .................................................................................................. 11
Repair Relationship Indicators Utility .................................................................................................... 12
Update Labels Utility ............................................................................................................................. 12
Updating Symbology ............................................................................................................................. 13
Use the Update Symbology Command .......................................................................................... 13
Update Line Styles Using the ApplySettingsCmd Macro ............................................................... 13
Fixing Orphaned Drawing Symbols ...................................................................................................... 13
Fix Orphaned Symbols Using the OrphanGraphics Macro ............................................................ 13
Fix Orphaned Symbols During Drawing Re-Creation .................................................................... 14
Piping Specification Utility ..................................................................................................................... 15
Enter Required ProgIDs ................................................................................................................. 16
Configure Piping Specification Settings ......................................................................................... 17
Performing Service Limits Validation .............................................................................................. 18
Performing Commodity Code and Fabrication Category Look Up ................................................. 18
Update Zero Length Pipe Run Connectors Utility ................................................................................. 19
Service P&IDs Utility ............................................................................................................................. 19
Open the Service P&IDs Utility from SmartPlant P&ID .................................................................. 20
Index ........................................................................................................................................................... 25
5. If the SPP&ID Automation application does not open a document by default, complete the
following steps before proceeding:
a. Click File > New.
b. Select Document in the Create new group.
c. Select Normal.spp from the list of templates.
d. Click OK to open a new document.
6. Click Tools > Custom Command and run CheckSymbolsCmd.dll from the
..\SmartPlant\P&ID Workstation\Program folder.
7. Click OK or view the log file for detailed information.
Suggested Solutions
1. Delete symbol from existing drawings. Open the symbol in Catalog Manager, delete
rectangles, and draw the graphics as lines instead of a rectangle. Place updated symbol on
drawing.
2. Delete symbol from existing drawings. Open symbol in Catalog Manager, place a select set
around the graphics, select Ungroup from the Change toolbar. Place symbol on drawing.
3. Delete symbol from existing drawings. Open symbol in Catalog Manager, delete connect
points and add connect points. Place symbol on drawing.
4. Delete symbol from existing drawings. Open symbol in Catalog Manager, delete symbol and
re-create symbol. Place symbol on drawing.
5. Delete symbol from existing drawings. From Catalog Manager, delete connect points and add
Auxiliary points. Place symbol on drawing.
5. Open a drawing and click Tools > Custom Commands to open the Custom Commands
dialog box.
6. Browse the drawing software program directory and open DelOrpModItems.dll. This macro is
located by default in the ..\SmartPlant\P&ID Workstation\Program folder.
7. On the Clean Data dialog box, click Database Report. The results are written to the
DBCleanup.txt file in your Temp folder. This report helps you decide if a manual cleanup
alternative exists before using the Entire Database command to automatically delete the
problems from the database.
8. After any manual database clean up, click Entire Database to automatically delete the
problems from the database.
9. Click Model Items.
10. On the Delete Orphan Model Items dialog box, select each model item type from Item Type
Names list to see if any orphan items exist in the database.
11. In the List view, select the model orphan items to delete, and click Delete.
You can also click Delete All to select and delete all the items in the list view.
12. Click Close to return to the Clean Data dialog box.
15. Choose the OPC pair you are interested in from the OPC list, and click Fix if it is a repairable
pair or Delete if it is non-repairable.
16. Click Close to return to the Clean Data dialog box.
17. On the Clean Data dialog box, click Gaps to find and repair gaps that do not have the correct
representation in the database.
We do not recommend using the Gaps command as part of your database
constraint cleanup. If you find it necessary to run Gaps, you must be careful not to select Yes
to a symbol that is not a gap. If you select Yes to any symbol other than a gap, you may
corrupt your data set.
18. On the Clean Data dialog box, click Close to return to the design software.
The Clean Data utility must be run from within the SmartPlant P&ID environment.
For easy access to this utility, you can create a custom menu in the SmartPlant P&ID interface
to run the Clean Data utility. For information about how to do this, see the Create a New Menu
topic in the SmartPlant P&ID User's Guide.
Log messages generated when orphaned records are deleted from the plant database are
written to the DBCleanup.txt file in the directory assigned to the TEMP environment variable.
Log messages are placed in SPDelOrpModItems.log file in the directory assigned to the
TEMP environment variable. The log file contains information about deleted items including
the item type and SP_ID number.
4. Enter the name of the display set to which you want the display tab filters written and click OK.
5. The new display set is added to the View > Apply Display Set > My Display Sets menu.
2. Click Connect to Active Plant. The name of the active plant displays.
To use these files, you must rename the ItemTag.dll file installed on your computer (for example,
rename the file to DeliveredItemTag.dll), then copy from one of the product CD sub-folders
(ActiveProjectAgainstAsBuilt or ActiveProjectAgainstAsBuiltAndProjects) the ItemTag.dll
flavor that you want to use. Place this copy in the same location as the installed ItemTag.dll that
you just renamed. When you are finished, remove the ItemTag.dll copy, then rename the
delivered copy back to its original name.
For more information about transferring piping data, see the SmartPlant P&ID to PDS Piping Data
Transfer Configuration and Reference Guide.
For more information about Workshare and DBLinks, see the Workshare Configuration and
Reference Guide.
4. Select the Report option and click OK to evaluate relationship indicators and generate the
RnR-RelIndicators.log report in the Temp directory. Review the report to see any
relationship indicator errors existing in the drawing.
5. If any errors exist, select the Repair & Report option and click OK to repair relationship
indicators and to generate an activity report, RnR-RelIndicators.log, in the Temp directory.
Review the report to see how each relationship indicator error was resolved.
6. Close and reopen the drawing after running this utility and before making any further
modifications to the drawing.
This utility must be run on a per drawing basis. It cannot be run on an entire plant.
Updating Symbology
You can force the software to redraw the graphic representation of your data, the drawing, by
using the Update Symbology command in SmartPlant P&ID. This command refreshes the
graphic symbology (that is, line weight and color) of symbols in your drawing based on the current
settings in Options Manager. The ApplySettingsCmd macro (delivered to the ..\SmartPlant\P&ID
Workstation\Program folder) also updates the line settings, Minimum Connector Segment, and
Routing Self-Avoidance.
The symbology and other settings defined in Options Manager usually take effect only in those
drawings created after those values are defined. Updating Options Manager settings enables you
to force changes in your symbology definitions to be reflected in the current drawing, regardless of
when it was created.
Any user can update drawings using these commands. However, check your permissions,
which are assigned in SmartPlant Engineering Manager, to find out if you can make changes
to the plant-wide symbology in Options Manager.
Once you load the current plant-wide symbology definitions into your drawing, you cannot
revert to previous definitions. However, you can always override plant-wide symbology
choices in your drawing by using drawing filters and choosing alternate symbology for items.
In Options Manager, two settings, Minimum Connector Segment and Routing Self-Avoidance,
control the behavior of pipe and signal runs when they are placed in a drawing or when an
inline component is placed on a run. You can change these settings in Options Manager, but
the new values affect only lines placed after the change. The ApplySettingsCmd.dll macro
applies the latest settings to all runs on the current drawing. You must run this macro for every
drawing individually.
To use the Piping Specification Utility with SmartPlant 3D, you must install the SmartPlant 3D
Piping Specification Remote Access Client, which is available on the SmartPlant P&ID product
CD under Prerequisite Software.
The software performs the look-up on fabrication category for PDS 3D PipeSpec only;
fabrication category is not supported for SmartPlant 3D.
All of the displayed text strings are maintained as Visual Basic resources in the
PipeSpec.dll. These strings can be translated or modified as required using a resource file
editor.
When performing piping materials class validations, commodity code lookup, or validation of
nominal diameter for SmartPlant 3D, the Piping Specification utility assigns the revision
number from the SmartPlant 3D piping materials class to the Pipe Spec Revision property.
Error messages are placed in the PipeSpecError.log file in the directory assigned to the TEMP
environment variable. Error messages help you identify the cause of failure when the utility
does not complete the tasks as expected. For example, if minimum requirements are not met
for the look-up, the missing properties are listed in the log file.
The ServiceLimits.log file contains any errors encountered during the Service Limit
Validation process, which runs as part of the Piping Specification utility.
5. Type the necessary information in the given fields as shown in the above table; then click OK
to save and close.
6. Repeat the steps 3 - 5 above to update each database table.
If the Use piping specification setting is PDS3D or SmartPlant 3D and the Enable
piping specification validation setting is No, continuous service limits validation and
automatic commodity code lookup are not available. However, the user can still
manually select the Calc buttons to activate the Commodity Code Lookup dialog
box or the Piping Materials Class selection dialog box. The Calc buttons are enabled for
the Piping Materials Class and Commodity Code properties by assigning Calculation
IDs in Data Dictionary Manager. For details on calculation and validation, see the
SmartPlant P&ID Utilities Guide topic, Enter Required ProgIDs (on page 16).
If the Use piping specification setting is No, continuous service limits validation and
automatic commodity code lookup are not available. Also, the Calc buttons for the Piping
Materials Class and Commodity Code properties are not functional.
The Short Value entries in the Piping Component Type select list in Data Dictionary
Manager are populated from the contents of the
PDS3D_SP3D_ShortCode_Correlation.txt file (located in the ..\SmartPlant\P&ID
Workstation\Program folder) according to the Use piping specification setting as
follows:
PDS3D The Short Value column is populated with data from the second column of
the PDS3D_SP3D_ShortCode_Correlation.txt file (AABBCC code).
SmartPlant 3D The Short Value column is populated with data from the third
column of the PDS3D_SP3D_ShortCode_Correlation.txt file.
No The data in the Short Value column is not updated and remains what it was
previously.
When changing the Use piping specification setting from No to PDS3D or SmartPlant
3D, validation occurs only for items modified after the change.
3. Do one of the following:
If connecting to a SmartPlant 3D database, fill in the database information in the
SmartPlant 3D Plant Name and SmartPlant 3D Server Name fields, and then skip the
rest of this procedure.
If connecting to a PDS 3D database, proceed with the remaining steps of this procedure.
4. Select the database type from the PDS Database Type list. Supported database types are
MSSQL and Oracle.
5. Type the database name in the PDS Database Name field.
The database name is not required for Oracle databases. The default value of a blank
space, not a null, must be assigned for Oracle databases.
6. Type a value in the PDS Database Server/Alias field.
This entry defines the server name for a Microsoft SQL Server database or the Alias
name on the client machine for an Oracle database.
7. Type the user name and password of the ra schema of a PDS 3D project under PDS
Approved Reference Database Schema Name and PDS Approved Reference Database
Schema Password respectively.
8. Type the user name and password of the pd schema of a PDS 3D project under PDS Project
Control Database Schema Name and PDS Project Control Database Schema Password
respectively.
9. In the Max-Temperature Unit in PDS3D list, select the unit of measurement used in PDS 3D
for the maximum temperature limit for piping components.
The software performs the look-up on fabrication category for PDS 3D PipeSpec only;
fabrication category is not supported for SmartPlant 3D.
The units for the PDS 3D maximum temperature are those specified in Options Manager.
If any temperature values for the pipe run are unspecified, then a value of zero Deg-K is
assumed for each of the unspecified temperatures. If multiple records are obtained in the
look-up, then the utility returns a commodity code only if all of the records have the same code
value. If not, an error is recorded in the error-log file with the appropriate message.
The Fabrication Category property of inline piping components is a select-listed property in
SmartPlant P&ID. A relationship between the fabrication category and the commodity name
can be defined in the PDS 3D database. The Commodity Name is a unique name for every
symbol. In PDS 3D, this unique name is the AABBCC Code property. SmartPlant symbols
are assigned the same AABBCC Code properties in Catalog Manager.
Similarly, the Option Code property is a select list of text values in SmartPlant P&ID, while it is
a set of code numbers or indices in PDS 3D. Short Value for the Option Code select list
contains the PDS 3D indices corresponding to the appropriate Option Code text in
SmartPlant P&ID. The PipeSpec utility uses the entries in the Short Value box of the Option
Code list to obtain the Option Code used in the PDS 3D database tables.
Error messages are placed in the PipeSpecError.log file in the directory assigned to the TEMP
environment variable. Error messages help you identify the cause of failure when the utility
does not complete the tasks as expected. For example, if minimum requirements are not met
for the look-up, the missing properties are listed in the log file.
7. Click Show Drawings to display a list of all the P&IDs associated with the active plant.
8. Select the Check Boxes next to the P&IDs that you want to verify.
Click Select All to select all the drawings of the active plant.
9. Click Report to start the verification process. The results of the verification are displayed in
the Status column of the Service Pids dialog box.
10. Click View Logfile to view the results of the verification. The log file can be saved as a text
file and printed.
11. Click Close to close the utility.
Log Files
The following table lists the most common log files generated by SmartPlant P&ID.
C S
Check Item Paths Utility 5 Sample Check Symbol Log File 6
Check Symbols in a Plant 5 Service P&IDs Utility 19
Check Symbols Utility 5 SmartPlant P&ID Utilities 5
Clean Data (Delete Orphan Model Items) 7
Clean Data Utility (DelOrpModItems.dll) 7 U
Configure Piping Specification Settings 17
Update Labels Utility 12
Update Line Styles Using the
D ApplySettingsCmd Macro 13
Display Tabs Conversion Utility 9 Update Zero Length Pipe Run Connectors
Duplicate Item Tag Report Utility 10 Utility 19
Updating Symbology 13
E Use the Update Symbology Command 13
Enter Required ProgIDs 16
F
Fix Orphaned Symbols During Drawing
Re-Creation 14
Fix Orphaned Symbols Using the
OrphanGraphics Macro 13
Fixing Orphaned Drawing Symbols 13
I
Item Tag Validation Utilities 11
L
Local Model Item Lookup Table Utility 11
Log Files 23
O
Open the Service P&IDs Utility from
SmartPlant P&ID 20
P
Performing Commodity Code and
Fabrication Category Look Up 18
Performing Service Limits Validation 18
Piping Specification Utility 15
R
Repair Relationship Indicators Utility 12