pidman

165
CADPIPE P&ID

description

fsf

Transcript of pidman

Page 1: pidman

CADPIPE P&ID

Page 2: pidman

CADPIPE P&ID© 2004 Orange Technologies, Inc.

All Rights Reserved

This publication, or parts thereof, may not be reproduced in any form, by any method, for anypurpose.

Orange Technologies, Inc., makes no warranty, either expressed or implied, including but notlimited to any implied warranties of merchantability or fitness for a particular purpose, regardingthese materials and makes such materials available solely on an "as-is" basis.

In no event shall Orange Technologies, Inc., be liable to anyone for special, collateral, incidental,or consequential damages in connection with or arising out of purchase or use of these materials.The sole and exclusive liability to Orange Technologies, Inc., regardless of the form of action,shall not exceed the purchase price of the materials described herein.

Orange Technologies, Inc., reserves the right to revise and improve its products as it sees fit.This publication describes the state of this product at the time of its publication, and may notreflect the product at all times in the future.

CADPIPE uses AutoCAD ® as the graphics driver.

CADPIPE is a registered trademark of AEC Design Group, a wholly-owned subsidiary of Orange Technologies, Inc.Autodesk, the Autodesk logo, and AutoCAD are registered trademarks, and ObjectARX, the Built with ObjectARX

logo, and Design Your World are trademarks, of Autodesk, Inc., in the United States and/or other countries. All otherbrand names, product names, or trademarks belong to their respective holders.

Printed in the United States

Page 3: pidman

TABLE OF CONTENTS

CADPIPE INSTALLATION.............................................................................................. 1Basic Workstation Requirements.............................................................................. 1

Software requirements .......................................................................................... 1Hardware requirements......................................................................................... 1

Essentials of a Correct Installation............................................................................ 1What you need for memory ................................................................................... 2SYSTEM.INI.......................................................................................................... 2AutoCAD text files ................................................................................................. 2

CADPIPE Directories................................................................................................ 3Existing Users .......................................................................................................... 5

Database table backups........................................................................................ 5Specification backups............................................................................................ 5

Installation ................................................................................................................ 6Hardware Locks .................................................................................................... 6ACAD.INI .............................................................................................................. 7Reinstalling the Database(s) and Project Utilities .................................................. 8The Utilities directory............................................................................................. 8

Updating from CADPIPE 3.1 or Earlier ..................................................................... 8Network Users........................................................................................................ 11

PROJECT MANAGER .................................................................................................... 1Imperial and Metric................................................................................................ 1

Creating Projects ...................................................................................................... 1Working Projects ................................................................................................... 2Adding Drawings to your Project Structure ............................................................ 5Project Control ...................................................................................................... 7Loading the drawing............................................................................................ 10

STARTING ..................................................................................................................... 1Imperial and Metric................................................................................................ 1

Command Access .................................................................................................... 1Repeated menu command .................................................................................... 1Text response and text trail ................................................................................... 2

CADPIPE Essentials ................................................................................................ 2Angle of rotation .................................................................................................... 2Correcting errors ................................................................................................... 3Picking points on the drawing................................................................................ 3Layers ................................................................................................................... 3Managing your Projects......................................................................................... 4

Drawing Initialization................................................................................................. 4The date/time stamp.............................................................................................. 5Standard Prototype Drawing ................................................................................. 5

Drawing Procedures ................................................................................................. 5Drawing Defaults ...................................................................................................... 7

What are CADPIPE defaults?................................................................................ 7Viewing your Current Defaults............................................................................... 8Current Settings .................................................................................................... 9Setting numbers .................................................................................................. 16Reset your defaults ............................................................................................. 17

System Defaults ..................................................................................................... 19

Page 4: pidman

Toggles .................................................................................................................. 20Size, Rating, Ends Toggles ................................................................................. 20BOM Toggle........................................................................................................ 20Tag Toggle.......................................................................................................... 20Auto-Save Toggle ............................................................................................... 20Pipe/Equipment Toggle ....................................................................................... 21

Placing P&ID Symbols............................................................................................ 21Insertion and rotation........................................................................................... 21Automatic mirroring ............................................................................................. 21

What You Can Place with CADPIPE P&ID ............................................................. 22Equipment .............................................................................................................. 22The Flow line .......................................................................................................... 24

Guidelines for placing flow lines .......................................................................... 25Placing a Flow line .............................................................................................. 25

Manual Valves........................................................................................................ 27Placing a Valve ................................................................................................... 27Set Ends ............................................................................................................. 28Rating.................................................................................................................. 28Valve Type .......................................................................................................... 28Automatic update to line size............................................................................... 30Automatic valve tagging ...................................................................................... 30PSVs................................................................................................................... 31Adding an Actuator.............................................................................................. 32

Fittings.................................................................................................................... 32How to work with reducers .................................................................................. 33Removing a reducer ............................................................................................ 34Moving a reducer ................................................................................................ 35

Instrumentation....................................................................................................... 35Flow meters......................................................................................................... 35Control valves ..................................................................................................... 35Actuators............................................................................................................. 36Instrumentation signal lines ................................................................................. 36Logic symbols ..................................................................................................... 36Instrument balloons............................................................................................. 36Balloon modifiers................................................................................................. 37Line Join/Break ................................................................................................... 37Auto-Toggle Arrow .............................................................................................. 38Spec Break ......................................................................................................... 38Moving a Spec break........................................................................................... 39

CADPIPE’s Editing Features .................................................................................. 39Editing Pipe/Equipment relates to flow lines ........................................................ 39Edit Rating .......................................................................................................... 41Edit Numbers ...................................................................................................... 42Edit Pipe/Equipment Designation ........................................................................ 43Edit Tag............................................................................................................... 43Edit Item BOM Off ............................................................................................... 45

Annotation .............................................................................................................. 45Label Line ........................................................................................................... 45Normally Open and Normally Closed symbols..................................................... 45Title Block ........................................................................................................... 46

Page 5: pidman

Query ..................................................................................................................... 46CADPIPE’s Drawing Information Files .................................................................... 46Getting Help ........................................................................................................... 47

TECHNICAL SUPPORT ............................................................................................... 48Contacting AEC Design Group: .............................................................................. 48CADPIPE Wish List and Bug Report....................................................................... 48

P&ID VERSION 6.1 TUTORIAL...................................................................................... 1Introduction............................................................................................................... 1

Command Access ................................................................................................. 1Responding to Prompts......................................................................................... 1Picking Points on the Drawing............................................................................... 1Angle of Rotation................................................................................................... 2Correcting Errors................................................................................................... 2Help ...................................................................................................................... 2

Getting Started ......................................................................................................... 3Running the CADPIPE Demonstration Version ..................................................... 3Create a New Drawing .......................................................................................... 3Initialize the Drawing ............................................................................................. 4

Define Design Specifications .................................................................................... 6Line Designation ................................................................................................... 6Pipe Size............................................................................................................... 6Spec Check........................................................................................................... 7

Place Equipment ...................................................................................................... 8Vessel ................................................................................................................... 8Continuation Arrow................................................................................................ 9

Draw the Main Flow Line ........................................................................................ 10Place Valves and Fittings ....................................................................................... 11

Gate Valve .......................................................................................................... 11Check Valve........................................................................................................ 13Gate Valve .......................................................................................................... 14General Control Valve with Actuator.................................................................... 15Concentric Reducer............................................................................................. 17Concentric Reducer............................................................................................. 18Gate Valve .......................................................................................................... 19Insulation............................................................................................................. 19Flanged Orifice Flowrate Symbol......................................................................... 20

Draw the Bypass .................................................................................................... 21Move Insulation ................................................................................................... 21Edit Line Designation .......................................................................................... 21Draw the Bypass ................................................................................................. 22Globe Valve ........................................................................................................ 23

Change the Drawing Scale ..................................................................................... 24Draw Signal Lines and Tap-in Line ......................................................................... 25

Pneumatic Signal Lines....................................................................................... 253-Way Control Valve ........................................................................................... 26Tap-in Line .......................................................................................................... 27Gate Valves ........................................................................................................ 28Instrument Balloon .............................................................................................. 29Electric Signal Line.............................................................................................. 30Instrument Balloon .............................................................................................. 31

Page 6: pidman

Drain Line............................................................................................................ 32Gate Valve .......................................................................................................... 33

Draw Flow line TUTOR3-ABB1............................................................................... 34Continuation Arrow.............................................................................................. 35Gate Valve .......................................................................................................... 35

Draw Line TUTOR4-ABB1...................................................................................... 36Pair of Flanges .................................................................................................... 36

Annotate the Drawing ............................................................................................. 37Label Flow Lines ................................................................................................. 37Toggle Arrows ..................................................................................................... 38Title Block ........................................................................................................... 39

BILL OF MATERIALS ..................................................................................................... 1Introduction............................................................................................................... 1Entering the Program ............................................................................................... 1BOM Options Dialog Box.......................................................................................... 2

Material Type Selection......................................................................................... 2Sorting Method...................................................................................................... 3Output Device Selection........................................................................................ 5Include/Exclude Descriptions ................................................................................ 8

Sample Bill of Materials ............................................................................................ 9GLOBAL BILL OF MATERIALS ...................................................................................... 1

What is the Global Bill of Materials? ......................................................................... 1The Drawing Information File (.CPG)........................................................................ 1

Job Numbers......................................................................................................... 2Revision Numbers................................................................................................. 2BOM of a single drawing ....................................................................................... 3

Extracting a Global Bill of Materials .......................................................................... 3"Build/Report Global BOM".................................................................................... 4"Merge CPG files" ................................................................................................. 5"Report Global BOM" ............................................................................................ 7Global BOM Summary Report............................................................................... 8

CUSTOMIZING............................................................................................................... 1Imperial and Metric................................................................................................ 1

Editing System Defaults............................................................................................ 1Edit Defaults File command................................................................................... 1

Custom Title Blocks.................................................................................................. 3Customizing the Date/Time Stamp ........................................................................... 4The Prototype Drawing............................................................................................. 5Project Directories .................................................................................................... 5

Customizing the Line Label ................................................................................... 6Layers ...................................................................................................................... 7

Customizing layers ................................................................................................ 8Adding Flow Line Types ........................................................................................... 9Editing Menu Commands ....................................................................................... 11

Introduction ......................................................................................................... 11Customizing Valves ................................................................................................... 12

Customizing Manual Valves ................................................................................... 12An Introduction to manual valve blocks ............................................................... 12CADPIPE Database Tables................................................................................. 13Valve “TYPE” Defaults for Spec Check Off.......................................................... 14

Page 7: pidman

Customizing Fittings ............................................................................................... 19CADPIPE P&ID Fittings code listing for drawing blocks....................................... 19Main fitting types ................................................................................................. 20Example of adding a new fitting type ................................................................... 21

Customizing Instrumentation .................................................................................. 23Description files for instrumentation..................................................................... 25Modifying existing instrumentation....................................................................... 25Creating new instrumentation.............................................................................. 26Menu—CPID.MNU file changes .......................................................................... 27

Creating a New Symbol Block ................................................................................ 28Instrument Signal Lines .......................................................................................... 28Slide Libraries......................................................................................................... 29

Equipment ................................................................................................................. 32Equipment Wizard .................................................................................................. 32

Pull-Down Menu.................................................................................................. 32Icon Menu ........................................................................................................... 33

Page 8: pidman

CADPIPE INSTALLATION INSTALL-1

CADPIPE INSTALLATION

Basic Workstation Requirements

Software requirements

• AutoCAD 2000• Windows 95 or Windows NT

Hardware requirements

AutoCAD and CADPIPE can be run with various hardwareconfigurations. Installation of a minimal system has low entry cost butreduced productivity can be the result.

We have described a recommended hardware setup:

• Desktop computer: Pentium IBM or 100% compatible• 540 Kb conventional memory• Extended/Expanded memory: 64 Mb minimum• Serial ports: 2• Parallel ports: 1• Hard disk: 30 Mb of free space• Display card: high performance video card SVGA 800 x 600

resolution minimum with built-in zoom• Input device: mouse or AutoCAD compatible digitizer 12" x 12"

(300mm x 300mm) minimum• Plotter: plotter and/or electrostatic plotter, 400 dpi minimum• Monitor: high frequency color monitor (48kHz minimum)• Printer: ink jet or laser• Protection: surge protection for monitors, computer, plotters

Essentials of a Correct Installation

There are certain procedures that are essential to a successful installation:

if you have an ACAD.BAT file, rename it so that it does not runwhen you are using CADPIPE.

ensure that you have a minimum of 550 Kb Low DOS working

Page 9: pidman

CADPIPE INSTALLATION INSTALL-2

space (more is needed in some cases).modify your SYSTEM.INI file (see below)if you are using a tablet, configure your tablet menu.

What you need for memory

AutoCAD, AutoLISP, and CADPIPE require about 550 Kb of Low DOSmemory or as required by AutoCAD. Present versions of DOS limit basememory to 640 Kb. As a consequence, there is a limit to size available formemory resident programs, display card drivers, and programs which canbe run from the AutoCAD “SHELL” to DOS. Inadequate space can resultin an error message during your drawing session.

To increase free RAM, remove any TSR (Terminate and Stay Resident)programs, such as the DOS [PRINT] command, or any of the many TSRprograms that are commercially available. There are also certain graphicscontroller cards that use large amounts of RAM as part of the devicedriver. Before you purchase graphics cards that you intend to use withCADPIPE, check that their software drivers will be satisfactory.You can use a memory manager to increase your low DOS memory.

SYSTEM.INI

Include the following lines under the [NonWindowsApp] section of theSYSTEM.INI file in your Windows directory:

CommandEnvSize=2048

If you do not set the environment size, you may encounter an “out-of-environment-space” error message.

AutoCAD text files

If you have deleted AutoCAD’s TXT.SHX file from the \ACAD\FONTSdirectory, copy it from the relevant AutoCAD installation disk. This file isnecessary for CADPIPE text.

Cri

tica

l

Page 10: pidman

CADPIPE INSTALLATION INSTALL-3

CADPIPE Directories

Your fixed disk should have a minimum of 60 Mb of free space for eachprogram before beginning installation. This is what you need forinstallation only; you will need at least 50 Mb for efficient use.

The amount of free space for installation may vary depending on howyour hard drive is partitioned. If your hard drive is divided into onelarge partition, the programs may require more free space. Refer to yourDOS manual for information on partitioning your hard drive.

The following directories and subdirectories are created on your fixed diskoff the main CADPIPE directory. The Installation will only createdirectories for programs you have selected to install:

\CPEXE contains CADPIPE executable files

\CPTEMP contains the CADPIPE temporary files

\CPACADD contains CADPIPE DOS support files (menu files,prototype drawings, language files, help files, etc.)

\CPACADW contains CADPIPE Windows support files (menu files,prototype drawings, language files, icons, help files, etc.)

\CPWORK this directory is created during the installationprocedure for CADPIPE. This directory will hold all of your workingprojects.

\CPORTHO (imperial)\CPMORTHO (metric)The ORTHO main directory contains:

\ORTLSP contains AutoLISP program files\ORTBLK1 contains CADPIPE single-line drawing

blocks\ORTBLK2 contains CADPIPE double-line drawing

blocks\ORTBLKC contains CADPIPE common drawing

blocks\ORTBLKS contains CADPIPE symbol drawing

blocks\ORTBLKX contains CADPIPE custom blocks

Page 11: pidman

CADPIPE INSTALLATION INSTALL-4

\CPISO (imperial)\CPMISO (metric)The ISO main directory contains:

\ISOLSP contains AutoLISP program files\ISOBLK contains CADPIPE drawing blocks

\ISOBLKS contains CADPIPE symbol blocks\ISOBLKA contains CADPIPE drawing blocks

(attributes)\ISOBLKX contains CADPIPE custom blocks

\ISOBLKM contains CADPIPE miscellaneous blocks

\CPPID (imperial)\CPMPID (metric)The CADPIPE P&ID main directory contains:

\PIDLSP contains AutoLISP program files\PIDTAGEQ contains CADPIPE equipment tag

blocks\PIDBLKEQ contains CADPIPE equipment blocks

blocks\PIDBLKFT contains CADPIPE fitting blocks

\PIDBLKIN contains CADPIPE instrumentation blocks\PIDBLKMV contains CADPIPE manual valve blocks

\PIDBLKSY contains CADPIPE symbol blocks

\CP3DDES (imperial) contains all the 3D DESIGNprogram files.\CPM3DDES (metric)

\CPELECThe CADPIPE ELECTRICAL main directory contains:

\ELCLSP contains AutoLISP program files\ELCBLKC contains blocks common to both

schematic and layouts\ELCBLKL contains layout drawing blocks\ELCBLKS contains schematic drawing blocks

\CPTABLE (imperial) main database directory. For ourinstallation example,\CPMTABLE (metric) this directory contains the followingsubdirectories:

\AP contains ANSI piping components dimensiontables

\SPEC contains the specification files\ASSY contains the assemblies

Page 12: pidman

CADPIPE INSTALLATION INSTALL-5

The following are the optional databases that are available with the ANSIdatabase:

\SS contains the STAINLESS STEELdatabase information

\OD contains the O.D. database information\ID contains the I.D. database information\PL contains the ANSI PLUS PLASTIC

Database

DIN, JIS, French Standards (AFNOR), British Standards, and PolishStandards databases are also available.

Existing Users

Database table backups

If you have previously installed CADPIPE, you will already have the\CPTABLE (\CPMTABLE) directory and subdirectories on your disk.

The CADPIPE installation program will check if you have modifiedtables. If differences are detected, CADPIPE will ask you if you want tosave your tables to a backup directory.

If you have not modified your existing database tables, you may want todelete them to save time during installation.

Nonetheless, we recommend that you copy all of your modified databasetables to another directory or to floppy disks as an extra measure ofsafety—before installing the new program.

CADPIPE 4.0 added the weight field to all database tables prior to 3.1,changing the table format. Your existing database tables must be adjustedto accommodate this change before they can be used. Refer to “Updatingfrom 3.1 or earlier” following the installation procedure.

Specification backups

If you have previously installed CADPIPE and have altered thespecifications that come with CADPIPE, you should copy them into aback-up directory and move them back into the \CPTABLE\SPEC

Page 13: pidman

CADPIPE INSTALLATION INSTALL-6

(\CPMTABLE\SPEC) directory once you have finished your installation.Otherwise, the installation program will overwrite them.

If you want to reinstall the database(s) or Project Utilities programsonly, refer to “Reinstalling the Database and Project Utilities” followingthe installation procedure.

Installation

Hardware Locks

Plug the CADPIPE hardware lock into your parallel port (LPT1) at theback of your computer. Make sure the fit is tight. You can plug yourprinter cable into the lock. Locks from other programs can be plugged intoeach other before attaching the printer cable.

CADPIPE Disk

Place the CADPIPE CD into the CD-ROM drive.

Click “Start” — “Run.” Type j:install (where j: is your CD-ROMdrive). Click “OK.”

Respond to Installation Options

• Select the location of your AutoCAD main directory. This isusually C:/PROGRAM FILES/AUTOCAD2000.

• Select either “Full Installation” or “Demonstration Installation.”Select the “Demonstration Installation” if you are evaluating theCADPIPE software. This will allow you to run a restricted version of thesoftware without hardware locks.

If you already have CADPIPE installed on your system and want toreinstall the database(s) or Project Utilities programs only, select the“Reinstall” option and refer to “Reinstalling the Database(s) and ProjectUtilities” at the end of these installation procedures.

• Select the language version of the AutoCAD you are using.

Page 14: pidman

CADPIPE INSTALLATION INSTALL-7

• Select a language for your CADPIPE prompts. English or Frenchis provided. You can customize the prompts so that they are in a languageother than French or English (refer to the Systems Defaults command inthe Starting section of the manual).

• Select imperial or metric CADPIPE.

• If you are installing the ANSI PLUS database, you are asked toselect the optional databases (Stainless Steel, O.D., I.D., Plastic, Tongueand Groove).

The “AP Tongue and Groove tables” include all the tongue and grooveflange faces and are part of the ANSI database. They are offered as aseparate option only to conserve space on your hard drive.

• Select the drive on which you want to install CADPIPE.

• Type in the directory name where CADPIPE will be installed oraccept the default \CP60. You may install CADPIPE to any directory youwant. The installation will create the directory if it doesn’t already exist.

• Confirm your choice of drive and directory name. If you wouldlike to change the drive or directory name that is listed, click “Browse,”and indicate where you would like CADPIPE to be installed.

Select the drive and directory that will contain your working projects. Thedirectory \CP60\CPWORK is offered as a default.

The installation overwrites the ACADL.EXE file. The current version issaved to \CPACADW\CPACADL.SAF. If the ACADL.EXE is a read-only file, the installation program will tell you to overwrite the filemanually. You can overwrite the file after the installation is complete, soclick “OK” to continue. After installation, copy WCADPIPE.EXE fromthe \CPEXE directory to ACADL.EXE in the AutoCAD System directory.

After installation, read the CPWIN.WRI files. These files have importantinformation on specific system configurations and general information onrecent changes to CADPIPE. Click the “README” icon in the CADPIPEProgram Group.

ACAD.INI

The CADPIPE installation will write environment variables to yourACAD.INI file in your AutoCAD Systems directory.

Page 15: pidman

CADPIPE INSTALLATION INSTALL-8

Your current ACAD.INI file will be backed up to the CPACAD.INI file inyour AutoCAD Systems directory.

Reinstalling the Database(s) and Project Utilities

If you already have CADPIPE installed on your system and want toreinstall the database(s) or Project Utilities, select the “Reinstall” optionduring the basic installation:

The Project Utilities include the Database Editor, SpecificationGenerator, Global Bill of Materials, and Universal Data Exchange(CADPIPE Line Index) programs.

• select “Database” or “Project Utilities” or both• select metric or imperial• select the database(s) you want to reinstall• select the drive on which your current CADPIPE is installed• select the directory in which your current CADPIPE is installed.• The installation program will check if you have modified databasestables. If differences are detected, CADPIPE will ask you if you want tosave your tables to a back-up directory.

The Utilities directory

Advanced utilities are available in the \UTIL directory on the CADPIPECD, but they are not installed during CADPIPE installation. The Utilitiesinclude the Table Conversion program, text font files, tablet menudrawings, the Tutorial base and finished drawings, and various utilitiesthat are loaded as needed by advanced users.

Updating from CADPIPE 3.1 or Earlier

The format for the database tables changed in release 4.0; an additionalfield was added for weight information. Your modified tables fromversions prior to 3.1 must either be converted to the new format orreplaced by the tables on the CADPIPE disk.

1 If you have made only minor changes to your existing tables, makethose same changes in the new tables.

If you convert your modified database tables, all weight fields will beadded to the tables, but will contain a weight of zero. If you requireweights, you must enter the weights manually. Therefore, it may be easierto redo any changes or additions in the new tables than to convert the oldtables and reenter the weight information.

Customizenew tables

Page 16: pidman

CADPIPE INSTALLATION INSTALL-9

2 If you have added new tables or made extensive changes, use the TableConversion Program to update your tables to the new format. Onceconverted, all weight information is entered manually.

Table ConversionIf you decide your table customization is too extensive to reenter all thechanges, you must convert the tables using the Table Conversion program.This program adds the weight field to any 3.1 or earlier version ofCADPIPE database tables, or to entire custom databases.

We recommend that you make a backup copy of your tables, in addition tothe CADPIPE backup that occurs during installation, before running thisconversion program.

To convert your existing database tables for CADPIPE ORTHO or ISOfollow the steps below:

1 Ensure that the tables you are converting are contained in one directory.In our example, we are using a custom database “xx”. You may be usingthis, or possibly the \BACKUP directory off another database.

2 Place the CADPIPE CD in your CD-ROM drive and go to the MS-DOSprompt. At the DOS prompt, change to your \CPTABLE directory, andtype the following:

C:\CP60\CPTABLE> j:\UTIL\ORTH_ISO\tblconv\xx\*.tbl *.tbl

Where j: is the letter of your disk drive.

If you are using the floppy disks, type j:tblconv \xx\*.tbl*.tbl.

3 You will be prompted for the directory in which the tables are located.Type in the full path to the tables (in this example, C:\CPTABLE\xx orC:\CP60\CPTABLE\xx). If you are converting individual tables (using nowild cards), you will not be prompted for the table directory.

4 The conversion program will automatically backup your old tables. Thetables will be placed in a \BACKUP directory under the directory fromwhich you ran the conversion program (in this example, the \xx directory).Once you are using the new tables in your drawings successfully, youshould delete the old tables from this \BACKUP directory.

ac

Page 17: pidman

CADPIPE INSTALLATION INSTALL-10

5 When you now view the converted tables in the CADPIPE DatabaseEditor, you will notice that the weight fields are empty. If you needweights, you must fill in the weight information.

You will notice if an older table has not been converted. For example, ifyou see negative values in the weight fields, the table must be replaced orconverted.

Page 18: pidman

CADPIPE INSTALLATION INSTALL-11

Network Users

CADPIPE will work in a network environment. The configuration willdepend on your network and the drawing management system that youuse. Generally, the following setups are the most common:

1 All CADPIPE programs and \CPTEMP (\CPTEMP stores all CADPIPEtemporary files) are loaded locally; only working drawings are on the fileserver. With this setup, you would use the basic CADPIPE installation andwould not make any changes to the CADPIPE files.

2 All working drawings and the CADPIPE programs are loaded on the fileserver, and CADPIPE \CPEXE and \CPTEMP directories and files areloaded locally. With this setup, you would use the basic CADPIPEinstallation to load all the CADPIPE programs on to the file server. Youwould then make two directories on each local drive: “\CPEXE” and“\CPTEMP.” Copy all the files from the file server directory \CPEXE tothe local \CPEXE directory.

Make sure you have 1Mb of free disk space for \CPTEMP and 4.5 Mb offree disk space for the CPEXE files on the hard disk drive on which youwill create these directories.

You would then edit the local \CPEXE\CADPIPE.SET file with a texteditor to change the paths for \CPEXE and \CPTEMP as follows:

CPEXE=C:\..\CPEXE\CPTEMP=C:\..\CPTEMP\

Where C:\... is your local drive and CADPIPE directory. Each line mustend with “\”.

You must also change your PATH in the AUTOEXEC.BAT to reflect thenew location of \CPEXE.

Page 19: pidman

CADPIPE PROJECT MANAGER PM-1

Project Manager

Imperial and Metric

Imperial units are used in all examples in the documentation. Metricmeasurements are given in brackets when the unit of measure is critical tounderstanding a concept.

We use CADPIPE ORTHO in our examples in this chapter.

The following chart shows imperial filenames and directories and their metricequivalents:

IMPERIAL METRIC\CPTABLE \CPMTABLE\CPORTHO \CPMORTHO (\CPMISO, \CPMPID)\ORTHO.DWG \MORHTO.DWG (\MISO.DWG, \MPID.DWG)CPLDEF.LSP MCPLDEF.LSP (MISODEF.LSP, MCPDDEF.LSP)

Creating Projects

When you click on a CADPIPE program icon, you automatically enter theProject Manager:

When you enter Project Manager for the first time, you are in the working projectdirectory you created during the installation. In our example, we installedCADPIPE into \CP54 and our working directory is the default, \CPWORK. Yourcurrent working directory is shown at the bottom of the window.

This window listsyour project tags.

Indicates which programyou are loading andwhether you are using ametric or imperial version.

Your DOS path

This windowlists yourdrawings.

Page 20: pidman

CADPIPE PROJECT MANAGER PM-2

Working Projects

You create a structure for your CADPIPE drawings in the “Working Projects”window by adding major and minor tags (descriptive text). These tags describethe directories that contain your drawings. Each level of a hierarchy you createwill provide more detail about the drawings contained in the project.

The “Default Project” tag is available when you enter Project Manager for thefirst time. You can create project tags off the “Default Project,” but most often,you will create your own tags.

Create a Major ProjectTo create a project structure, click on “New” in “Edit Working Projects.” The“Add Major Project” dialog box appears.

Type in a Project tag. In our example, our major project is tagged EXXON GASPLANT 1. You can enter up to 60 characters:

Page 21: pidman

CADPIPE PROJECT MANAGER PM-3

The DOS path for this project is also listed in the dialog box. Click in the “ProjectDirectory” field and enter the DOS directory in which the major project will bestored. Rather than entering the DOS path, you can click on “Browse,” select adrive and directory from the lists in the “Browse” dialog box, and click “OK.”

We are storing the major project “EXXON GAS PLANT 1” in the C:\CP54\EXXONdirectory.

Click on “OK” and the tag will be listed in the “Working Projects” directory.

Create a Minor ProjectNext, we will add a minor project tag. With “EXXON GAS PLANT 1”highlighted, click on “Add” in “Edit Working Projects,” and you will see the“Add Project” dialog box:

Page 22: pidman

CADPIPE PROJECT MANAGER PM-4

Our minor project tag under “EXXON GAS PLANT 1” is “REFINERY 15/2-A,”and this tag is stored in the DOS directory C:\CP54\EXXON\REFINERY. Click “OK,”and “REFINERY 15/2-A” will be listed under “EXXON GAS PLANT 1.”

You can then add a tag level under “REFINERY 15/2-A.” We have added“PLANT AREA 1—NORTHEAST”:

Therefore, stored within this project structure are drawings pertaining to therefinery of Exxon gas plant 1 in area 1.

Modify a Project TagIf you want to change a project tag, simply click on “Modify” in “Edit WorkingProjects,” and edit your entry. We have changed “PLANT AREA 1—NORTHEAST” to “PLANT AREA 1—SOUTHWEST”:

Page 23: pidman

CADPIPE PROJECT MANAGER PM-5

This command will not modify your DOS directory name. If you want to changethe names of your DOS directories, you must create a new project structure.

Remove a Project Tag or Project StructureTo remove a Project tag or all the tags in a project Structure, you would use the“Remove Project” button in “Edit Working Projects.” This command will onlyremove the Project tags; it will not delete your files or directories.

You can continue to add project levels tot he Major project until you reach yourdrawing level.

Adding Drawings to your Project Structure

Create a DrawingWe will create a drawing at the “PLANT AREA 1—SOUTHWEST” level.Highlight “PLANT AREA 1—SOUTHWEST” and click on “Create Dwg.”

Type in the name of the new drawing and click on “OK.” The new drawing willbe listed in the “Drawings” window.

Prototype DrawingsA prototype drawing is loaded with every CADPIPE drawing. It is a base drawingwhich is provided by the program. Project Manager automatically recognizesprototype drawings with the names:

ORTHO.DWG for CADPIPE ORTHO drawing (imperial)MORTHO.DWG for CADPIPE ORTHO drawing (metr ic)3DDES.DWG for CADPIPE 3D DESIGN drawing (imperial)3DMDES.DWG for CADPIPE 3D DESIGN drawing (metric)ISO.DWG for CADPIPE ISO drawing (imperial)MISO.DWG for CADPIPE ISO drawing (metric)

Page 24: pidman

CADPIPE PROJECT MANAGER PM-6

PID.DWG for CADPIPE P&ID drawing (imperial)MPID.DWG for CADPIPE P &ID drawing (metric)

If you want to specify a prototype drawing other than the CADPIPE default, inthe “Create Drawing” dialog box, click on browse and select the directory andprototype drawing you want to use. The program will copy that prototype intoyour working directory and it will be used as the base for your new drawing.

Working directoryWhen you create a drawing, a program working directory is createdautomatically. In our example, and \ORTHO directory is created just below“AREA_1—SOUTHWEST.” In the other CADPIPE programs, and \ISO, \PID,\FORMS, or \3DDES directory would be created. These directories will appear inyour DOS path but will not appear in your project tag structure.

Tag a drawingOnce your drawing is created, you can tag it with detailed information.

Highlight the drawing and click on “Tag Dwg.” Type in the descriptive text andclick “OK.”

The drawing tag will appear at the bottom of the drawing window. You can enterup to 40 characters.

Page 25: pidman

CADPIPE PROJECT MANAGER PM-7

Rename a drawingTo change the name of a drawing, select a drawing name and click “RenameDwg.” Type in the new name and click “OK.”

Copy and move a drawingThese features will be available in a future release. Select a drawing name andclick on “Copy Dwg” or “Move Dwg.” The Copy or Move dialog box willappear. Select the drive and directory where you would like to copy or move thedrawing and click “OK.”

Delete a drawingTo delete a drawing from your list, click on the drawing you want to remove andthen click on “Delete Dwg.” You will be asked to confirm the command. Thiscommand will delete the drawing file only; it will not delete all associated files,such as .BAK.

Project Control

When CADPIPE is working on a drawing, it requires certain project-specificinformation in order to properly complete its task. This project informationincludes:

• the specification information• the drawing prototypes• the defaults files, the layers files, the user files• project-specific blocks (title block and BOM template)

For some CADPIPE users, all drawings will use the same project information; forothers, different clients have different needs. To accommodate the users who haveclients with differing needs (such as two clients who have the same specificationnames, but with different information), the Project Control structure wasdeveloped.

Project Control uses the reserved directory name \PROJ, and is found by ProjectManager searching for …\PROJ, or ..\..\PROJ, starting at the drawing directory andmoving toward the root directory.

The “Project Control” buttons are used to add and modify Project Controls. Whenyou create a Project Control, drawing information is automatically copied into theProject Control directory (\PROJ).

You can then modify the drawing information to suit your specific project.CADPIPE will use the customized drawing information from this directory ratherthan CADPIPE’s default directories. The drawings that use this directory dependon where the directory is created in your Project Structure.

W

Page 26: pidman

CADPIPE PROJECT MANAGER PM-8

Where does CADPIPE look for information?CADPIPE programs will look for specifications in the Project Control directory,then the common specification directory, \CPTABLE\SPEC. Unless you have a needfor project-specific specifications, all of you specification should reside in\CPTABLE\SPEC.

When creating drawings, Project Manager searches for the prototype drawing inthe current directory, the Project Control directory, and then the CADPIPESupport directory (\CPACADW). Thus, if your prototypes are not project-specific,they can stay in your CADPIPE Support directory.

The defaults file, the layers file, and the user file are customizable AutoLISProutines. If CADPIPE does not find them in the Project Control directory, it willsearch the CADPIPE AutoLISP directory (\CPORTHO\ORTLISP for CADPIPEORTHO).

The title block and the Bill of Materials template can be specific (located in theProject Control directory) or generic (located in \CPORTHO\ORTBLKC).

Creating Project ControlsTo create a Project Control, highlight a Project tag and click on “Create” in the“Project Control” Window. The program will ask you to verify that you needProject Control at this level.

You will also be asked which database you want as a default. Select a databasename from the list of available databases. When you load drawings under thisProject Control the database chosen will be referenced.

The \PROJ directory will be created and the prototype drawing, specification files,defaults files, title block, BOM template, and layers file will be copied into it.

Tracking Project ControlsThe Project Control will affect all drawing directories ( \ISO, \ORTHO, \3DDES,\PID) within the major project at the level the Project Control was created and onelevel below

A “P” in the left margin of the Project Window will indicate at what level aProject Control was created, and from that, you can determine which drawingdirectories use the Project Control.

Specification information

Prototype drawings

Customizable files

Title block and BOMtemplate

Page 27: pidman

CADPIPE PROJECT MANAGER PM-9

If you click on the “P” in the left margin, al the directories using this projectdirectory will be highlighted. The following sample project structures illustratehow Project Controls affect your Project drawings:

A project control created at thislevel is used by the majorproject tag and the minor projecttags one level below.

The drawings under thehighlighted tags use this projectcontrol.

A project control created at thislevel is used by the minorproject tag at this level and onelevel below.

The drawings under thehighlighted tags use this projectcontrol.

Page 28: pidman

CADPIPE PROJECT MANAGER PM-10

Modifying the drawings in your \PROJ directoryTo modify the default CADPIPE drawings in the \PROJ directory (prototypedrawing, BOM template, title block), click on the “P” in the left margin of theWorking Projects window. The drawings will appear n the Drawings window.You could then load the prototype drawing, for example, and modify it to suityour standards.

Remove Project ControlWhen you remove a Project Control, the system creates a backup of the \PROJdirectory. If you create another Project Control later at the same level, the systemwill ask you whether you want to restore the backup with your customizedinformation or create a new Project Control. Highlight the Project tag that is at thelevel the Project Control was created. Click on “Remove” in “Project Control.”

Loading the drawing

Once your project structure and drawings are created, you can load the drawingand the CADPIPE program. To load the drawing and the CADPIPE program, inthis case ORTHO, double-click on the drawing name, or click on the drawingname and then click on “Launch ORTHO.” You should then refer to your Startingchapter.

All the drawings in this project usethe CADPIPE default directoriesfor drawing information.

Page 29: pidman

P&ID STARTING START-1

STARTING

This documentation has been written with a few basic premises. First, youmust have a good working knowledge of AutoCAD.

Second, for straightforward documentation, we use drive “C:” in ourexamples, and we begin from the root directory.

Imperial and Metric

Imperial units are used in all examples in the documentation. Metricmeasurements are given in parentheses when the unit of measure is critical tounderstanding a concept.

The following chart shows imperial filenames and directories, and their metricequivalents:

IMPERIAL METRIC\CPTABLE \CPMTABLE\CPPID \CPMPID\PID.DWG \MPID.DWGCPDDEF.LSP MCPDDEF.LSP

Command Access

You can use CADPIPE with a mouse, choosing all commands through thepull-down menus, or toolbars.

For example, we may tell you to select [Gate] from the “PLACE”— “Valves”menu. You would pick “PLACE” from the top menu bar, pick “Valves” fromthe secondary pull-down, and then select [Gate] from the next menu (in thiscase, a dialog box).We will sometimes shorten this sequence by telling you to pick “PLACE”—“Valves”—“Gate”.

To switch between the AutoCAD and CADPIPE pull-downs, select[**ACAD**] or [**CADPIPE**] from the “File” pull-down.

Repeated menu command

Regardless of where you select a command—pull-down or screen—you canre-enter the command most recently used by pressing <Return>, or the rightmouse button—the same as any regular AutoCAD command.

Page 30: pidman

P&ID STARTING START-2

Text response and text trail

All text that appears on the computer screen is set apart from the explanatorybody copy: we use a different style of type .

When we tell you to type in a response, the format is as follows:

Prompt: RESPONSE

(Our comments are in parentheses and italics.)

Information of special note is in bold and italics.

CADPIPE Essentials

Angle of rotation

For angle of rotation, your system must be set to the AutoCAD defaults; thatis:

East 3 o’clock = 0°North 12 o’clock = 90°West 9 o’clock = 180°South 6 o’clock = 270°

In general, you can enter all angles by dragging the rubber-band line in thedirection you want and then digitizing any point.

Status line Information

The status line displays the current settings for line number, specification andsize. It also indicates if Spec Check is on.

The status line supports a minimum of 38 characters for CADPIPEinformation (this is resolution dependent: the higher the resolution supportedby your monitor and graphics card, the more characters you will have). Referto your AutoCAD manual for more details on configuring the status line.

Typical status line

14MP5 C12A 12" SPECLine number Spec Size Spec Check is on

The status line display can be toggled off by selecting “Status Line” from the“TOGGLES” pull-down menu.

Page 31: pidman

P&ID STARTING START-3

Correcting errors

If at any time during your drawing session you are using a CADPIPEcommand and make a mistake, use the CADPIPE “Undoback” command toundo the drawing back to the beginning of that CADPIPE command. Pick“UNDOBACK” from the “EDIT” menu, click , or type UB <Return> atthe command prompt.

To undo an AutoCAD command, type U or UNDO at the command prompt.If you use the CADPIPE “Undoback,” you will undo all commandssubsequent to the last CADPIPE command.

AutoCAD commands: type U or UNDOCADPIPE commands: click or pick “Edit” — “UNDOBACK”

Picking points on the drawing

OSNAPSWhen you place items on your drawing you frequently use AutoCAD’sOSNAP overrides.

To place an item on a flow line, use OSNAP NEAR; to place items fitting-to-fitting, use OSNAP NODE; to place items at an intersection, use OSNAPINTersect; to place items at the end of a line, use OSNAP ENDPoint.

To access the OSNAP overrides, press <Shift> and the right button on yourmouse.

Layers

CADPIPE has specifically defined layers. If “OFF” appears in the layer name,the items on that layer were placed with the bill of materials toggled off andwill not appear in the BOM. If “ON” appears in the layer name, the items onthat layer were placed with the bill of materials toggled on and will appear inthe BOM.

Separate BOM layers makes it easy to identify all items placed with the BOMoff.

You can customize the layers in your PIDLAY.LSP file (refer to Customizing).

Page 32: pidman

P&ID STARTING START-4

Managing your Projects

When you load a CADPIPE program you automatically enter the ProjectManager. You will initially create and organize your drawings in thisprograms. Refer to the Project Manager section of this manual.

Drawing Initialization

When you begin a drawing for the first time, CADPIPE prompts you througha “drawing initialization” procedure. After CADPIPE P&ID has finishedloading, you will see:

Ready to initialize drawing [Yes/No] <Yes>: <Return>Do you want a border [Yes/No] <Yes>: <Return>Select your drawing sheet size: (Select horizontal size“D- 24x36” [A1 metric] from the dialog box.)

A 1.000" margin will be left outside the border:

Enter User ID:(Enter your initials; initialization will not continue until anI.D. is entered. The I.D. is stored with the date/time stamp.)Job Number: 10024 <Return>

Click “OK” in the “CADPIPE Version” dialog box.

Page 33: pidman

P&ID STARTING START-5

The date/time stamp

The drawing initialization procedure places a date/time stamp on yourdrawing. Each time that you save your drawing the date, time, and drawingname is updated.

If you do not want to take advantage of the date/time stamp, you may simplyerase the block. If you want to keep the current date/time, change the layer theblock is on from TEXT to something else and freeze the new layer.

You may customize this block on the drawing (refer to Customizing).

Standard Prototype Drawing

Your initial drawing environment is established by the CADPIPE P&IDprototype drawing, PID.DWG (MPID.DWG).

The prototype drawing must be in the current working directory, in the Projectdirectory, or in your CADPIPE Support directory (\CPACADW). (Refer toProject Manager for more information).

Drawing Procedures

Often when P&ID drawings are first drawn, information such as line sizes andspecifications are not known. The power of CADPIPE is that you can drawyour P&ID without information and quickly update your drawing when it isknown.

Here are some general procedures to follow when drawing with CADPIPEP&ID:

1 Use the layer “CONST” to draw lines to divide your drawing area up tomatch your drawing standards for P&IDs. Set the GRID and SNAP.

2 Place equipment with the SNAP spacing at a relatively large value. Thedefault SNAP spacing is 1/4”. Equipment symbols have commonly used flowline connection points located to match SNAP points of 1/16" to 1/2" (1.6mmto 15mm). If you know the information, you should set your plant number andP&ID number. Otherwise, you can edit them later.

Page 34: pidman

P&ID STARTING START-6

3 Set the options for scaling on the drawing. This is an important step becauseyou want your scale to be correct for your valves, instrumentation,instrumentation lines, and symbols.

4 Set the relevant defaults for the line. Set the default line designation, andwhether the lines relate to Pipe or Equipment. Set the line size and rating foreach flow line. If you do not know any of this information, you can simplydraw the flow lines with the current defaults and edit them later.

5 Draw your flow lines. Draw the flow lines with SNAP on. You can set yourflow line layer, or you can draw with the current default and edit later.CADPIPE automatically breaks the flow lines where they cross.

6 Place all manual valves, fittings and instrumentation on the flow lines. Ifyou know your line size, rating, and specification name, you can set them.You may want to turn Spec Check on, so all items meet your specification asyou place them, or you may update your items later. You can draw yourinstrumentation lines as “blank” and then edit them once you know the type.

7 Edit the drawing. This can first involve toggling size, rating, and ends on ifthey have been toggled off. We recommend the following procedure to updatea flow line and the items on it:

• Update the line size. The line must have a size that can be checkedagainst a specification file.

• Set the Pipe line designation/Equipment line designation to include avalid specification file name if you are going to turn Spec Check on.

• Turn Spec Check on.

• Set the Pipe/Equipment toggle to either Pipe or Equipment for eachline.

• Change the line designation of each of the flow lines, entering a validspecification filename for each flow line. (Set your current equipmentnumber if you are editing a line relating to equipment.)

You might also want to set your flow line layer so it is edited with thiscommand as well.

As the material specification of a valve is updated, the size of the valve is usedto check it against the information in the specification file. Manual valves areactually modified so that their end types and ratings are in spec. Valve tags areautomatically updated to the values in the specification.

Page 35: pidman

P&ID STARTING START-7

• If you have valves on the line that are out of spec or are a differentmaterial specification, they can now be edited on an individual basis.

• Edit instrumentation tags, as well as valve tags and equipment tags.There is also a command that lets you edit the text size and position ofthe equipment tag.

8 Extract a bill of materials from your drawing.

9 Plot your drawing.

Drawing Defaults

CADPIPE has three commands that control your default settings: “CurrentSettings,” “System Defaults,” and “Edit Defaults File.” We will brieflydescribe each command below and examine Current Settings and SystemDefaults in detail. The “Edit Defaults File” command is discussed inCustomizing.

Edit Defaults File“Edit”—“Edit Defaults File”

When you start a drawing session, all the defaults are set to the originalCADPIPE start-up defaults. These defaults apply to all drawings. You canchange the CADPIPE start-up default settings by modifying the defaults file,CPDDEF.LSP (MCPDDEF.LSP), through the “Edit Defaults File” command. Thisis explained in the Customizing chapter.

System Defaults “SETTINGS”—“System Defaults”The “System Defaults” command allows you to change some of theCADPIPE start-up defaults for a drawing session only. Changing the defaultsthrough this command will not modify the defaults file.

Current Settings“SETTINGS”—“Current Settings”

The “Current Settings” command controls your drawing defaults for a currentdrawing session.

What are CADPIPE defaults?

Page 36: pidman

P&ID STARTING START-8

CADPIPE P&ID has 10 drawing information defaults: size; rating; valveends; line/equipment designation; whether an item relates to pipe orequipment; equipment number; P&ID number; Plant number; Project number;and the instrument specification number. Three of these defaults—size, rating,and valve end type—can be toggled off. Valve type and valve manufacturerare two defaults that are not listed: they are set through the valve placementcommand. Defaults make your work easier by allowing you to set a value (forsize, rating, or end type) that the system remembers until you change thatvalue.

A typical example is the rating. If you select a rating of 300# or if thespecification file sets it for you automatically, the 300# rating becomes yourcurrent default rating. This means that each time you select a valve to place onthe drawing, that valve will have a rating of 300#. To change the rating withSpec Check off, you merely pick a new rating, say 800#. Then, the next valveyou place will have a rating of 800#. With Spec Check on, the rating willchange if you change to a size range that has a new rating specified or if youchange specifications.

The advantages are obvious when you want to place a number of similar itemson a drawing. To place a valve on your drawing with Spec Check off, youselect the size, rating, and the end type then place the valve repeatedly. If yourline changes size, you can change the default size of your valve, while theother defaults remain constant.

Viewing your Current Defaults

“SETTINGS”—“Show Settings”

Page 37: pidman

P&ID STARTING START-9

Current Settings

“SETTINGS”—“Current Settings”

Before you place any items on the drawing, you can set many of the currentdefaults in the Current Settings dialog box.

In the Current Settings dialog box, you control the following for your drawingsession:

Line number DatabaseEquipment number Pipe/Equipment toggleMaterial spec Spec Check On/OffCustom label options Spec Override On/OffPlant Number SizeP&ID Number RatingProject Revision Number EndsInstrument Spec Number

Page 38: pidman

P&ID STARTING START-10

Line DesignationThe line designation consists of a number (line or equipment) and a materialspecification. The material specification does not have any power unless ithas a corresponding specification file and Spec Check is on. Otherwise, itemsare only tagged with the spec name.

You can designate a “Line (Pipe)” number or an “Equipment” number. Ifyour Pipe/Equipment toggle is set to Pipe, the “Line Number” field is active,and all the valves and instrumentation placed with this setting are associatedwith the line number. If the toggle is set to Equipment, the “EquipmentNumber” field is active, and all the valves and instrumentation placed withthis setting are associated with the equipment number. The current equipmentnumber is also used as the default equipment tag number when you areplacing equipment.

A designation, whether Pipe or Equipment, is always associated with all flowlines and with most “intelligent” items placed on your drawing—valves,instrumentation balloons and flow rate symbols, and reducers and tees. Adesignation is not associated with equipment, instrumentation lines, orsymbols.

There are three ways to enter your line designation. You may type in a newline designation, select an object on your drawing to set the designation to that

Page 39: pidman

P&ID STARTING START-11

of the item you selected, or select a line number from a list of current linenumbers on the drawing.

1 Click in the “Line Number” field and type in your new line number. Thenclick on a Material Spec in the “Spec List”. (If the Pipe/Equipment togglewere set to Equipment, you would enter an Equipment Number).

2 Click on the “Digitize Objects” button. Select any fitting, valve, or flow linethat was placed with the line designation you want to set as your default. Thischanges your current line designation to that of the object you select.

3 Click on the “Line Number” or “Equipment Number” button and select anexisting line number from the “Line Numbers” dialog box.

Page 40: pidman

P&ID STARTING START-12

There are two commands that set the line designation. You can set the linedesignation through the “Current Settings” box or through the “Edit” —“Designation” command, which we will discuss further later in this section.

Pipe/Equipment ToggleThe Pipe/Equipment toggle sets whether valves, instrumentation and fittingsare associated with the current line number (PIPE) or current equipmentnumber (EQUIPMENT). This setting determines how items are listed in theBOM.

You can change this toggle through the “Current Settings” dialog box, orthrough the “Toggles” — “Pipe/Equipment” command.

The “Pipe/Equip Designation” command in the “EDIT” menu lets you changewhether specific items are related to Pipe or Equipment. The “Edit LineDesignation” command is used to edit this information for the flow line.

Changing DatabasesIf you want to change to another database, click “Edit” — “Database.” Adialog box displays the databases you have installed:

Highlight a database and click “OK.”

If you have Spec Check on, CADPIPE automatically changes your databaseaccording to your spec. As well as handling specifications of differentdatabases, the system allows you to have more than one database defined inone material spec.

Page 41: pidman

P&ID STARTING START-13

Spec Check CommandThe “Spec Check” option in the “Current Settings” dialog box “automates”much of the work in setting CADPIPE defaults, and provides restraints onwhat you can place on a drawing.

To turn Spec Check or Spec Override on, click on the box next to “SpecCheck”/”Spec Override”. An “X” or “ ” appears in the box:

When you have Spec Check on, your specification defaults are setautomatically to suit your piping specification requirements which areoutlined in a specification file. The specification file is created in theSpecification Generator; (see the Specification Generator chapter in yourdatabase manual). Three things happen when Spec Check is on:

1 The spec-driven feature “automates” setting the CADPIPE valve defaults,and these include the rating which is also used by instrumentation and flowrate symbols.

2 Spec Check provides restraints on the Size, Rating, and End Typecommands, thus “watching over” what information is stored with items youplace on the drawing.

3 Spec Check provides significant power in editing your P&ID drawingquickly and accurately because the program is editing automatically accordingto the rules established in the specification files. This reduces the amount ofwork and the number of decisions needed on the part of the designer.

When you have Spec Check on, you can still place any out-of-spec oralternate item using the Spec Override command. The “Spec Override”command allows you to go “off spec” and change any defaults as well asplace an item. If you turn Spec Override on, all the defaults in the “CurrentSettings” dialog box are made available so you can place one out-of-specitem. Once you have placed the item, Spec Override is automatically turnedoff and Spec Check is reactivated. You must reactivate Spec Override forevery out-of-spec item you wish to place.

Page 42: pidman

P&ID STARTING START-14

SizeTo change your current size, click on the “Size” button in the “CurrentSettings” dialog box. Click on the size you want in the “Select Size” dialogbox.

Click “OK.”

CADPIPE uses the default size to read the appropriate database table in orderto draw the item you select.

When you have Spec Check on, size is an important default that, in effect, canset other defaults. If your size change takes you into a new “size range” thathas defaults defined in the specification (for example, the range 3/4" to 2"might be socket welded, with all the associated defaults for pipe, flanges,fittings, and valves), the relevant specification defaults will all be setautomatically when you pick the new size.

RatingTo change the current rating, click on the “Rating” button in the “CurrentSettings” dialog box. Click on the rating you want in the “Select Rating”dialog box:

Page 43: pidman

P&ID STARTING START-15

Click “OK.”

You can also set the rating for valves through the “Valve Placement” dialogbox. (See the section on placing valves later in this chapter.)

End typeTo change the current valve end type, click on the “Ends” button in the“Current Settings” dialog box. Click on the valve end you want in the “SelectValve End” dialog box:

Click “OK.”

Page 44: pidman

P&ID STARTING START-16

You can also set the end type while in the “valve placement” dialog box byclicking “End Types.”

Setting numbersYou can set the Plant, PID, Instrument Spec and Project Revision numbers inthe “Current Settings” dialog box:

Click in the “Number” of “Spec” field and type the new number or spec. Youcan also click the “Number” or “Spec” button and select an existing numberfrom the dialog box. For example, if you click on the “PID Number” button,you will see a dialog box that displays all the current PID numbers on thedrawing:

Select a PID number and click “OK.”

You generally set these numbers at the beginning of your drawing session andthey are associated with all the “intelligent” items that you place on yourdrawing.

Setting a Project Revision number lets you extract a bill of materials thatincludes only those items associated with a particular project revisionnumber—the rest of the drawing is not included in the bill of materials. Thisallows you to work on several different revisions on a drawing at the same

Page 45: pidman

P&ID STARTING START-17

time, while having only material pertaining to the project revision of interestbeing reported.

This setting does not affect the attributes associated with an item on thedrawing; it works by changing the layer name of the layer on which the itemis placed.

The project revision number affects the layers for equipment, manual valves,fittings, and instrumentation. It does not affect the layers for flow lines,general symbols, or items placed with the bill of materials toggled off.CADPIPE creates new layer names when you assign a project revisionnumber.

For example, CADPIPE places manual valves on layer MVLVON when thebill of materials is toggled on. Let us say you set the project revision numberto A1.

Now your manual valves will be placed on layer A1$MVLVON; the commandadds your project revision number as a prefix to the layer name, followed bythe “$” sign. The equipment, instrumentation, and fitting layers would changeas well. Layer colors and linetypes are the same as the original layer to ensurethat plotting lines is the same. All items that you place with the bill ofmaterials on, and the number set to A1, are placed on the four modified layers:A1$MVLVON, A1$EQPON, A1$INSTON, and A1$FTGON.

When you extract a bill of materials with the current project revision numberset to A1, only the items placed on “A1” layers are extracted. A projectrevision number is not reported in the bill of materials itself.

Custom Labeling OptionsThe “Current Settings” dialog box includes options to customize your linelabels. You can enter text to describe Insulation, Service (pipe commodity), orthe “Custom” field lets you enter any additional label information.

To make these options active you must first customize the User file,CPDUSR.LSP, in the \PIDLSP directory (refer to the Customizing chapter).

Reset your defaults

“SETTINGS”— “Reset”

Page 46: pidman

P&ID STARTING START-18

This command lets you set your drawing defaults to those of an object thatyou digitize on your drawing, or to Reset to the CADPIPE original systemdefaults:

Command:Select object: (Pick an object on the line that contains the defaults you

want, select the line itself, or press <Return> to set yourdefaults to the CADPIPE original defaults.)

Command:

If you select “Settings” — “Current Settings,” you will see that the defaultshave been changed.

Page 47: pidman

P&ID STARTING START-19

System Defaults

“SETTINGS”—“System Defaults”

The purpose of the “System Defaults” command is to give you control overmany of the default values found in the defaults file (CPDDEF.LSP,MCPDDEF.LSP). However, any modifications you make to these start-updefaults will only be applied to the current drawing session.

Click on the default you want to change. For some defaults, you click on anew setting; for others, such as the Drawing Scale, you type in the newsetting:

Click “Details” for a detailed description of each default. We will describeoption 16, Language Usage, here because it does not have a “Details” button.When you have completed your modifications, click “OK” to accept thechanges.

Page 48: pidman

P&ID STARTING START-20

Toggles

Size, Rating, Ends Toggles

“Toggles”—“Size” “Rating” “Ends”

You can toggle your size, rating, and valve ends defaults off; the result is thatall items placed on your drawing are placed without size, rating, or endsinformation that can be used by the bill of materials.

You cannot change these toggles if Spec Check is on.

BOM Toggle

“Toggles” — “BOM”

If you place items with the BOM toggle on, they will not be reported in thebill of materials, and they are placed on an ON layer.

When the BOM toggle is on, one drawing strategy is to have your defaults atthe correct settings for P&ID number, plant number, equipment number orline number and material specification, rating, size and valve end type; theseare all entered automatically on your bill of materials.

The other strategy is to place items, and then use the editing commands toquickly make them accurate.

If you place items with the BOM toggle off, they will not be reported in thebill of materials, and they are placed on an OFF layer.

Tag Toggle

“Toggles” — “Tag”

This toggle sets whether you are prompted for valve tags. It does not affect theprompts for equipment tags or size tags which, if you don’t want, you have theoption to press <Return> for none.

Auto-Save Toggle

“Toggles” — “Auto-Save”

This command controls whether your drawing is automatically saved at aspecified time interval. You can set the time between saves in [SystemDefaults].

Page 49: pidman

P&ID STARTING START-21

Pipe/Equipment Toggle

“Toggles” — “Pipe/Equipment”

The Pipe/Equipment toggle sets whether valves, instrumentation and fittingsare associated with the current line number (PIPE) or current equipmentnumber (EQUIPMENT). This setting determines how items are listed in theBOM.

This toggle is also controlled through the “Current Settings” dialog box.

The [Pipe/Equip Designation] command in the “EDIT” menu lets you changewhether items are related to Pipe or Equipment. The “Edit Line Designation”command is used to edit this information for the flow line.

Placing P&ID Symbols

Insertion and rotation

The most common insertion point in CADPIPE P&ID is the center of the itemthat you are placing. Exceptions to the “center point” rule include continuationarrows and flow arrows.

Any items placed with zero rotation are inserted into the drawing with theorientation shown on the menu—with the exception of the control valveactuators.

Automatic mirroring

With a few exceptions (mentioned below), all CADPIPE blocks are insertedwith an “upright” orientation; this involves automatically mirroring the imageas it is rotated. This is best shown by example (the automatic mirroring doesnot have an obvious effect on the symmetrical symbols). The four viewsbelow show a check valve inserted in the four standard orthographicdirections—as they would appear if CADPIPE did not mirror them for you:

0 90 180 270

Page 50: pidman

P&ID STARTING START-22

However, CADPIPE does automatically mirror all images at inserts beyond90 and through 270 to keep them in the proper upright orientation, as shownbelow:

0 90 180 270The exceptions to this are the angle valves (manual valve–3 way, controlvalve–angle, control valve–3 way) and general symbols not inserted in flowlines.

What You Can Place with CADPIPE P&ID

With CADPIPE you can place:

• Equipment• Flow lines• Manual valves• Fittings• Instrumentation• Instrumentation signal lines• General Symbols• Logic Symbols• Flow Rate Symbols

We will discuss each of these in detail.

Equipment

“Place” — “Equip”You will begin your P&ID drawing by placing the equipment on the drawing.When you place equipment you first set the relevant defaults, if you knowtheir values:

• P&ID number• Plant number• Equipment number

Page 51: pidman

P&ID STARTING START-23

Equipment in CADPIPE P&ID is divided into two main types: direct andindirect.

"Direct" simply means that you place the equipment without going through asub-menu of options. The “direct” equipment consists of the Mixer, Dryer,Elevator, and Screen.

"Indirect" means that you have a sub-menu of equipment types; the equipmentsubtypes make extensive use of icon menus. The “indirect” equipmentconsists of Pumps, Blowers, Vessels, Coolers, Heaters/Furnaces,Compressors, Heat Exchangers, Tanks, Conveyors, Bins/Hoppers, andVehicles.

As an example, we will show you how to place a mixer. The prompt sequencefor direct and indirect equipment is similar.

Select “Mixer” from the “Place” — “Equip” menu:

Command: <BOM On>x-dir scale factor <1.000>: 2 <Return>y-dir scale factor <1.0000>: 4 <Return> (The numbers you enter set how large the

piece of equipment appears on yourdrawing.)

Digitize equipment base point <Exit>: (Select where on the drawing you want yourmixer to appear.)

Enter angle of rotation: 0 <Return> (You can enter “0” here or you can drag therubber-band line in the direction you wantand click on a point.)

Enter equipment number <E-002>: 14G-5 <Return>(The default is your current equipmentnumber setting. You can press <Return> toaccept it, or enter a new number. If youenter a new number, you will change yourdefault equipment number.)

Digitize equipment tag location <Exit>: (You can either digitize a location for theequipment tag—the insertion point is themidpoint of the text—or press <Return> ifyou don’t want the tag to appear on thedrawing. The tag is stored with theequipment even if you press <Return>.)

Command:

Placing vessels

You can select either a horizontal or vertical vessel and can place a boot onthe vessel. Select “Vessel” from the “PLACE” — “Equip” menu:

Command: <BOM On>

Page 52: pidman

P&ID STARTING START-24

Select vessel: (Select either a horizontal vessel or vertical vesselfrom the icon menu. In our example, we selected ahorizontal vessel.)

Place horizontal vessel: Vessel diameter <>: 1 <Return>(Enter a value for the vessel diameter.)

Vessel tan/tan length <>: 4 <Return>(Enter a value for the tan-tan length.)

Enter equipment number <E-002>: E-005 <Return>(The default is your current equipment numbersetting. You can press <Return> to accept it, orenter a new number.)

Digitize equipment tag location <Exit>:(Either digitize a location for the equipment tag—theinsertion point is the midpoint of the text—or press<Return> if you don’t want the tag to appear on thedrawing. The tag will be stored with the equipmenteven if you press <Return>.)

Command:Select “Place” — “Equip” — “Vessel” and pick the boot icon.x-dir Scale Factor <2.00000>: <Return>y-dir Scale Factor <1.00000>: <Return>Equipment base point (Click on the lower left corner of the vessel.)Enter angle of rotation: 0 <Return>Enter Equipment No <14G-5>: <Return>Digitize Equipment Tag Location:Command:

The Flow line

“Place” — “Flow line” or click

Information is stored with the flow line, so it is, in fact, an “intelligent” linethat is used for checking and editing the line numbers, specification names,size and rating of items placed on the line

Information stored with the flow line:

• How line relates to Pipe or Equipment• Flow line layer (Main or Secondary)• Pipe Line Designation or Equipment Line Designation• Size• Rating• Flow Direction

When you place flow lines, they break at every valve and instrument placedon the line. If you move or remove an item, the line automatically adjusts tothe change.

Page 53: pidman

P&ID STARTING START-25

Guidelines for placing flow lines

1 Use the CADPIPE “Flow line” command only. Do not use the AutoCAD“LINE” or “PLINE” commands; if you do, intelligence is not stored with theline.

2 If you want the flow line to relate to a section of piping, set your“Pipe/Equipment” toggle to Pipe. You would be drawing with a “Pipe” linedesignation. If you want the flow line to relate to equipment, set the toggle toEquipment. You would be drawing with an “Equipment” line designation.

3 Before drawing the line, you can set your line designation or equipmentnumber through “Current Settings.” Your line designation is automaticallyattached to the flow line.

4 Set your layer for the flow lines using the “Flow Line Layer” command.The layer name is attached to the flow line in the same way as the linedesignation. CADPIPE provides the following flow line layers:

MAIN-ON (MFLLON)MAIN-OFF (MFLLOFF)SECONDARY-ON (SFLLON)SECONDARY-OFF (SFLLOFF)CONST

You can add to these; refer to Customizing for examples of this simpleprocedure.

5 You should draw your flow lines with SNAP and ORTHO mode on.

6 Draw one flow line for each run. You can use the “Spec Break” command ifyou have a spec break along a run. This breaks a single flow line into twoseparate flow lines with different line designations.

7 The “Flow line” command breaks crossing flow lines automatically if theAuto-Break toggle is on. The toggle is on by default and can be modifiedthrough the “System Defaults” or “Edit Defaults File” commands. If two mainflow lines or two secondary flow lines cross, the “Flow line” command breaksthe vertical flow line. If a main flow line and a secondary flow line cross, the“Flow line” command always breaks the secondary flow line. Users can alsouse the “Flow Line Break” command, which gives you the option of whichline breaks.

Placing a Flow line

To place a flow line, select “Flow line” from the “PLACE” menu:

Page 54: pidman

P&ID STARTING START-26

<current default designation> <current flowline layer>Edit Line Designation/First Point:

If you are ready to draw the flow line, digitize your start point at this prompt.However, if you want to “Edit” the line designation of the flow line (changethe line number, flow line layer, etc.), you can do so at this point. For ourexample, we will change the line designation to TUTOR2 and the flow linelayer to secondary.

Command:Pick “Flow Line” from the “PLACE” menu or click .

<TUTOR1 - ABB1><MFLLON>Edit line designation/<First Point>: E <Return>

(Type E for the Edit Designation option. This will allow us tochange the line designation to TUTOR2.)

In the Edit Line Designation box, change line number from TUTOR1 to TUTOR2. The material spec is thesame as the main flow line so leave that as ABB1.

<TUTOR2 - ABB1><MFLLON>Edit Line Designation/<First Point>:

Pick “Sec. Flow” from the “PLACE” — ”Flow Line Layer” menu.(This will allow us to change the flow line layer to Secondary Flow.)

Select layer: CPid_SfllonLayer: CPid_SfllonCommand:

Page 55: pidman

P&ID STARTING START-27

Pick “Flow Line” from the “PLACE” menu, or click .<TUTOR2 - ABB1><CPid_SFLLON>Edit line designation/<First Point>:

Now you can pick points to place the flow line. When you have reached thelast point, press <Return>.

Manual Valves

“Place” — “Valve” or click

Information stored with valves:

• P&ID number• Plant number• Valve type code• Line designation or equipment designation• Size (if on)• Rating (if on)• Ends (if on)• Tag (if on)

If you place the valve on a flow line, CADPIPE automatically places the valveat the correct rotation (unless the program needs further information, such asthe direction of the flow for a check valve).

The valve breaks an existing line when placed. When you remove or move avalve on a line the line is repaired automatically.

When placing a valve on an instrument line, the current CADPIPE defaultsare used because an instrument line does not store size or rating information.

Placing a Valve

Select the “Place” — “Valves” command, and you will see the “ValvePlacement” dialog box (the gate valve is selected by default):

Page 56: pidman

P&ID STARTING START-28

Here you select a valve and set all the relevant defaults specific to that valve.You can set valve ends and rating here or through the “Current Settings”dialog box.

Set Ends

Click on “Set Ends” and you will see a list of available end types.

If you select a threaded or socket welded valve, you must change the rating tosuit the valve end type; if you do not, when you attempt to place the valve,CADPIPE will give you an error message telling you that the rating isincorrect.

If you want to place a valve with two different end types, say, socket welded xthreaded, select “Custom”. You will be prompted for an inlet and an outletend. When you specify your ends remember that you need the relevantdatabase table to place the valve.

Rating

If you click on “Set Rating,” you will see a list of available ratings. Selectingone of these ratings can set a valve rating that is different from the generalrating.

Valve Type

Every valve has a four-character code. The first two characters define the typeof valve (gate, globe, PSV, etc.). The remaining two characters define thevalve subtype and manufacturer.

Page 57: pidman

P&ID STARTING START-29

When Spec Check is on, the valve subtype and manufacturer codes are setaccording to the specification file when a valve is placed. When Spec Check isoff, the subtype and manufacturer are set according to the defaults file,CPDDEF.LSP file.

While these defaults can be customized (see Customizing), you may want tochange a subtype or manufacturer dynamically. This is the purpose of the“Valve Type” option.

When you click on “Valve Type” in the “Valve Placement” dialog box, youwill see a list of valves, type of valve and valve manufacturers that areavailable. Select the valve you want to change, and the current default subtypeand manufacturer for that valve will be displayed. Click on a new subtype ormanufacturer and click on “OK.”

Remember that you must have a database table with the valve type andmanufacturer, or you will simply receive an error message when you place thevalve.

For the rest of your editing session, when you place the valve that youmodified with the “Valve Type” option, the new valve sub-type andmanufacturer will be used. If you select “Valve Type” again and change thedefaults for a different valve, the previously selected valve is reset to theCPDDEF.LSP values.

Page 58: pidman

P&ID STARTING START-30

Automatic update to line size

Because the flow line can store the line defaults for size, rating, line numberand specification name, the valve placement program checks the line defaultsagainst the current system defaults. If any of the current system defaults donot match the line defaults, you will be given the option to update the currentdefaults to the line defaults. We show you an example of this.

We are going to place a gate valve, with the current default settings for sizeand specification name different from those used to draw the flow line:

Command: <<Place gate valve>><BOM On><><><5P14><8"><300#><Flanged-RF>

Digitize location <Exit>: NEAREST to(Pick a point on a flow line, or press <Return> to exit thecommand.)

Current line size <8">Digitized line size <6">Update line size to <6"> [Yes/No] <Yes>: <Return>

(The default size for the valve is currently set to 8". The sizestored with the flow line is 6". CADPIPE is asking if you wantto change your default setting to 6", so that the valve sizeand the flow line size are consistent. Press <Return> tochange your current default size setting.)

Current line specification <ABB1>Digitized line specification <AAA1>Update line specification to <AAA1> [Yes/No] <Yes>: <Return>

(The default specification name for the valve is currently setto ABB1. The specification name stored with the flow line isAAA1. CADPIPE is asking if you want to change yourcurrent default setting to AAA1, so that there the valve’sspecification name and the specification name stored withthe flow line are consistent.)

Automatic valve tagging

After you have updated the valve’s size and spec to that of the flow line, youwill be prompted for valve tags:

Digitize tag location <None>:(Digitize the location of your valve tag. If you do not want avalve tag, press <Return>.)

Enter valve tag /None <VG302>:

If you have the Tag toggle on and you have a valid specification name setwith valve tag numbers defined in the specification file, the valve tag from thespecification is given as the default.

If the specifications are not yet established, and you intend to tag all thevalves later, at this prompt enter N for None, and CADPIPE will remember

Page 59: pidman

P&ID STARTING START-31

the location of the tag when you update using the “Edit Line Designation”command.

An alternative is to place an “X” at this prompt which gives you a visualindication of where the tag will be placed. When you use the “Edit” —“Designation” command, CADPIPE reads the valve tags from thespecification and places them automatically if it has a location for the tag. Forthis to work, of course, Spec Check must be on, and there must be tags in thespecification. (Please note that valve tags are case sensitive).

Digitize size tag location <None>: (Place a size tag or press <Return> for the default—no size tag.)

Digitize location <Exit>: (You can place another gate valve or <Return> toexit the command. If you repeat the valve placementof the current valve, the prompt “Enter valvetag/None <VG301>” is suppressed when you digitizethe tag location; the current valve tag default will beplaced.)

Command:

You should set a SNAP to keep all tags at a consistent distance from thevalves. If you place a size with the valve tag, you can align them both on thesame line with a SNAP set.

PSVs

Placing a PSV valve on a flow line causes the flow line to automatically breakaround the valve; the valve is placed on your flow line with the correctorientation automatically.

The placement program includes a procedure to break the flow line and updateit to the new size of the PSV outlet.

ExampleSelect the relief valve from the “Valve Placement” dialog box.

<BOM On><><><LINE1><6"><300#><Flanged-RF>Enter insertion point: _int of (Pick the bottom corner as shown in the

figure below.)Select Outlet direction <Exit>: (The inlet size is displayed and you are

asked to select the outlet size from thedialog box.)

Select rating: (You are prompted to select a rating fromthe dialog box. Here, we have selected300#.)

Inlet rating <300#>Stem rotation angle: (Click above the intersection of the lines, as

shown in the figure.)Digitize Tag Location:

Page 60: pidman

P&ID STARTING START-32

Enter valve tag <>: PSV1 <Return>Digitize Size Tag Location:Command:

The flow line breaks at the outlet port, and the size of the new flow line isupdated to 4".

Adding an Actuator

“PLACE”—“Actuator” or click

If you place an actuator on a manual valve, CADPIPE automatically changesthe manual valve to a control valve. You are also prompted for the taginformation required by the new control valve.

Fittings

“PLACE”—“Fitting” or click

Information stored with reducers, reducing tees, and tees include:

• Size (if on)• P&ID number• Plant number• Line number or equipment number and specification name• Fitting code type• Related to Pipe or Equipment

Select the fitting from the “Fitting Placement” dialog box, and then digitizethe location on a flow line. CADPIPE will break the flow lines automatically.

Page 61: pidman

P&ID STARTING START-33

We will examine the reducer in detail because it changes the line sizeautomatically: it creates a new flow line with a new size associated with it.This has implications for valves on the line as well as instrumentation—andfor other reducers.

How to work with reducers

Reducers have an inlet and outlet size associated with them. Placing a reduceron a line can automatically change the flow line size along with the size ofany existing valves and instrumentation and line labels on the updated linesegments.

The prompt sequence for reducers differs depending on whether Spec Checkis on and whether the line you are placing the reducer on has a size associatedwith it.

The command updates sizes until a spec break or another reducer is reached.In the case that another reducer stops the size editing, the reducer size is alsochanged. In the event that the reducer becomes non-reducing (for example, 6"x 6") the reducer is deleted and the flow lines joined.

If the new size makes the reducer’s outlet size smaller than the new size, thereducer is redrawn in the opposite orientation (flipped).

If there is no size associated with a line when a reducer is placed, a reducersymbol without attributes is placed with the BOM off (on the “FTGOFF”layer). The reducer will not break the flow line or edit any valves. It is more ofa visual aid to remind you that a reducer will be placed at that position at alater date.

When you do set a size for the line and want to place a real reducer, simplyselect the reducer of your choice and place it over the existing “sizeless”reducer. The old reducer is replaced by the new one automatically.

ExampleWe will place a reducer on a flow line that has a control valve on it. The lineand control valve are both 6” — the reducer will change the line size to 3” andthe control valve’s size will change also.

Select the reducer icon from the “Fitting” menu:

Enter insertion point: <P1>Inlet Size (6”)

(Select 3" [80mm] for the outlet size from the dialog box.)

Page 62: pidman

P&ID STARTING START-34

Select Outlet Direction: <P2>(As the flow line changes size, the change will carry over toany item that is placed on the flow line—you will see thischange reflected in the size tag of the general control valve.)

Digitize Size Tag Location: <P3>Digitize line labels associated with highlighted segment <None>: <Return>

(At this prompt, you could digitize any line labels associatedwith the routing line segment that has been highlighted. Wehave no line labels, so press <Return>.)

Command:

The line to the right of the reducer (and the valve, valve size tag andinstrumentation on it) are changed to 4".

Removing a reducer

“EDIT”—“REMOVE”— “Remove Reducer”

Select the reducer you want to remove, then digitize the side that has the sizeyou want to remain — the reducer is erased, the lines join, and the size is

<P3>

Page 63: pidman

P&ID STARTING START-35

updated on the new flow line. You are then prompted to select the reducer tagand the line label associated with the highlighted segment. All manual valveswill change to the new size, and you will be prompted to digitize the valvesize tags.

Moving a reducerTo move a reducer, you have to remove it and place it again, or place a newreducer, and CADPIPE will remove the existing one and join the line,providing the line size has no restrictions at the old reducer position.

Instrumentation

You can place several types of instrumentation on a drawing. Actuators haveno intelligence. Information stored with flow rate symbols and control valvesincludes:

• P&ID number• Instrument type code• Plant number• Instrument spec number• Line number or equipment number and specification name• Rating (if on)• Size (if on)

Flow meters

“PLACE”—“Flow Rate”

Select a command from the “Flow Rate” icon menu and digitize the flow line.The symbol is automatically placed in an upright orientation. CADPIPEprompts for tag information for a balloon according to the current balloonoptions. Flow meters break flow lines.

Control valves

“PLACE”—“Control Valves” or click .

Select an icon from the Control Valve icon menu and digitize the flow line.CADPIPE prompts for tag information for a balloon according to the currentballoon options. Control valves break flow lines. Actuators can be placedseparately.

Page 64: pidman

P&ID STARTING START-36

For some of the control valve commands, you are prompted for an actuatorthrough an icon menu. Press <Return> if you don’t want to place an actuatorat the time. You can place an actuator symbol later.

Actuators

“PLACE”—“Actuator” or click .

After you have placed a control valve, you are prompted to place an actuator.The insertion point is at the bottom of the stem. Indicate the rotation bydigitizing in the direction of the operator from the insertion point.

There are nodes at the tops of all actuators (quad points of EL/HYDActuators) so you can easily select them when placing instrument lines.

If you add an actuator to a manual valve, CADPIPE automatically updates themanual valve to a control valve.

Instrumentation signal lines

“PLACE”—“Instrument Line” or click .

Select the appropriate signal line, digitize the start point, and digitize to eachpoint necessary.

Options to place a blank instrument line, for later editing, and to change thetype of signal line are available (“Place Blank Instrument Line” and “ReplaceInstrument Line”).

Logic symbols

“Place”—“Logic Symbol”

Select a command and then the location on your drawing; the rotation angle isalways 0.

Instrument balloons

“Place”—“Instrument Balloon” or click .

Select a balloon command, and select the location on your drawing; therotation angle is always 0. When the balloon is placed, you are prompted fortag information.

Page 65: pidman

P&ID STARTING START-37

Balloons illustrated as breaking a line (two lines or “wings” represented on theballoon) break a flow line when the flow line is placed; the others do notbreak the flow line.

When you place a balloon with a leader, use OSNAP NEAR to ensure thatyour leader line snaps to the line or the equipment you are pointing to. Thisensures that the instrument is updated either to the line designation or to theequipment number associated with the relevant line or equipment.

Balloon modifiers

“Place”—“Instrument Modifier” or click .

Once you have placed a balloon, use these symbols to show ISA qualifiers.Place a modifier by selecting the instrument related to the balloon and then theballoon itself along the edge. If the balloon represents the instrument symbolitself, just select the balloon edge.

When you place a leader, you need to digitize the end point of the leader line(in most cases, ORTHO should be toggled off).

Line Join/Break

“PLACE”—“Line Join/Break”

• Flow Line Break• Flow Line Join• Instrument Line Break• Instrument Line Join

This command joins and breaks flow lines and instrument lines quickly andconsistently.

When you select any of these commands, you will see the prompt:

Select First Point on Flow Line: (Select the point on the flow line where youwant the break to begin, or the first endpointthat you want to join.)

Select Second Point on Flow Line: (Select the point on the flow line where youwant the break to end, or the endpoint towhich you want the flow line to join.)

Command:

Page 66: pidman

P&ID STARTING START-38

Auto-Toggle Arrow

“AUTO”— “Toggle Arrows”

This command places arrows at each bend or turn along the line to indicateflow direction. It will not place a flow arrow if a PSV or angle valve is placedat a bend or turn.

To place flow arrows on the line, select the command and select the flow lineon which you want to place arrows. You are then prompted for the flowdirection. Drag the rubber-band line in the flow direction and pick a point; allthe flow arrows are placed automatically along the line.

For the scaling options of flow arrows, refer to Customizing.

Spec Break

“PLACE”—“Spec Break”

The “Spec Break” command breaks the flow line and updates all the items to anew spec until it reaches another spec break or a PSV valve: manual valves,instrumentation, tees, and reducers are updated to the new designation.

The diamond spec break block is placed at the start of the spec break, andarrows are drawn at the end of the spec break to show where the two differentspecs meet:

Removing a Spec break“EDIT”—“REMOVE”—[Remove Spec Break]

Select the Spec Break block.

Digitize the flow line beside the spec break diamond on the side that has theline designation you want to keep.

The line and items on the other side of the symbol are edited to the new linedesignation, and the lines are joined.

Select the spec break tag and leader so it can be erased.

Page 67: pidman

P&ID STARTING START-39

Moving a Spec breakTo move a spec break you must remove it and place another.

CADPIPE’s Editing Features

Edit Flow lines

Edit Line Designation“Edit” — “Designation”

With this command you can:

• update the “Pipe” line designation or the “Equipment” line designationfor flow lines and individual items;

• change the flow line from relating to Pipe to Equipment or vice versa;• edit flow lines;• replace all valve tags along the line in accordance with the

specification when Spec Check is on.

When you edit the line designation you can change the line number andspecification of an entire flow line (including the valves, instrumentation,reducers, tees and flow rate symbols that are on it) or an individual item.

See page __ for an example of how to edit a line designation.

Editing flow linesSet the flow line layer to the layer that you want using the “Place” — “FlowLine Layer” command. Then pick the “Edit” — “Designation” command andselect a flow line. The command detects if there is a difference between yourcurrent flow line layer setting and that stored with the flow line.

You are then prompted whether you want to set the flow line layer to yourcurrent setting; if you answer <Yes>, CADPIPE will draw the new flow lines.

Editing Pipe/Equipment relates to flow linesSet the Pipe/Equipment toggle to the setting you want. Then pick the “Edit”— “Designation” command and select a flow line. The command detects ifthere is a difference between your current Pipe/Equipment setting and thesetting that is stored with the flow line.

You are then prompted whether you want to change the flow line to yourcurrent setting.

Page 68: pidman

P&ID STARTING START-40

Automatically update tagsBecause CADPIPE always checks for valve tags from specification files, werecommend that you toggle Tag off or turn Spec Check on when using the“Edit” — “Designation” command. Refer to the “Spec Check On” section atthe end of this chapter for information.

Move Line Segment“Edit” — “Move Line Segment”

“Move Line Segment” is used to move a segment of a flow line, including theflow line and all valves, fittings, instrumentation, and tags that appear on thatsegment.

Command:Select segment to move: NEAREST to (Select a segment of the flow line. You can

only pick one flow line segment at a time.)

Select new location: (You can either press <Return> to exit orpick a point perpendicular to the segmentyou have selected. The line will be moved.)

CADPIPE moves the line and any objects that have been placed on the line —however, if there is a relief valve at a turn or bend in the flow line, the linecannot be moved. In this case, you can simple erase the valve, move the line,and re-place the valve. The other flow line segments are adjustedautomatically as required.

Because reducers break the flow line, you would have to move the flow lineon either side of a reducer.

Edit Size“EDIT”—“Size”

You may change the size of a flow line or CADPIPE item that contains a sizeattribute (reducers, tees, control valves, manual valves, and instrumentationballoons and flow rate symbols) with the Edit Size command. This commandmakes it very easy to change the size of a flow line and the items on it.

Pick “Size” from the “EDIT” menu:

Command:Select a flow line / item <Exit>: (Select a flow line or an item. If you select a

flow line, the items on the line are alsoupdated in size, with the exception of controlvalves and tees.)

Selected flow line size <6"> (Select the new size from the dialog box.)Select off line blocks of highlighted line <none>: <Return>Command:

Page 69: pidman

P&ID STARTING START-41

If you edit the size of a manual valve, the valve’s size and size tag areautomatically updated.

Editing Lines with ReducersIf you have a reducer on the line and update the line, the reducer automaticallyupdates in size. If the change in size causes the inlet and outlet ports toreverse, the reducer flips to the correct orientation. If the inlet and outlet sizesbecome the same, the reducer is removed.

You cannot edit reducers by selecting them as individual items.

Edit Rating

“EDIT”—“Rating”

The Edit Rating command changes the rating of an individual item or a flowline and the items on it. This command edits the valve tags with the same rulesas Edit Size.

Select “Rating” from the “EDIT” menu:

Command:Select a flow line / item <Exit>: (Select an item or flow line. Valid items

include manual valves, instrumentationballoons, and flow rate symbols. Select anew rating from the dialog box and click on“OK”.)

Selected flow line rating: <150#>Select off line blocks of highlighted line <none>:

Edit Ends“EDIT”—“End”

You can edit the ends of a valve on a flow line by selecting “EDIT”— “End”

Command:<Spec check off>Select a flow line / item <Exit>: (At this point, you can select the flow line to

change all the valves with end types that areon the line, or you can pick an individualvalve. Select a new valve end from thedialog box, and click “OK.”)

Only manual valves have BOM-relevant end type properties. If you select anitem with no end type property, you will get the error message:

Invalid item selected. Item does not have ends pro perty.

Page 70: pidman

P&ID STARTING START-42

In the above example, we turned Spec Check off before we began the process.If you edit valve ends with Spec Check on and the end you choose is not inyour selected spec, the valves will be crossed out on the drawing with a notethat they are “not in spec.”

Edit Numbers

Equipment Number“EDIT”—“Number”—“Equipment Number”

CADPIPE P&ID provides this command so that you can easily edit equipmenttags and equipment forms tags, for not only the number itself, but also for textsize and location of the tag.

Select “Edit” — “Number” — “Equipment Number”

Command:Digitize Equipment: (Select the equipment block.)Enter Tag Text Height <0.15625>: (If you want to change the size of the text, type in a

new number. Otherwise, press <Return>.)Highlight Equipment Related Item:Select objects: (Select any items on your drawing that are related to

the piece of equipment that you are changing. Ifthere are none, press <Return>.)

Command:

Edit Plant and P&ID Numbers“EDIT”—“Number”—“Plant Number”“EDIT”—“Number”—“P&ID Number”

The process to edit either of these commands is simple, and is the same forboth. For example, if you edit a plant number, you are prompted to enter theexisting plant number. You will then see the Select flow line / item:prompt. Window all the items that you want set to the new number or select aflow line to change all items on the line, including the line itself.

Edit Project Revision Number“EDIT”—“Number”—“Revision Number”

The Edit Project Revision Number command lets you change items that havea project revision number to the generic, non-specified number. For example,if certain equipment is currently associated with project revision number A1,and is therefore on layer A1$EQPON, this option will change the equipmentto layer EQPON.

Page 71: pidman

P&ID STARTING START-43

Show Current Revision ItemsThe Show Current Rev. Items command, lists all the items on your drawingthat are associated with the current number. The listing includes the item type(equipment, manual valves, fittings, instrumentation), the block name, and thex and y coordinates.

Edit Pipe/Equipment Designation

“EDIT”—“Pipe/Equip Designation”

When you draw a flow line and place items on it, you can relate thisinformation to a line number (pipe) or an equipment number (equipment). TheBill of Materials program will use this field when printing reports “byequipment” or “by line number;” it also will print a “P” or an “E” for all itemson the drawing with attributes.

Select “Edit” — “Pipe/Equip Designation”

First point <Exit>: (If you are selecting one object, select the objectwith the first point. If you are selecting a window ofitems, select the first corner of your window.)

Digitize second point <None>: (If you have selected a single item, press <Return>.Otherwise, select the second corner of yourwindow.)

Items to be associated with ... <Pipe/Equipment/Quit>: P<Return>(Type P to relate to pipe or E to relate to equipment,or Q to cancel the command.)

Line/Equipment number for items to be assoc iated with:(Enter the line/equipment number, and the editproceeds. If you select “E” for equipment you areprompted for the equipment number rather than theline number.)

This command changes the line designation of each item that you haveselected as well as whether the items relate to Pipe or Equipment.

You can also use “Change Tag” to change an equipment number, and you willthen be prompted to select the items related to that number; they will beupdated to the new number.

Edit Tag

“EDIT”—“Tag”—“Edit Tag”

This command is a flexible tool that enables you to edit all your tag numbersand text for instrumentation balloons, control valves, flow rate

Page 72: pidman

P&ID STARTING START-44

instrumentation, manual valves, and equipment numbers or equipment tagblocks.

The prompt sequences differ depending on the type of item you have selected.

Control Valves

Command:Select object to edit <Exit>: (Pick the control valve, not the actuator, as

the tag is connected to the valve. If youselect the actuator rather than the valveedge, you will see the message Object doesnot contain tag information.)

Digitize Tag Balloon: (Select the balloon modifier. In the “Tags”dialog box, change the lines to whatever youwant them to say, then click “OK.”)

Instrument balloonsThe prompt sequence differs little from control valves. Rather than selecting avalve first, you pick the balloon text, and the “Tags” dialog box will appear.Simply change the text and click “OK.”

Manual valve tagsIf you want to edit the tag text of manual valves, select either the tag text orthe valve; CADPIPE will prompt you for the new tag:

Enter valve tag /None <VG301>: (Press <Return> to accept the default, which is readfrom the specification file if you have a validspecification file name set and there are tagsdefined in the file; or you can type in a new tag; thetext is case sensitive; or if you enter N <Return> forNone, your tag will be removed.)

Equipment tagsFollow a different procedure if you choose to edit your equipment numberbecause you can have items related to equipment.

Let us say that you have placed equipment with the tag 14E-5. You want tochange this to 14E-6.

Pick “Edit” — “Tag”

Select object to edit <Exit>: (Digitize the piece of equipment with the tag 14E-5.The number and the equipment are highlighted.Enter your new tag number.)

Select related objects ...Select objects: (Use a Window to include any objects such as

valves and instrumentation that you have related tothis equipment number. You can use a large window

Page 73: pidman

P&ID STARTING START-45

because CADPIPE only changes the objects thatrelate to the previous equipment number.)

Once you have windowed the objects, you are told how many related itemsthat program has found and you will again see:

Select objects: <Return> (Press <Return>, and CADPIPE tells you how manyitems were set to the new tag number. All relevantobjects are now related to the new equipmentnumber. You can use the Query command toconfirm this.)

You can use this feature to make sure that all your related objects do in factrelate to the correct equipment number. However, if you placed the objectswith your Pipe/Equipment toggle set to Pipe, CADPIPE will not change thenumber. CADPIPE will only search for the equipment number; a line numberis ignored. The same holds true when you are editing a line number. Objectsthat have been related to an equipment number will be ignored.

Edit Item BOM Off

“EDIT”—“BOM Off Items”

The BOM OFF option lets you select objects that were placed with the BOMON and change them to BOM OFF. You have a choice of a group of objectsor your entire drawing. You can only reverse this, once you have set them toBOM OFF.

Annotation

Label Line

“ANNOTATION”—“Label Line”

The label line option lets you annotate your flow lines with the line number,size, and material specification. Select this command and then select the flowline that you want to label. You will be prompted to select a label location anda rotation angle.

Normally Open and Normally Closed symbols

“ANNOTATION”—“Valve N.O./N.C.”

Use the [Valve N.O./N.C.] command to reset a valve on the drawing fromNormally Open to Normally Closed or vice versa. If the Tag toggle is on, you

Page 74: pidman

P&ID STARTING START-46

will be prompted for a valve tag string to be placed at the selected location.You can optionally have a size placed on the drawing.

Title Block

“ANNOTATION”—“Title Block”

The Title Block command lets you place a title block on your drawing. Fivetitle block drawings are supplied, CPPITITA.DWG through to CPPITITE.DWG.You will find these drawings in the \CPPID\PIDBLKSY directory. You canmodify the actual drawings, but you must retain the three CADPIPE attributenames stored with the drawing. If you have a title block on your drawing youwill be able to update it with this command.

You may customize these blocks or create your own. Refer to “CustomizingTitle blocks” in the Customizing chapter.

Query

“SETTINGS”—“Query”

The Query command provides detailed information about one item or a groupof items on your drawing. After selecting the “Query” command, pick an itemon the drawing or Window around a number of items. A dialog box appearslisting all the relevant information associated with the item(s) chosen.

Use your the scroll bar to view the entire list. Press “OK” to leave the list.

Obviously, not all items have every field. Equipment, for example, does nothave a rating or end type.

CADPIPE’s Drawing Information Files

CADPIPE stores a number of files along with the drawing (.DWG) file. Theseare:

Drawing name.JNB, which stores your updated project numbers.

Drawing name.LNL, which stores your updated line numbers.

Drawing name.EQP, which stores your updated equipment numbers.

Page 75: pidman

P&ID STARTING START-47

Drawing name.PDI, which stores your updated P&ID number(s).

Drawing name.PLT, which stores your updated Plant number(s).

Drawing name.ISN, which stores your updated instrument specificationnumbers.

Drawing name.DFL, which stores your defaults and your CADPIPE options.

It is not necessary for you to keep backed up versions of any of these files.They can all be recreated from the drawing file.

Getting Help

All CADPIPE commands are explained in on-line Help. To find informationelectronically instead of in the printed manuals, press the <F1> button whilehighlighting any command in the pull-down menus, or use the “Help” pull-down menu and search for desired information.

Examples in the CADPIPE on-line help are given in imperial units. Metricmeasurements are given in brackets when the unit measurement is critical tounderstanding a concept.

Page 76: pidman

P&ID STARTING START-48

TECHNICAL SUPPORT

Contacting AEC Design Group:

International and CanadaOrange Technologies, Inc.AEC Design Group230-200 Rivercrest Dr., S.E.Calgary, AlbertaCanada, T2C 2X5Phone: 403-279-6100Fax: 403-279-3330

Or your local dealer:

CADPIPE Wish List and Bug Report

Although our Quality Assurance staff and many Beta user sites havethoroughly tested every release of CADPIPE software, there is always thepossibility that some minor software problems may occur on your systems.Because of this and the fact that hardware or power failures do occur, werecommend that you make regular back-ups of your drawing to your harddrive and other back-up media.

If you experience any difficulties with your software, please call our technicalsupport at 1-888-239-9004 x216, email [email protected], or fill out ouron-line Report Form in the Technical Support section of our Web site,www.cadpipe.com.

United StatesOrange Technologies, Inc.AEC Design Group13 Firstfield Rd.Gaithersburg, MarylandUSA, 20878Phone: 888-239-9004 x216Fax: 301-977-5362Internet: www.cadpipe.comEmail: [email protected]

Page 77: pidman

P&ID 6.1TUTORIAL TUTOR-1

P&ID Version 6.1 Tutorial

Introduction

This tutorial is a brief introduction to CADPIPE 2000 P&ID Version 6.1. We willshow you a few key features and the general drawing procedure.

Because this is not an AutoCAD tutorial, you should have a basic workingknowledge of AutoCAD before you proceed.

Command Access

You can use the CADPIPE commands through the pull-down menus or toolbarswith your mouse. Please see Appendix F in the P&ID manual for a map of thepull-down menus.

Responding to Prompts

All text that appears as prompts on the computer screen is set apart from theexplanatory body copy: we use a different type style.

The appropriate response to a prompt is in bold.

Prompt: RESPONSE <Return>

Picking Points on the Drawing

When you are required to pick a point on the drawing, we indicate the point in thetext by <P1>, <P2>, etc., then show the corresponding point in an illustration. Forexample:

Rotation angle: 0 <Return>Digitize location: <P1> (Pick <P1> in Figure 2)Text <>: P-100 <Return>

For accuracy, place fittings with the aid of OSNAP OVERRIDES. With a two-button mouse, you can hold down the <Shift> key on the keyboard whiledepressing the right-hand mouse button. This will call up the OSNAPS menu.

Page 78: pidman

P&ID 6.1TUTORIAL TUTOR-2

Angle of Rotation

For angle of rotation, your system must be set to the AutoCAD defaults:

East 3 o’clock = 0°North 12 o’clock = 90°West 9 o’clock = 180°South 6 o’clock = 270°

Correcting Errors

If at any time during your drawing session you are using a CADPIPE commandand make a mistake, use the CADPIPE “Undoback” command to undo thedrawing back to the beginning of that CADPIPE command. Pick “Undoback”from the “EDIT” menu or click the icon.

Help

If at any time during your drawing session you need assistance understanding theprogram, simply press <F1> while highlighting anything on the pull-down menus.An explanation will appear, along with guides toward further help.

Page 79: pidman

P&ID 6.1TUTORIAL TUTOR-3

Getting Started

Running the CADPIPE Demonstration Version

If you are evaluating the CADPIPE programs and are running CADPIPE withouthardware locks, you will be restricted in your choice of sizes, ratings, valve types,fittings, flange types, and commands. Despite these limitations, you will enjoy thepower and ease of CADPIPE P&ID Version 6.0.

• Place the CADPIPE CD into the CD-ROM drive.• Follow the prompts.

Create a New Drawing

• Select “Start” — “Programs” — “CADPIPE P&ID 6.0”• In Project Manager, click “Create Dwg.”• Type PIDTUTOR as the drawing name. Click “OK."• Highlight PIDTUTOR in the “P&ID Drawings” Window. Click “Launch

PID...”

Page 80: pidman

P&ID 6.1TUTORIAL TUTOR-4

Initialize the Drawing

After the program loads, you must “initialize” the drawing: This processestablishes some settings for the “prototype” or “base” drawing.

Ready to initialize drawing [Yes/No] <Yes>: <Return>Do you want a border [Yes/No] <Yes>: <Return>Select your drawing sheet size: (Select horizontal size “D- 24x36” [A1

metric] from the dialog box.)

A 1.000" margin will be left outside the border:Enter User ID: (Enter your initials; initialization will not continue until an I.D. is

entered. The I.D. is stored with the date/time stamp.)

Job Number: 10024 <Return>

Click “OK” in the “CADPIPE Version” dialog box.

Following is the drawing you will create in this tutorial session. The drawing fileis stored in the \PID (\CPDEMO in Demonstration version) directory and is calledPIDDONE.DWG (MPIDDONE.DWG). The file is also stored in an executable,PIDTUT.EXE (MPIDTUT.EXE) in the \UTIL\PID directory on the CADPIPE CD.

Page 81: pidman

P&ID 6.1TUTORIAL TUTOR-5

Page 82: pidman

P&ID 6.1TUTORIAL TUTOR-6

Define Design Specifications

Before drawing a flow line or placing fittings or valves, you must set the linedesignation and pipe size. The line designation consists of a line or equipmentnumber and the material specification.

Line Designation

Pick “Current Settings” from the “SETTINGS” menu. In the “Line Number” field typeTUTOR1.

You enter a line number when the “Pipe/Equipment” toggle is set to “Pipe.” Youenter an equipment number when the toggle is set to “Equipment.” ThePipe/Equipment toggle sets whether valves, instrumentation and fittings areassociated with the current line number (Pipe) or current equipment number(Equipment). This setting determines how items are listed in the BOM.

Click ABB1 in the Spec List. ABB1 will appear in the “Material Spec” field.

ABB1 is one of the many specifications that are supplied with CADPIPE. Thespecifications contain predefined settings for valves, fittings, and pipe. Thespecification will automatically set defaults such as rating, end type, and schedulewhen the Spec Check command is on.

Pipe Size

In the “Current Settings” dialog box, click “Size.”In the “Select Size” dialog box, click 6" (150mm) and then “OK.”

Page 83: pidman

P&ID 6.1TUTORIAL TUTOR-7

Spec Check

In CADPIPE, the designer can either access everything in the database, apply astandard specification to restrict the items that can be placed, or use a combinationof both.

We will place items on the tutorial drawing with the Spec Check command on.This means that many of the defaults (end type, schedule, rating, etc.) will be setautomatically by the program according to what is defined in the materialspecification file for specification ABB1.

In the “Current Settings” dialog box, click on the box beside “Spec Check.”

An “X” or “ ” in the box indicates that Spec Check is active.

Click “OK.”

If you exit CADPIPE before completing the tutorial drawing, remember to turnSpec Check on and reset the line designation when you reenter the drawing.

This is how the “Current Settings” box should appear when you are finished:

Page 84: pidman

P&ID 6.1TUTORIAL TUTOR-8

Place Equipment

Vessel

Place a vertical pressure vessel in the upper left quadrant of the drawing, and labelit V-100.

Command:Select vertical vessel from the “PLACE” — “Equipment”—”Vessel” menu.<BOM on>x-dir Scale Factor <1.000>: 2 <Return> [100]y-dir Scale Factor <2.000>: 4 <Return>Digitize Equipment Base Point <Exit>: <P1> (Pick <P1> in illustration)Enter angle of rotation: 0 <Return>Enter Equipment number <>: V-100 <Return>Digitize Equipment Tag Location <Exit>: <P2>Command:

<P1>

<P2>

Page 85: pidman

P&ID 6.1TUTORIAL TUTOR-9

Continuation Arrow

This continuation arrow marks the end of flow line TUTOR1-ABB1 on thisdrawing.

Command:Pick the continuation arrow from the “PLACE” — “General Symbols” menu, or click the

icon and pick the continuation arrow.

Digitize point or end of flow line <Exit>: <P1>Enter the angle of rotation: 0 <Return>Text: P-100 <Return>Command:

<P1>

Page 86: pidman

P&ID 6.1TUTORIAL TUTOR-10

Draw the Main Flow Line

Draw a flow line from the vessel to the continuation arrow.

CADPIPE uses an intelligent flow line. Items placed on the flow lineautomatically adopt the intelligence of the line. Information stored with the flowline includes: size, rating, flow line layer, whether line relates to pipe orequipment, flow direction and line designation.

Command:

Pick “Flow Line” from the “PLACE” menu, or click .<TUTOR1 - ABB1><CPID_MFLLON>Edit line designation/<First Point>: <P1> (Digitize the first point of the

flow line <P1>.)Next point: <P2>Next point: <P3>Next point: <P4>Next point: <Return>Command:

<P1> <P2>

<P3>

<P4>

Page 87: pidman

P&ID 6.1TUTORIAL TUTOR-11

Place Valves and Fittings

Gate Valve

Place a gate valve on line TUTOR1 next to the vessel.

Command:Pick the gate valve from the “PLACE” — “Valves” menu, or click and pick the gatevalve.

<BOM on><TUTOR1><Flgd-RF>Enter Insertion Point: <P1>Digitize Tag Location: <P2>Enter valve tag <VG302>: <Return> (Press <Return> to accept the

default tag.)Digitize Size Tag Location: <P3>Command:

Page 88: pidman

P&ID 6.1TUTORIAL TUTOR-12

<P2><P1>

<P3>

Page 89: pidman

P&ID 6.1TUTORIAL TUTOR-13

Check Valve

Place a check valve on line TUTOR1 next to the gate valve. Check valves allowflow in only one direction, so placing this check valve will designate the flowdirection of line TUTOR1-ABB1.

Command:Pick the check valve from the “PLACE” — “Valves” menu, or click and pick the checkvalve.<BOM on><TUTOR1><Flgd-RF>Enter insertion point: <P1>Flow direction: <P2> (Digitize the flow direction <P2>, which will be shown by

the arrows that appear on the flow line.)Digitize Tag Location: <P3>Enter valve tag <VC302>: <Return>Digitize Size Tag Location: <P4>Command:

<P3> <P1> <P2>

<P4>

Page 90: pidman

P&ID 6.1TUTORIAL TUTOR-14

Gate Valve

Place another gate valve along the main flow line.

Command:Pick the gate valve from the “PLACE” — “Valves” menu, or click and pick the gatevalve.<BOM on><TUTOR1><Flgd-RF>Enter insertion point: <P1Digitize Tag Location: <P2>Enter valve tag <VG302>: <Return>Digitize Size Tag Location: <P3>Command:

<P2> <P1>

<P3>

Page 91: pidman

P&ID 6.1TUTORIAL TUTOR-15

General Control Valve with Actuator

Place the 3" general control valve with an actuator next to the gate valve.

Command:Pick the general control valve from the “PLACE” — “Control Valves” menu, or click and pick the general control valve.

Enter insertion point: <P1>Select Actuator: (Select the diaphragm actuator from the menu.)

Page 92: pidman

P&ID 6.1TUTORIAL TUTOR-16

Actuator direction: <P2>Digitize tag balloon position: <P3> (Label First Line “CV” and

Second Line “100”. Leave ThirdLine blank. Click “OK.”)

Digitize Size Tag Location: <P4>Command:

<P2>

<P3>

<P4> <P1>

Page 93: pidman

P&ID 6.1TUTORIAL TUTOR-17

Concentric Reducer

Place a concentric reducer between the general control valve and the gate valve.The flow lines in P&ID are intelligent flow lines, so when the line size changes atthe placement of this reducer, the size of anything on the line will also change,which will be indicated here by the size tag of the general control valve to theright of the reducer.

Command:

Pick the concentric reducer from the “PLACE” — “Fitting” menu, or click and pick theconcentric reducer.

Enter insertion point: <P1>Inlet Size (6”) (Select 3" [80mm] for the outlet size from the dialog box.)

Page 94: pidman

P&ID 6.1TUTORIAL TUTOR-18

Select Outlet Direction: <P2> (As the flow line changes size, the change will carry overto any item that is placed on the flow line—you will seethis change reflected in the size tag of the generalcontrol valve.)

Digitize Size Tag Location: <P3>Digitize line labels associated with highlighted segment <None>: <Return>

(At this prompt you could digitize any line labelsassociated with the routing line segment that has beenhighlighted. We have no line labels, so press <Return>.)

Command:

Concentric Reducer

Place another concentric reducer on the other side of the control valve.

Command:

Pick the concentric reducer from the “PLACE” — “Fitting” menu, or click and pick the concentricreducer.Enter insertion point: <P1>(Select 6" [150mm] for the outlet size.)Current Line Size <6”>Digitized Line Size <3”>Update size to <3”>[Yes/No]<Yes>: ReturnSelect Outlet Direction: <P2>Digitize Size Tag Location: <P3>Digitize line labels associated with highlighted segment: <Return>Command:

<P3> <P1>

<P2>

<P3>

<P1> <P2>

Page 95: pidman

P&ID 6.1TUTORIAL TUTOR-19

Gate Valve

Place another gate valve next to the second reducer.

Command:Pick the gate valve from the “PLACE” — “Valves” menu, or click and pick the gate valve.<BOM on><TUTOR1><Flgd-RF>Enter insertion point: <P1>Current Line Size <3”>Digitized Line Size <6”>Update Line Size to <6”> [Yes/No] <Yes>: <Return>Digitize Tag Location: <P2>Enter valve tag <VG302>: <Return>Digitize Size Tag Location: <P3>Command:

Insulation

Place an insulation symbol next to the gate valve.

Command:

Pick the insulation from the “PLACE” — “General Symbols” menu, or click and pick the insulation.Enter insertion point: <P1>Command:

<P2> <P1>

<P3>

<P1>

Page 96: pidman

P&ID 6.1TUTORIAL TUTOR-20

Flanged Orifice Flowrate Symbol

Place the flanged orifice flowrate symbol next to the insulation.

Command:Pick the flanged orifice from the “PLACE” — “Flow Rate” menu.<BOM on><TUTOR1>Enter insertion point: <P1>Digitize tag balloon position: <P3> (Label First Line “FE” and Second Line “100”. Leave the

Third Line blank.)Digitize Size Tag Location: <P2>Command:

<P1>

<P2>

<P3>

Page 97: pidman

P&ID 6.1TUTORIAL TUTOR-21

Draw the Bypass

In the “Current Settings” dialog box, change the pipe size to 3" (80mm). TurnORTHO and SNAP on.

Move Insulation

Before we draw the bypass line, we will move the insulation symbol to makeroom for where the new flow line will meet line TUTOR1-ABB1.

Command:Click on the drawing tool bar on the left side of your screen.Select objects: <P1>Select objects: <Return>Base point of displacement: <P2>Second point of displacement: <P3>Command:

You can move valves, balloons, tags, etc., using this method. If you want to movea reducer however, you should remove the reducer using the “Edit” — “Remove”— “Remove Reducer” command, then replace it in its new position. You canmove flow lines by using the “Edit” — “Flow Line” — “Move Line Segment”command. Any items that are on the flow line you are moving will move with theflow line.

Edit Line Designation

We will now set the line designation to TUTOR2-ABB1 and the layer toSecondary Flow using the designation and layer options of the Flow Linecommand. Then we will draw the bypass line.

Command:Pick “Flow Line” from the “PLACE” menu or click .<TUTOR1 - ABB1><MFLLON>Edit line designation/<First Point>: E <Return>

<P1> <P2> <P3>

Page 98: pidman

P&ID 6.1TUTORIAL TUTOR-22

(Type E for the Edit Designation option. This will allow us to change the line designation to TUTOR2.)In the Edit Line Designation box, change line number from TUTOR1 to TUTOR2. The material spec is thesame as the main flow line so leave that as ABB1.

<TUTOR2 - ABB1><MFLLON>Edit Line Designation/<First Point>:Pick “Sec. Flow” from the “PLACE” — ”Flow Line Layer” menu.

(This will allow us to change the flow line layer to Secondary Flow.)Select layer: CPid_SfllonLayer: CPid_Sfllon

Draw the Bypass

Command:

Pick “Flow Line” from the “PLACE” menu, or click .<TUTOR2 - ABB1><CPid_SFLLON>Edit line designation/<First Point>: <P1>Next point: <P2>Next point: <P3>Next point: <P4>Next point: <Return>

Page 99: pidman

P&ID 6.1TUTORIAL TUTOR-23

(The line is green to indicate that it has been placed on the Secondary Flow layer.)Command:

Globe Valve

Place a globe valve on the bypass.

Command:Pick the globe valve from the “PLACE” — “Valves” menu.<BOM on><TUTOR2><Flgd-RF>Enter insertion point: <P1>Digitize Tag Location: <P2>Enter valve tag <VL302>: <Return>Digitize Size Tag Location: <P3>Command:

<P2>

<P1>

<P3>

<P4>

<P2> <P1>

<P3>

Page 100: pidman

P&ID 6.1TUTORIAL TUTOR-24

Change the Drawing Scale

To reduce the size of the next few items we place, change the drawing scale to0.75.

Pick “System Defaults” from the “SETTINGS” pull-down menu.

Click “Drawing Scale.”

Type “0.75” Click “OK.”

Exit the “Systems Defaults” dialog box.

Page 101: pidman

P&ID 6.1TUTORIAL TUTOR-25

Draw Signal Lines and Tap-in Line

Pneumatic Signal Lines

First, change the pipe size to 1-1/4” (32mm) in the Current Settings dialog box.

Place the pneumatic signal line at the control valve actuator.

Command:

Pick the pneumatic signal line from the “PLACE” — “Instrument Line” menu, or click and pick thepneumatic signal line.First point: _qua of <P1> (Use OSNAP Quadrant to pick <P1>.)Next point: <P2>Next point: <Return>Command: <Return> (This restarts the placing of the signal line.)First point: _endp of <P2> (Use OSNAP ENDpoint to pick <P2>)Next point: <P3>Next point: <Return>Command: <Return>First point: _end of <P2>Next point: <P4>Next point: <Return>Command:

<P1>

<P3>

<P2>

<P4>

Page 102: pidman

P&ID 6.1TUTORIAL TUTOR-26

3-Way Control Valve

Place the 3-way control valve on the pneumatic signal line.

Command:Pick the 3-way control valve from the “PLACE” — “Control Valves” menu, or click and pick the 3-waycontrol valve.Enter insertion point: _int <P1> (Use OSNAP INTersection to place the valve at the

intersection of the instrument lines at <P1>)Select Actuator: (Select the solenoid actuator from the menu.)Actuator Direction: <P2> <Return>Digitize tag balloon position: <P3> (Label the First Line “FCV” and the Second Line “100”.

Leave the Third Line blank.)Digitize Size Tag Location: <Return>

(We will not place a size tag. Press <Return> for none.)Command:

<P1>

<P2>

<P3>

Page 103: pidman

P&ID 6.1TUTORIAL TUTOR-27

Tap-in Line

Draw the tap-in line for the flanged orifice flowrate symbol.

In the “Current Settings” dialog box, change the line number to FT. The pipe sizeshould be 1-1/4" (32mm).

Command:

Pick “Flow Line” from the “PLACE” menu, or click .<FT - ABB1><CPid_SFLLON>Edit Line Designation/<First Point>: _endp of <P1> (Use OSNAP ENDpoint to pick

<P1>.)Next point: <P2> (The next pick may be easier

with ORTHO off.)Next point: <Ortho off> <P3> (Turn ORTHO back on.)Next point: <Ortho on> <P4>Next point: <P5>Next point: <P6>Next point: <P7>Next point: <Return>Command:

<P4> <P5>

<P3>

<P2>

<P1>

<P7>

<P6>

Page 104: pidman

P&ID 6.1TUTORIAL TUTOR-28

Gate Valves

Place two 1-1/4" (32mm) gate valves on the tap-in line.

First, activate Spec Override. The ABB1 spec will not allow you to place a gatevalve on any pipe that is 2” or smaller, so we will override the spec for this step.

In the “Current Settings” box, click on “Spec Override.” An “X” or “ ” in thebox indicates that Spec Override is active. Click “OK.”

Command:Pick the gate valve from the “PLACE” — “Valves” menu or click and pick the gate valve.<BOM on><FT><Flgd-RF>Enter insertion point: <P1>Digitize tag location: <Return> (Do not place a tag with this valve.)Digitize size tag location: <P2>Command:Spec Override is only active for one set of placement commands, so you will need to turn it back on toplace the second gate valve. In the “Current Settings” box, click on “Spec Override,” then click “OK.”

Pick the gate valve from the “PLACE”—“Valves” menu, or click and pick the gate valve.Enter insertion point: <P3>Digitize tag location: <Return>Digitize size tag location: <Return>(We placed the size tag with the previous valve. Press <Return> for none.)Command:

<P1>

<P2>

<P3>

Page 105: pidman

P&ID 6.1TUTORIAL TUTOR-29

Instrument Balloon

First, change the drawing scale to “1.00” with the “Settings” — “SystemDefaults” command.

Place the instrument balloon on the tap-in line.

Command:

Pick balloon in-line from the “PLACE” — “Instrument Balloon” menu, or click and pick the balloon in-line.<BOM On><FT><1-1/4"><800#>Enter insertion point: <P1>(Label the First Line “FT” and the Second Line “200”. Leave the Third Line blank. Click “OK.”)Command:

<P1>

Page 106: pidman

P&ID 6.1TUTORIAL TUTOR-30

Electric Signal Line

Draw the electric instrument signal line from FT-200 to the solenoid actuator onFCV-200.

Command:

Pick the dashed electric signal line from the “PLACE” — “Instrument Line” menu, or click and pick thedashed electric signal line.First point: _nod of <P1> (Use OSNAP Node to pick <P1>.)Next point: <P2>Next point: <snap off> _mid of <P3> (Use OSNAP MIDpoint to pick <P3>. It may be

easier with SNAP off.)Next point: <Return>Command:

<P2>

<P1>

<P3>

Page 107: pidman

P&ID 6.1TUTORIAL TUTOR-31

Instrument Balloon

Place the instrument balloon labeled FA-100 off the electric instrument signalline, modify the balloon with the pilot light, and draw the electric signal line fromthe balloon to the other signal line.

Command:

Pick the balloon from the “PLACE” — “Instrument Balloon” menu, or click and pick the balloon.<BOM on><FT><1-1/4"><800#>Enter insertion point: <P1> (Label the First Line “FA” and the Second Line “100”. Leave the

Third Line blank.)Command:

Pick the pilot light from the “PLACE” — “Instrument Modifier” menu, or click and pick the pilot light.Digitize balloon: <P2>Command:

Pick the dashed electric signal line from the “PLACE” — “Instrument Line” menu, or click and pick thedashed electric signal line.First point: _nod of <P3> (Use OSNAP Node to pick <P3>.)Next point: <P4>Next point: <Return>Command:

<P1>

<P4>

<P2>

<P3>

Page 108: pidman

P&ID 6.1TUTORIAL TUTOR-32

Drain Line

Draw a drain line off the flow line TUTOR1-ABB1.

In the “Current Settings” dialog box change the pipe size to 3" (80mm) and theline number to TUTOR1. The material spec remains the same.

Command:

Pick “Flow Line” from the “PLACE” menu, or click .<TUTOR1 - ABB1><CPid_SFLLON>Edit line designation/<First Point>: <P1>Next point: <P2>Next point: <Return>Command:

<P1>

<P2>

Page 109: pidman

P&ID 6.1TUTORIAL TUTOR-33

Gate Valve

First, change the drawing scale to “.75” using the “Settings” — “SystemDefaults” command.

Place a gate valve on the drain line.

Command:Pick the gate valve from the “PLACE” — “Valves” menu, or click and pick the gate valve.<BOM on><TUTOR1><Flgd-RF>Enter insertion point: <P1>Digitize Tag Location: <P2>Enter valve tag <VG302>: <Return>Digitize Size Tag Location: <P3>Command:

<P2> <P1> <P3>

Page 110: pidman

P&ID 6.1TUTORIAL TUTOR-34

Draw Flow line TUTOR3-ABB1

Place another flow line off the vessel.

In the “Current Settings” dialog box change the pipe size to 6" (150mm) and theLine Number to TUTOR3. The material spec remains the same.

In the “System Defaults” box, change the Drawing Scale to 1.00. Click “OK.”

Command:

Pick “Flow Line” from the “PLACE” menu, or click .<TUTOR3 - ABB1><CPid_SFLLON>Edit line designation/<First point>: <P1>Next point: <P2>Next point: <P3>Next point: <P4>Next point: <Return>Command:

<P1> <P2>

<P3> <P4>

Page 111: pidman

P&ID 6.1TUTORIAL TUTOR-35

Continuation Arrow

This continuation arrow marks the end of flow line TUTOR3-ABB1 in thisdrawing.

Command:

Pick the continuation arrow from the “PLACE” — “General Symbols” menu, or click and pick thecontinuation arrow.Digitize point or end of flow line: <P1>Flow Direction: <P2>Enter Text: P-200 <Return>Command:

Gate Valve

Place the gate valve near the vessel on line TUTOR3.

Command:Pick the gate valve from the “PLACE” — “Valves” menu, or click and pick the gate valve.<BOM on><TUTOR3><Flgd-RF>Enter insertion point: <P1>Digitize Tag Location: <P2>Enter valve tag <VG302>: <Return>Digitize Size Tag Location: <P3>Command:

<P2>

<P1>

<P3>

<P2> <P1>

Page 112: pidman

P&ID 6.1TUTORIAL TUTOR-36

Draw Line TUTOR4-ABB1

Now, draw a drain line off line TUTOR3.

In the “Current Settings” dialog box change the pipe size to 3" (80mm) and theline number to TUTOR4. The material spec remains the same.

Command:

Pick “Flow Line” from the “PLACE” menu, or click .<TUTOR4 - ABB1><CPid_SFLLON>Edit line designation/<First point>: <P1>Next point: <P2>Next point>: <Return>Command:

Pair of Flanges

Place a pair of flanges at the end of the drain line.

Command:

Pick the pair of flanges from the “PLACE” — “Fitting” menu, or click and pick the pair of flanges.Enter insertion point: <P1>

<P1>

<P2>

<P1>

Page 113: pidman

P&ID 6.1TUTORIAL TUTOR-37

Annotate the Drawing

Label Flow Lines

We will now label all flow lines.

Set your SNAP to 1/8" (2.5).

Command: Snap <Return>Snap Spacing or ON/OFF/Aspect/Rotate/Style 0’-0 1/4”>: 1/8 <Return>Command:Pick “Label Line” from the “ANNOTATION” menu.Select flow line: <P1> (Pick a point on line TUTOR1-ABB1.)Enter insertion point: <P2>Enter angle of rotation: 0 <Return> (Repeat the command.)Select flow line: <P3> (Pick a point on line TUTOR3-ABB1.)Enter insertion point: <P4>Enter angle of rotation: 0 <Return> (Repeat the command.)Select flow line: <P5> (Place another line label on TUTOR1-ABB1.)Enter insertion point: <P6>Enter angle of rotation: 0 <Return> (Repeat the command.)Select flow line: <P7> (Pick a point on the drain line TUTOR4-ABB1.)Enter insertion point: <P8>Enter angle of rotation: 0 <Return>Command:

<P2> <P1>

<P4> <P3>

<P6>

<P5>

<P7>

<P8>

Page 114: pidman

P&ID 6.1TUTORIAL TUTOR-38

Toggle Arrows

Place arrows on the flow lines to indicate flow direction.

Command:Pick “Toggle Arrows” from the “AUTO” menu.Select flow line: <P1> (We do not need to place arrows on TUTOR1 because they were placed

with the check valve.)Direction to flow: <P2>Repeat the command.Select flow line: <P3>Direction to flow: <P4>Command:

<P2>

<P1>

<P3> <P4>

Page 115: pidman

P&ID 6.1TUTORIAL TUTOR-39

Title Block

Place a title block in the bottom right corner of your drawing.

Command:Pick “Title Block” from the “ANNOTATION” menu.(Select the “Default” title block from the pop-up menu. Five title block drawings are supplied.)Enter insertion point: _int <P1> (Use OSNAP INTERsection to pick <P1>.)Enter Revision Number: 1 <Return>Enter Drawing Name: TUTORIAL <Return>Enter Job Number: 10024Command:

Congratulations, you have completed the CADPIPE P&ID tutorial!

You may want to continue drawing with CADPIPE because there are many morefeatures which have not been demonstrated through this tutorial.

Feel free to experiment, but remember that if you are running the demonstrationversion of CADPIPE, certain functions will be restricted.

<P1>

Page 116: pidman

P&ID BILL OF MATERIALS BOM-1

BILL OF MATERIALS

Introduction

The CADPIPE Bill of Materials program generates a complete and accurate list ofmaterials from your drawing at any time during your drawing session. You cansend the output to your display, to an ASCII file, to an SDF file, or to yourprinter. You can also place the bill of materials on your drawing.

You can customize a user code and user description on your bill of materials withthe CADPIPE Specification Generator, which is described in your Databasemanual.

Entering the Program

To extract a bill of materials, pick [BOM] from the “AUTO” menu:

Command:Enter job number <<current default>>: (Enter the job number for your drawing or press

<<Return>> to accept the default. The jobnumber is printed on the BOM for reference.)

Save drawing [Yes/No] <<YES>>: <<Return>> (The BOM is not extracted from within AutoCAD.Consequently you are prompted to save yourdrawing file each time you want to extract the billof materials; it is this saved file that theCADPIPE BOM uses.)

Page 117: pidman

P&ID BILL OF MATERIALS BOM-2

BOM Options Dialog Box

After your drawing is saved, you will see the BOM Options dialog box:

The selections you make in this box specify what information you want to appearin the BOM and how it should be displayed. The following choices are available:

• Material Type• Sorting method• Output device• Include long description

You merely click on the category you want and then click on “OK” when youhave made all your selections. If you click on an item twice, it will be deselected.

Material Type Selection

The Bill of Materials program can generate a listing organized by five differentmaterial categories:

• all the items on the drawing• manual valves• equipment• instrumentation• fittings or miscellaneous items

Page 118: pidman

P&ID BILL OF MATERIALS BOM-3

The “All Items on Drawing” actually combines each of the other four materialextractions into one. The “All Items on Drawing” report shows all the drawing’sBOM items grouped into manual valves, equipment, instrumentation and fittings.A sample listing is shown at the end of this chapter.

Sorting Method

The next option is the method by which the BOM is sorted. We describe eachoption below:

By plant numberIf you select “Plant Number”, the items are sorted by:

• Item Group (valves, equipment, instrumentation or fittings) if “All Itemson Drawing” was extracted

• Plant Number• Item Code (e.g., gate valve)• Tag• PID Number• Instrument Spec• Pipe/Equipment• Line Number• Material Spec• Size (if applicable)• Rating (if applicable)

They are then printed to the output device in groups, each group headed by a plantnumber title.

By PID numberIf you select “PID Number”, the items are sorted by:

• Item Group (valves, equipment, instrumentation, or fittings) if “All Itemson Drawing” was extracted

Page 119: pidman

P&ID BILL OF MATERIALS BOM-4

• P&ID Number• Item Code (e.g., gate valve)• Plant Number• Tag• Instrument Spec• Pipe/Equipment• Line Number• Material Spec• Size (if applicable)• Rating (if applicable)

They are then printed to the output device in groups, each group headed by a PIDnumber title.

By line numberIf you select “Line Number”, the items are sorted by:

• Item Group (valves, equipment, instrumentation or fittings) if “All Itemson Drawing” was extracted

• Line Number• Material Spec• Item Code (e.g., gate valve)• Plant Number• Tag• PID Number• Instrument Spec• Size (if applicable)• Rating (if applicable)

They are then printed to the output device in groups, each group headed by a linenumber title.

By equipment numberIf you select “Equipment Number”, the items are sorted by:

• Item Group (valves, equipment, instrumentation or fittings) if “All Itemson Drawing” was extracted

• Item Code (e.g., gate valve)• Line Number• Plant Number• Tag• PID Number• Instrument Spec• Size (if applicable)• Rating (if applicable)

Page 120: pidman

P&ID BILL OF MATERIALS BOM-5

They are then printed to the output device in groups, each group headed by anequipment number title.

By material classIf you select “Material Class”, items are sorted by:

• Item Group (valves, equipment, instrumentation or fittings) if “All Itemson Drawing” was extracted

• Material Class• Item Code (e.g., Gate Valve)• Plant Number• Tag• PID Number• Instrument Spec• Pipe/Equipment• Rating (if applicable)• Size (if applicable)

They then printed to the output device in groups, each group headed by anequipment number line.

Output Device Selection

The bill of materials can be directed to four output devices:

• Display• printer• ASCII file• SDF file• CDF file• Access Database

You can modify the BOM by selecting the ASCII file as your output file, and thenmaking your alterations with a text editor, or using the SDF file as input into acustom Bill of Materials program of your own or into most popular databaseprograms.

Screen DisplaySelect this output to view the bill of materials at any time during your drawingsession, without creating a hard copy.

Page 121: pidman

P&ID BILL OF MATERIALS BOM-6

PrinterIf you select the printer output, CADPIPE will send your bill of materials to aprinter for hard copy. It will be printed in the category format that you select, andit will include the date and the job number on every page.

CADPIPE has a printer control file named BOMPID.LPT with default values thatyou can customize for your own printer. You will find the file in your \CPEXEdirectory. We have included the following lines in the file:

PORT#=LPT1PAGEL=60PAGEW=120SETUP=\x0F

RESET=

The “PORT#” line specifies that output be sent to printer port lpt1; the “PAGEL”line sets the length of the page in lines, and the “PAGEW” line sets the width ofthe page in columns.

If you reduce the page width in this file, CADPIPE will reduce the number ofcharacters, truncating text from the right side of the report. This reduction appliesto the data sent to the ASCII file as well as to the printer.

The setup and reset lines are control code strings that are sent to your printer (inthis case we have given you the codes for an Epson FX-80 for the setup and thereset.) These settings may appear differently than shown above depending on yourtext editor.

This file sets your printer to condensed mode and then sets it to 10 pitch afterprinting is completed. You can either customize this file or change your ownprinter setup.

The setup control code is a string that is sent to the printer before printing beginsand that sets your printer to condensed print, in order to fit all 132 columns ontoyour page. (If you have a wide carriage printer you will not need to set yourprinter to condensed, so you can take the setup and reset lines out of the file.) Thereset control code sets your printer to normal (10 pitch) print. For the setup andreset codes we have used three-digit decimal numbers, using leading zeros tocomplete the three. You can customize this file for your own printer, if you have aknowledge of your printer’s control codes. The control codes are listed in the filein the same format as that used in the Lotus 1-2-3 setup string command.

To print on an HP laser printer your codes should be:

SETUP=(27)E(27)(s17HRESET=(27)E

Page 122: pidman

P&ID BILL OF MATERIALS BOM-7

where (27) is the code for Esc. Do not type brackets, ( ), around the Esc character!Your text editor may allow you to enter escape code by holding down the<<Alt>> key and typing 27 on your numeric keypad. It may also let you enter thehexidecimal equivalent of Esc, 0x1B.

Unless your HP can interpret IBM graphics characters, you should also set theenvironment variable GTRANS to NO before you run the BOM. You may evenwant to include the following in your AUTOEXEC.BAT file:

SET GTRANS=NO

You can remove the Setup and Reset control codes and set your printermanually before printing the BOM.

ASCII fileIf you select this output, CADPIPE will prompt you for a file name. After youenter the filename, CADPIPE creates an ASCII file in your current workingdirectory. You can add notes or special items (using a text editor), and then printout the revised bill of materials.

If you are making a change that must also be made on your drawing, werecommend that you change your drawing immediately (in other words, beforeyou forget); otherwise, the next time you take off the bill of materials, yourCADPIPE generated bill of materials will not be consistent with the earlier onethat you changed.

You cannot import this file back into the CADPIPE P&ID program for printingthrough the bill of materials printer output option.

SDF and CDF FilesIf you select either of these options, CADPIPE will prompt you for a file name.After you enter the file name, CADPIPE will create an SDF or CDF file in yourcurrent working directory.

Listings from the first screen will include all items of all types from the drawing,while listings selected from an item type (such as manual valves) will list out onlyitems of that item type.

The format for the SDF file is common to all item types and is shown below.

The following is a break down of the codes found in each line of the SDF file:

Column Description

01-16 16-character User Code17-17 1-character 2.21 flag (|)18-32 15-character Line Number

Page 123: pidman

P&ID BILL OF MATERIALS BOM-8

32-39 8-character Material Spec40-40 1-character Master Code41-43 CADPIPE reserved codes44-47 4-character item cod e48-50 3-character end type 1 code51-53 3-character end type 2 code54-56 3-character end type 3 code57-72 16-character Tag number73-74 CADPIPE reserved codes75-84 10-character Quantity

This SDF listing is a similar format to the ORTHO/ISO SDF file. Certain fieldsare not applicable to P&ID and are left blank.

Access DatabaseIf you choose this option, CADPIPE will load your BOM into a Microsoft Accessdatabase, an example of which can be found in CP60\CPWORK\PID\BOM.MDB.(This, of course, can only be viewed if you have Microsoft Access.)

Include/Exclude Descriptions

If you click on “Include Long Descriptions,” you can include long descriptionsentered in the Piping Specifications in the item description column of the BOM.

Page 124: pidman

P&ID BILL OF MATERIALS BOM-9

Sample Bill of Materials

The following is a sample bill of materials screen display. The bill of materialswas taken from the P&ID Tutorial drawing and is extracted by “All items on thedrawing” and “PID number.”

Page 125: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-1

GLOBAL BILL OF MATERIALS

What is the Global Bill of Materials?

The CADPIPE Global Bill of Materials (GBOM) program allows you toextract a complete bill of materials listing from a single drawing, from alldrawings in a single directory, or from all drawings in multiple drawingdirectories.

The GBOM program creates a special materials extract file and then callsup the standard Bill of Materials (BOM) program to process this file.

The Drawing Information File (.CPG)

The Global BOM program creates a file (job number.CPG) for each jobnumber in each subdirectory that the GBOM program processes. This fileis needed by the BOM program; it is kept in the directory to allow theGBOM program to work quickly when updating parts of the CPG file withnew drawing information.

The CPG file is a series of drawing material extracts. Each of theseextracts is tagged with drawing information: file name/date/time, drawingrevision, job number, and drawing name. Much of this information comesfrom the title block on your drawing. The rest of each extract containsinformation about the contents of the drawing from which it was taken,such as item positions and description tags.

All of the information in this file is contained in your drawings;consequently, you do not have to keep this file in your archives.

The GBOM program does not automatically remove material extractsfrom a CPG file when the drawing from which the extract came is nolonger present in the subdirectory. This allows you to archive completeddrawing files and retain their materials in your CPG file, which helps savevaluable disk space.

What is theCPG file?

Page 126: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-2

Job Numbers

The Global BOM program uses the job number that is stored within eachdrawing (in the title block) to determine which drawings are to beincluded—and which are to be excluded—from the GBOM listing.

The program searches each drawing in your directory for a matching jobnumber. If it finds a match (or a drawing with no job number), thematching or numberless drawing file is included in the GBOM extraction.Any job number that does not match is skipped and is not added to theGBOM extract.

We recommend that you have the same job number for all the drawingsin a CADPIPE working directory and keep drawings with different jobnumbers in different working directories.

You can have the same job number in multiple directories: typically, thesedirectories would be part of a project directory structure. This allows youto run a Global BOM at many different levels on a project (e.g., at a unitlevel, a plant level, and a project level).

Remember, however, that if you do not give a drawing a job number, thatdrawing will match with all job numbers. Thus, you will not accidentallyexclude any drawings from your global BOM when you omit entering jobnumbers, but you could accidentally include drawings without jobnumbers.

The job number is used as the file name for the CPG files. If the jobnumber you have selected is an invalid DOS file name, you will need tochange the job number.

Revision Numbers

Unlike the standard ASCII order, the GBOM comparison treats digits asgreater than letters. For example, the following list is sorted from theearliest revision number (top of the list) to the latest revision number(bottom of the list):

no revision numberAAAAA-1BC1C2DAA01

Drawi

Page 127: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-3

1A22B3

Note that 1a, 1A, 1-a and 1/A are identical revision numbers because theprogram is not case-sensitive, and it ignores anything other than letters ornumbers—all it sees is 1A.

We will be using ORTHO in any examples. The principles are the samefor ORTHO, ISO, and P&ID.

BOM of a single drawing

When you highlight a single drawing, you can only run a BOM extractionfor that drawing.

It is important to note that this single drawing bill of materials has nothingto do with the Global CPG files; it is a stand-alone and separate bill ofmaterials listing tool. (Refer to the Bill of Materials chapter.)

Once you have made your selection, click on "ORTHO BOM..."

Extracting a Global Bill of Materials

Select “Auto” — “Global BOM” from the pull-down menu.

You will see the Global BOM Main Menu:

You are offered three options:

Page 128: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-4

• Build/Report Global BOM• Merge CPG files• Report Global BOM

The "Build/Report Global BOM" option deletes the existing CPG file andbuilds a new CPG file, adding extracts from all drawings with matchingjob numbers. The GBOM program then calls the BOM program.

This feature allows you to run a GBOM from selected directories on asingle machine or network. It also allows you to merge many CPG files(via floppy disk) into one large CPG file for a project Global Bill OfMaterials. This option is useful if you have many workstations that are noton a network.

The "Report Global BOM" option calls the Bill of Materials program togenerate a report using the existing CPG file. The program does not checkthe drawings; the CPG file is used as-is.

"Build/Report Global BOM"

To perform a Global BOM, click on "Build/Report Global BOM" in theGlobal BOM Main Menu.

Select Job NumberThe program will scan for job numbers, then show you a dialog box thatlists all existing job numbers found in all the drawings in this directory:

If you are not using job numbers in your drawings, they are put under thedefault job number, cadpipe. You can use this default to run your GlobalBOM.

ReportGlobal BOM

Page 129: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-5

If you select a job number and the CPG file already exists, a dialog boxwill appear, telling you that the file already exists and presenting you withtwo options: “overwrite” or “abort.” Clicking “abort” will return you tothe Main Menu. Clicking “overwrite” will prompt the program tocontinue, and a new CPG file will be created, replacing the existing file.

Once you have made your selections, the Global BOM program willprocess the drawings and generate a Global BOM.

Once this process completes without error, the CPG file will be passed tothe BOM program and you will see the Bill of Materials program MainMenu.

Proceed as in the Bill of Materials chapter.

A Global BOM temporary file (CP.GBM) is created in the directory fromwhich the GBOM program is invoked. This is a temporary file used toaccumulate the material extracts from all the CPG files in all thesubdirectories. This file can be very large—up to 2 Mb may be requiredfor large global extracts, so you will need to ensure that sufficient diskspace is available before running the program. Usually, the file is erasedonce the permanent file is created, but it may sometimes be left on yourdisk and will need to be manually deleted.

"Merge CPG files"

This feature lets you merge many CPG files into one large CPG file for aproject Global Bill of Materials, which is useful if you have many usersworking in their own directories.

Select “Auto” — “Global BOM” — “Merge CPG Files”

You will see:

Page 130: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-6

Click “Add” and select the two or more CPG files that you want to merge,one at a time. You select the files by highlighting the file you want, thenclicking “Open,” and they will be added to the list. You must select atleast two files in order to activate the “Merge CPG Files” program.

If you don’t see the files you want in the default directory, you can browsethrough the other directories to find it, or you can click “Find File” and theprogram will find the file for you.

Once you have selected the files you want to merge, you will see themlisted in the “Merge CPG Files” dialog box:

Click “Merge.” You will be prompted to name the new file. Enter a uniquename for the new CPG file and click “OK.” (If a file with that name

Page 131: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-7

already exists, the program will alert you to that fact and prompt you toeither overwrite the existing file or abort the merge process.)

The files will be merged, and the new file will be placed in the defaultJ:\CPWORK\ORTHO directory, where J:\ is your drive and \ORTHO is theCADPIPE module you are working in.

When the same drawing extract exists in both CPG files, the mostcurrent extract (latest revision or, if the same revision, the latestdate/time) is kept.

"Report Global BOM"

Select “Auto” — “Global BOM” — “Report Global BOM”

You will see the “Select Job Number” dialog box that you see when youselect “Build/Report Global BOM.” Select which job number that youwould like a GBOM for. Click “OK.” The CPG file will be passed to theBOM program, and you will see the BOM Main Menu. Proceed as in theBill of Materials chapter.

Page 132: pidman

CADPIPE GLOBAL BILL OF MATERIALS GBOM-8

Global BOM Summary Report

The Global Bill of Materials program creates a summary report before itprints the listing to a printer or to an ASCII file. This summary page istaken from the SUM file, which was created by the GBOM program whenthe CPG file was last updated.

The summary page includes the following information:

• full directory path of the directory where the drawings reside, andfrom which extracts were taken

• job number• date of the CPG file update• listed drawing information:

drawing file namesjob numbersdrawing number for each drawingrevision number for each drawingdate and time that each drawing was last updated

A summary of this information is given, showing the number of drawingsincluded in the GBOM listing:

Page 133: pidman

P&ID CUSTOMIZING CUSTOM-1

CUSTOMIZING

CADPIPE P&ID is a design package that meets most piping applications.We recognize, however, that users must be able to customize the program;therefore we have adopted an “open architecture” philosophy.

Imperial and Metric

Imperial units are used in all examples in the documentation. Metricmeasurements are given in parentheses when the unit of measure is criticalto understanding a concept.

The following chart shows imperial directories, and their metricequivalents:

IMPERIAL METRIC\CPTABLE \CPMTABLE\CPPID \CPMPID\PID.DWG \MPID.DWG

Editing System Defaults

CADPIPE defaults that are active every time you start CADPIPE arestored in the CPDDEF.INI file in the \CPPID\PIDLSP directory.

Some of these defaults can be modified for the current drawing sessiononly through the “System Defaults” command in the “SETTINGS” menu.

Most of the defaults in the CPDDEF.INI are modified through the [EditDefaults File] command in the “Edit” — “Customizing” menu. The filecan also be modified with a text editor.

Edit Defaults File command

“EDIT”—“Edit Defaults File”

The “Edit Defaults File” command gives you a quick and easy way to edityour system default settings. When you pick the command a dialog boxappears that shows the four categories into which the defaults are divided.

Page 134: pidman

P&ID CUSTOMIZING CUSTOM-2

Select the category of the default you want to change. For example, click“Toggles:”

Click “Bill of Materials toggle.” Another dialog box displays the settingsfor that default:

Page 135: pidman

P&ID CUSTOMIZING CUSTOM-3

When you have made the change, click “OK.”

Select another default or click “OK” to return to the list of categories. Youmay select another category and make more changes.

When you are finished all your modifications click “Update.” The changesyou have made are written to the defaults file (CPDDEF.INI), and the newsettings will be active the next time you start CADPIPE.

Custom Title Blocks

CADPIPE P&ID allows you to define your own title blocks, five at a time.These blocks can have any name that you want and may be located inproject directories (these are described below) to provide project-specificdrawing titles.

When creating a new title block, you may include your own attributes,which will be prompted for when the block is inserted. You must,however, include the following three attributes in any custom title blockthat you create:

CP_TJNO contains the current job number. The prompt is“Enter job nu mber.”CP_TDWG contains the curren t drawing name. The prompt

Page 136: pidman

P&ID CUSTOMIZING CUSTOM-4

is “Enter drawing nu mber.”CP_TREV contains the current revision number. Theprompt is “Enter revision nu mber”.

These attributes are used by CADPIPE and must be included in anycustom title blocks that you create.

The title blocks that will be displayed in the pop-down menu when youselect “Title Block” from the “ANNOTATION” menu can be found in theCPID.MNU file:

CPID_CPUtil4 [->$Title Block]CPID_Title1 [&Title Block 1]^C^C^P(setq CpidDwgFileName“CPPITITA.DWG”)(princ);_PLTITLECPID_Title2 [&Title Block 2]^C^C^P(setq CpidDwgFileName“CPPITITB.DWG”)(princ);_PLTITLECPID_Title3 [&Title Block 3]^C^C^P(setq CpidDwgFileName“CPPITITC.DWG”)(princ);_PLTITLECPID_Title4 [&Title Block 4]^C^C^P(setq CpidDwgFileName“CPPITITD.DWG”)(princ);_PLTITLECPID_Title5 [&Title Block 5]^C^C^P(setq CpidDwgFileName“CPPITITE.DWG”)(princ);_PLTITLECPID_Default [&Default Block]^C^C^P(setq CpidDwgFileName“CP_TITLE.DWG”)(princ);_PLTITLE

When a block is picked, it will be searched for in the current directory,then the \CPPID\PIDBLKSY directory. You can change the block nameseasily within this file. Remember to delete the cpid.mnr,mnc, and mnsfiles so that the menu recompiles and your modifications are in effect.

Customizing the Date/Time Stamp

The standard CADPIPE date/time stamp is placed outside the lower lefthand corner of the border when you initialize your drawing. If the userI.D. toggle is off, the block DSTAMP.DWG from the\CPPID\PIDBLKSY\ directory is automatically inserted with the currenttime, date and drawing name. If the user I.D. toggle is on, the blockDSTAMPU.DWG will be inserted. This block is the same asDSTAMP.DWG except it contains an extra attribute for the user I.D. TheDSTAMPU.DWG appears as follows:

Page 137: pidman

P&ID CUSTOMIZING CUSTOM-5

You may change the format of this block by editing it in AutoCAD. It is acombination of text and attributes. The text may be changed and the blockredesigned as desired. The block must contain the following attributes:

DWG1 The drawing nameDATE1 The current system dateTIME1 The current system timeUSERID The user I.D., if applicable

These attributes have no flags set and do not have prompts. The programprovides the prompt text. If you add your own attributes to this block youmust include prompts with them.

The AutoCAD “SAVE” command has been redefined to update theseattribute values every time the drawing is saved.

The Prototype Drawing

The prototype required by CADPIPE is installed into your CADPIPEsupport directory (/CPACADW), depending on your installation. If youwant to change the standard CADPIPE layers or drawing size, eithercreate a new prototype drawing or modify a copy of the originalPID.DWG. Refer to your AutoCAD manual on how to make thesechanges and always make a backup before making any changes.

Project Directories

Project directories are used to manage customized files that only apply toparticular drawings or groups of drawings. For more information onproject directories refer to the Project Manager chapter. A projectdirectory can hold project specific

• title blocks• prototype drawings• defaults file• specification information

For your specification files, please note that if you create a projectdirectory, and you have any specification files at all in the projectdirectory, you must include all your relevant specifications in thatdirectory. If you do not, they will not be found.

Page 138: pidman

P&ID CUSTOMIZING CUSTOM-6

We refer to these files as project-specific files. When CADPIPE reads aproject-specific file, it searches in one of four places:

1. Your current directory. Project directory>CADPIPE will look for therequired file in your current directory first. This will allow you to create acustomized file which will act only on the drawings in the directory wherethe file is located. If CADPIPE finds the project-specific file it is lookingfor in the current directory, it will look no further.

2. The first project directory. If you have a project directory on the samedirectory level as your working PID directory, CADPIPE will look in itfor the required file. A customized file in this project directory will affectall of the drawings in the PID working directories which are at the samedirectory level.

3. The second project directory. If you have a project directory one levelabove your working directory, it will be searched next for the project-specific file.

In this case, your working directory could be E:\CLIENT\JOB1\PID andthe project directory would then be E:\CLIENT\PROJ. This structure isuseful if you have a project-specific file that is to be used for a particularclient as it will be active for all the PID directories contained inE:\CLIENT.

4. The CADPIPE default directory. This directory must contain the filethat is being searched for as CADPIPE will look in this directory for thefile if it has not been found in one of the previous three cases.

Each of the five types of project-specific files has a default directory:

a) Specification files default to \CPTABLE\SPEC.

b) The prototype drawing, PID.DWG, defaults to your CADPIPE supportdirectory ( \CPACADW ).

c) The drawing title blocks default to \CPPID\PIDBLKSY.

You may have as many copies of these project-specific files as you want.However, CADPIPE will use the first one it finds by traversing thedirectories in the order given above.

Customizing the Line Label

The CPDDEF.INI file can be modified to provide line labels formatted toyour standards. To modify this file, use your text editor.

Page 139: pidman

P&ID CUSTOMIZING CUSTOM-7

The program defines the order of the line number, size string, and materialspec and defines the separator. There are also three other fields:insulation, service and custom. If these fields are set, insulation type,service type and custom information will be included in the line label onthe drawing. These values are set through the “Current Settings” dialogbox.

[LineLabel]Format=LineNo,MatSpec,Size,Service,Insulation,CustomSeperator=-

If you require a different order in this file or want to add your own text,you may modify this file. The size string contains the size tag string asread from the SSIZE—-.TBL string table.

Custom Keyboard CommandsCadpipe appends additional custom keyboard commands to a copy of youracad.pgp file from your AutoCad directory. This file is located in your\cpacadw directory.

Layers

All the layers that CADPIPE uses are defined in the CPDDEF.INI file inyour \CPPID\PIDLSP\ directory. Before you change the file, print out ahard copy for reference, or at least be sure to back it up. The relevantCADPIPE layers are:

[Layers]AText_Layer=CPid_AtextConst_Layer=CPid_ConstCplp_Layer=CPid_CplpCprt_Layer=CPid_CprtEqntext_Layer=CPid_EqntextEqpoff_Layer=CPid_EqpoffEqpon_Layer=CPid_EqponFtgoff_Layer=CPid_FtgoffFtgon_Layer=CPid_FtgonInsline_Layer=CPid_InlineInstoff_Layer=CPid_InstoffInston_Layer=CPid_InstonMflloff_Layer=CPid_MflloffMfllon_Layer=CPid_MfllonMvloff_Layer=CPid_MvlvoffMvlon_Layer=CPid_MvlvonSflloff_Layer=CPid_Sflloff

Page 140: pidman

P&ID CUSTOMIZING CUSTOM-8

Sfllon_Layer=CPid_SfllonSymbol_Layer=CPid_SymbolText_Layer=CPid_TextTitle_Layer=CPid_Title

These layers are all included in the standard prototype drawing,PID.DWG.

You can change any, or all, of these layer names (change the value only,Do not change the variable name).

Customizing layers

In CADPIPE you can

• change a layer name through the CPDDEF.INI file, and• add a new layer name through the CPDDEF.INI file, and the

PID.dwg prototype dwg.

If you are adding a new layer, you will customize the P&ID menu file, and optionally add a new variable to the CPDDEF.INI file.

If you change a layer name or add a layer, you should add it to theprototype drawing with the correct color and linetypes set. If a layer isreferenced but not included in the prototype drawing, it is automaticallycreated, but with a default color of white and a linetype of continuous.

Since the CADPIPE layer is dependent on the BOM state, a different layermay be placed for BOM <ON> or BOM <OFF>. Therefore, there are twopop-down menus; one for BOM <ON> layers and one for BOM <OFF>layers. They are named **POP8LAYRON and **POP8LAYROFF . Thereare also two screen menus, **CPLAYRON 3 and **CPLAYROFF 3 .These four menu areas contain global variables from the CPDDEF.INI fileor layer names.

When adding new layers you may ADD a layer to the CPDDEF.INI file.

Changing layer namesFor our example, we will change the Manual Valve <ON> layer,MVLVON, to a layer named VALVEON.

First bring the CPDDEF.INI file into your text editor for editing. Thenmove your cursor to the line:

Mvlvon_Layer=Cpid_Mvlvon ; manual valve layer BO M ON

Page 141: pidman

P&ID CUSTOMIZING CUSTOM-9

and simply replace the value “MVLVON” with “VALVEON” as shownhere:

Mvlvon_Layer=VALVEON ; manual valve layer BOM ON

The left column contains the variable names reserved by CADPIPE. Donot change these variable names.

Save the file, and the next time you load P&ID, CADPIPE will place allmanual valves on layer “VALVEON”.

If the layer VALVEON does not exist in your prototype drawing, CADPIPEwill automatically make the layer; however, the color will default to white,and the line type default to continuous.

Therefore, if you change the layers, you should add the new layers to yourprototype drawing(s) with the line types and colors defined.

Adding Flow Line Types

CADPIPE provides four standard flow lines: a main flow (MFLLON andMFLLOFF ) and secondary flow (SFLLON and SFLLOFF ). In addition, thenon-plottable “CONST” flow line is provided. These flow line types aredefined as lines of different colors and line types. CADPIPE allows you tomodify these standard types as well as add your own custom types.

Adding a new flow line requires you to:

• assign a name for the new layers (or two names if you want theflow line to be different when placed BOM <ON> vs. BOM<OFF>).

• define the layers in your prototype drawing and any existingdrawings in which you want to use the new flow lines usingAutoCAD’s [Layer] command.

• modify the CPID.MNU screen menu and pull-down menu areas.

New flow line layer names are not assigned as are the standard CADPIPElayers. Any valid AutoCAD layer name may be used provided it fallswithin the following guidelines:

• The name should be unique and not duplicate any existing definedlayer name.

Page 142: pidman

P&ID CUSTOMIZING CUSTOM-10

• The layer name should not contain the character “$” as this is usedby the project revision numbering feature.

If you want the layer name to change automatically when the BOM togglechanges, the layer name must have the format “nameON” for BOM <ON>and “nameOFF” for BOM <OFF>, where name is a common prefix.

Conversely, if you do not want the layer name to change with the BOMtoggle, avoid having “ON” or “OFF” as the last characters of the layername.

Define the layer(s) in your drawings using AutoCAD’s [Layer] commandassigning Color and Linetype..

The CPID.MNU file must be changed to allow the program to call yournewly defined layer. With your editor, modify the following menu areas:

**CPFLWON 3**CPFLWOFF 3**POP8FLWON**POP8FLWOFF

Let us say you want to add the following flow layer types:

AIRON POLYLINE RED CONTINUOUSPLANT AIR, BOM ON AIROFF POLYLINE RED DASHEDPLANTAIR, BOM OFFPOTWTR LINE YELLOW CONTINUOUSPOTABLE WATER, BOM ON OR OFF

At **POP8FLWON and **CPFLWON 3 menu areas, add the followinglines:

[PLT AIR]AIRON[POT WTR]POTWTR

At **POP8FLWOFF and **CPFLWOFF 3 menu areas, add the followinglines:

[PLT AIR]AIROFF[POT WTR]POTWTR

Each line begins with the text which will appear on the screen menusshown with the square brackets, followed by the layer name. You would,of course, find it most convenient to first do the “POP” ON and OFFareas, and then the “CPFLW” ON and OFF areas.

Page 143: pidman

P&ID CUSTOMIZING CUSTOM-11

If you change the name of the CADPIPE main flow line from MFLLONto something else, such as MAIN, you will have to edit the FlowlineLayer default in the CPDDEF.INI file to your new name. If youdo not, CADPIPE will begin any drawings with the old main flow linelayer as the default.

Editing Menu Commands

Introduction

The P&ID menu file CPID.MNU is located in your CADPIPE Supportdirectory (\CPACADW).

The CPID.MNU file has the same structure as the standard ACAD.MNU.For information on menus, refer to your AutoCAD Customization Manual.

You might want to modify your CADPIPE menu because you want toincorporate your own menu commands or you want to customizeCADPIPE.

Page 144: pidman

P&ID CUSTOMIZING CUSTOM-12

Customizing Valves

Customizing Manual Valves

If you simply want to modify the shape of your valves, you can do soeasily. This is a matter of editing the valve blocks themselves.

To create your own valve type, on the other hand, you need to have aknowledge of the CADPIPE valve coding system. We will give you theinformation that you need to customize your valves over the next fewpages.

An Introduction to manual valve blocks

If you list your \CPPID\PIDBLKMV directory, you will see a number ofdrawing files (.DWG), with names such MVAA——, MVAB——,MVAC——, and so on. The MV stands for Manual Valve, while the AA,AB, and AC are codes for the different types of valves.

The MC* drawing files represent the normally closed symbol that is usedwith the corresponding MV* valve block.

The eight-letter valve block code is made up as follows:

“MV” - for manual valve“AA” - valve code (gate valve)“—” - valve type and manufacturer“—” - valve ends (unspecified)

The CADPIPE P&ID valve code listing:

AA = GateAB = GlobeAC = CheckAD = PlugAE = BallAF = ButterflyAG = ControlAH = NeedleAI = PinchAJ = DiaphragmAK = 4-wayAL = 3-wayAM = PSVAN = Angle check

Page 145: pidman

P&ID CUSTOMIZING CUSTOM-13

When you are customizing valves with different end types on them (forexample, a threaded gate valve or a socket welded ball valve), you need tobe familiar with the end type code letters:

A = Butt weldedB = ThreadedD = Socket weldedO = OletP = PlainQ = Extended BWT = Male pipe threadedW = Wafer0 = Flanged FF1 = Flanged RF2 = Flanged RTJ- = Unspecified

If you use an end type code, you must place it in the seventh and eighthcharacter positions. For valves with different end types at each end, placeeach of the codes in these positions in the order the valve will be specifiedwhen placed.

CADPIPE Database Tables

Database tables are used by CADPIPE as a validation check and as asource of “prompt” information. P&ID only uses string tables which arelocated in the \CPTABLE\AP directory. (AP represents the ANSIdatabase. Other databases are available.)

String tablesString tables provide text descriptions for the single-letter codes that areused by the CADPIPE programs. CADPIPE uses single-letter codes tominimize memory requirements. Since these codes mean little on a menuor in a BOM report, string tables are necessary to retrieve descriptions ofthese codes. The following is each of the CADPIPE string tables and thecontents:

File Name Contents

SENDF—-.tbl Flange end typesSENDV—-.tbl Valve end typesSENDZ—-.tbl Fitting end typesSMANU—-.tbl Fitting ma nufacturerSRATE—-.tbl List of ratingsSSCHD—-.tbl List of schedulesSSIZE—-.tbl List of numerical sizesSTAGS—-.tbl List of string sizesSTYPF—-.tbl Flange sub-typesSTYPM—-.tbl Material/Manufacturer typesSTYPS—-.tbl Stub type stringsSTYPV—-.tbl Valve sub-types

Page 146: pidman

P&ID CUSTOMIZING CUSTOM-14

STYPZ—-.tbl Fitting sub-types

Once again, these tables contain lists of single-letter codes andcorresponding descriptions. For example, code “B” of the table SENDV—-.TBL will return the end type “Threaded.” Code “A” of the table SSIZE—-.TBL will return the size 1/2".

For any dual size tags on your drawing to include the inch (“) symbol, youwould modify the STAGS—-.TBL file to include the symbol.

You can add, remove, or modify the information in these tables using theCADPIPE Database Editor. For example, a new rating could be added toCADPIPE by adding a code and rating to the table SRATE---.TBL throughthe Database Editor.

The information contained in string tables is important to customizing forseveral reasons. First, descriptions for new items (such as codes for newvalve types and new ratings) need to be added to the string tables so thatthese items are reported correctly in the BOM. Additionally, the CPID.MNUmenu file contains links to the string tables so CADPIPE menu promptscontain correct information.

For more information on the Database Editor, refer to the Databasedocumentation.

Valve “TYPE” Defaults for Spec Check Off

When Spec Check is on, the valve subtype and manufacturer will bedefined in your current specification. When Spec Check is off, however,the valve sub-type and manufacturer types default to values set byCADPIPE.The current defaults are:

“AAC-” ;gate valve - regular pattern“ABC-” ;globe valve - regular pattern“ACI-” ;check valve - swing type“ADC-” ;plug valve - regular pattern“AEE-” ;ball valve - long pattern“AF—” ;butterfly valve - unspecified“AG—” ;control valve - unspecified“AH—” ;needle valve - unspecified“AI—” ;pinch valve - unspecified“AJ—” ;diaphragm valve - unspecified“AKP-” ;4-way valve - plug“ALP-” ;3-way valve - plug“AM—” ;PSV valve - unspecified“ANC-” ;Angle valve - regular pattern

Page 147: pidman

P&ID CUSTOMIZING CUSTOM-15

As discussed above, the first two characters in each of these codesrepresents the kind of valve. For example, “AA” is a gate valve while “AM”is a PSV valve.

The third character is the valve sub-type code. This code is defined in theSTYPV—-.TBL string table. You may edit or add your own sub-typedescriptions using the Database Editor as explained in the Databasemanual. We give an example below.

The fourth character is the manufacturer code. Manufacturer codes aredefined in the string table STYPM—-.TBL. You will add your ownmanufacturers, because CADPIPE does not provide manufacturer namesin the file—only the hyphen (-) for unspecified.

These valve types and manufacturers can be changed interactively throughthe “Valve Placement” dialogue box.

Adding a new valveThere are up to six steps in creating and placing a new valve:

1 Add the new kind of valve to the valve string tables so it may beselected in the drawing with the “Custom Valves” menu.

2 Make a new block for your new valve.

3 Edit the “Custom Valves” menu in your CPID.MNU file to place thespecified valve.

4 Edit the MVDESC.DTA file so your new valve will be described correctlyin the BOM.

5 Set the Valve Type through the “Valve Placement” dialogue box.

6 Select your new valve from the “PLACE”— “Custom Valve” menu.

Depending on your objectives, you may not have to complete all of theabove steps.

For example, you may want to create a new, specific type of gate valve. Inthat case, you would only do steps one, four and six. Your valve willappear on the drawing as a regular gate valve but will be reported in theBOM as a special type of gate valve. An example would be a knife gatevalve or a piston check valve.

If you want a new type of valve that is not represented in CADPIPE, youneed to complete all the steps.

Page 148: pidman

P&ID CUSTOMIZING CUSTOM-16

For this example, we will demonstrate all the steps by adding a gaugevalve that is drawn differently from any CADPIPE valves. We will becreating a new block for the valve so it will be represented differentlyfrom any CADPIPE-supplied valves; it will also be reported differentlyfrom any CADPIPE-supplied valve. However, any valve you customizewill necessarily be based on a CADPIPE-supplied valve command (suchas the GATE valve).

You can only place your new valve successfully by differentiating it fromits “parent” through the “Type” option in the “Valves Placement” dialoguebox.

1. Add valve to String TablesYou must add the new valve to the string tables in the database. We willcover this briefly here as it is covered in greater detail in the CADPIPEDatabase manual. If you have any difficulty following these instructionsrefer to your manual.

• Start the Database Editor.• Select the ANSI PLUS database.• Select the string tables.• Select the Valve type strings• Turn your password On, by selecting the password button, and

typing in the default password of cadpipe. Select OK.• Select Edit• You will see 2 lists, the one on the left indicates used values, and

the right unused values. Select “S” and the arrow to move it to thelist on the left.

• Highlight S on the Defined list, then the Code string on the farright.

• Pick Edit and fill in the new value GAUGE. Select OK• Be sure to save your changes when prompted.

2. Create a block for the new valveWe must create a block for our new valve because it will be drawndifferently than any other valve.

Since our gauge valve will be a type of gate valve, we will copy the blockfor the gate valve to be the base drawing for our gauge valve.

We will then modify this valve to suit our graphic requirements.

By looking at the valve codes listed earlier, we can determine our newvalve’s block name.

Page 149: pidman

P&ID CUSTOMIZING CUSTOM-17

We know that all manual valves start with MV and gate valves are AA.

Since our valve type will be “S”, our block name will be MVAAS—-.DWG.

We want our valve to look similar to a regular gate valve, so open the gatevalve drawing file (\CPPID\PIDBLKMV\MVAA——.DWG) in AutoCAD. Usethe “Save as…” command to save the drawing as MVAAS—-.DWG.

You may edit the block any way you like, but we have some suggestions.Until you have some experience with modifying blocks, we recommendthat you do not change the base point (insertion point). To find out whatthe base point is simply type BASE <Return> at the command prompt. (Itshould be located at the center of the valve.)

As with all customized blocks, your layer should be set to “0", yourelevation should be ”0", your line type should be by layer and your colorby layer.

3. Menu—CPID.MNU file changesCustom valves are accessed through the pull-down menu only. Therefore,we will only modify the pulldown section of the CPID.MNU file. (located inthe \CPACADW directory)

Load the CPID.MNU file into a text editor and search for “custom”.

There are 3 entries already set up for custom valves. Using the first

[~Custom &1]^C^C^P(setq CpidDwgFileName“bloc kname.dwg”)(princ);_PLFVALV

Modify that to

[Gauge]^C^C^P(setq CpidDwgFileName“mvaas---.dwg”)(princ);_PLFVALV

Save your MNU file. Your gauge valve will be included in the “CustomValves” pull-down. Delete the compiled menu files (CPID.MNR, MNC, andMNS) so that the new changes to you menu will take effect. (these files arealso located in the \CPACADW directory)

4. Editing the MVDESC.DTA fileFor your valve to be called up correctly by the Bill of Materials program,you must add it to the list of valves and their descriptions in theMVDESC.DTA file located in the \CPPID\PIDBLKMV directory on the drivethat you installed CADPIPE.

Using a text editor, open the file and add your new block name and thedescription for it as shown here with the gauge valve:

Page 150: pidman

P&ID CUSTOMIZING CUSTOM-18

6 Set the valve typeThe gauge valve is now listed in the “Place” — “Custom Valve” menu.

Alternatively, you can place this valve through the Valve Placementdialog box, by manually setting the valve type.

Load your drawing and select the “PLACE” — “Valve” menu.

In the “Valve Placement” dialogue box, select “Gate Valve”.

Click on the “Type” button, and select “Gauge” from the list of valvetypes.

Finally, select “Unspecified” from the list of available manufacturers. Wewould select “Unspecified” because we have not entered anymanufacturers.

When you select your newly defined command, you will place a gaugevalve, and the block that appears on the drawing will be your customblock.

After you have placed your gauge valve, use the “Type” button in the“Valves Placement” dialogue box to return to the setting you want foryour next valve.

We have added “AAS-, Gauge” toour alphabetical list, here.

Page 151: pidman

P&ID CUSTOMIZING CUSTOM-19

Customizing Fittings

As mentioned in the Starting section, CADPIPE provides for the inclusionof fittings on P&ID drawings.

However, as these fittings are not defined in normal industrial standards ineither graphical appearance or degree of inclusion, CADPIPE providesonly a starting symbol block set with a large degree of customizationavailable. CADPIPE does not make a recommendation on the use of thisoption or the type of symbols used for each fitting.

When fittings are used that also form part of the current version ofCADPIPE ISO and ORTHO, then codes that match the other package arerecommended for use.

Fittings, when placed, will use the toggles for rating, ends and size in asimilar manner to manual valves. If the toggle to include end types is on,the currently specified ends are included in the stored fitting information.

However, they will not be reported in the Bill of Materials report.

Also, as with the manual valves, different drawing blocks are acceptablefor different end types. All blocks must be located in the subdirectory\CPPID\PIDBLKFT. The search order for blocks for a fitting from first tolast is: (Example - Code 8S - with ends BB)

Example:

1. “FT” main type - - end codes FT8S—BB.DW G2. “FT” main type - - - - FT8S——.DWG3. Error condition - Block not found

CADPIPE P&ID Fittings code listing for drawing blocks

FT X X - - Z . DWG

Reserved (always hyphens)

Fitting type:The two lettercode matches the CADPIPEORTHO and ISO main typecodes here applicable aslisted in the following sections.For fittings not defined, thefirst letter of this code must bea”9.”

Fitting block prefix.

End type code examples:--UndefinedAA butt welded each end11 flanged –RF each endBT FPT x MPT(end codes are definedbelow)

Page 152: pidman

P&ID CUSTOMIZING CUSTOM-20

Main fitting types

1A = 90° Elbow (used for socket welded and threaded)1B = 90° LR Elbow (used for butt welded)1C = 90° SR Elbow1D = 90° Reducing Elbow1E = 45° Elbow (used for socket welded and threaded)1F = 45° LR Elbow (used for butt welded)1L = 180° LR Return1M = 180° SR Return1Q = Bends-Custom1R = Miters

The next series of codes, for fittings, begins with a 2:

2F = Reducer, Concentric2G = Reducer, Eccentric2H = Tee2I = Tee, Reducing2J = Cross2K = Cross, Reducing2L = 45° Lateral2M = 45° Lateral, Reducing2N = Wye2P = Cap

The next codes, for small fittings, begin with 4:

4B = Bushing4C = Coupling4I = Insert4P = Plug4U = Union

The ‘olets begin with a 5:

5E = Elbolet5L = Latrolet5N = Nipolet5O = ‘Olet

The “5O” for ‘olet is then qualified with “A” for Weldolet, “B” forThredolet and “D” for Sockolet. These are listed below in the end types.

The next fitting code begins with 6:

6Y = Swage, concentric6Z = Swage, eccentric

The next “numeric” code used is for “miscellaneous” items:

8A = Line spacer/blind8B = Spectacle blind

Page 153: pidman

P&ID CUSTOMIZING CUSTOM-21

8C = Coupling8E = Expansion joint8S = Strainer8T = Steam trap

Miscellaneous defined types include:

G = GasketPP = PipePN = Pipe nipple

You will use the “9" codes if you create any custom fitting blocks.

The END TYPE code character always occupies the seventh and eighthpositions in the code name. There are two characters for the end type sothat we can have valves and fittings with two different end types, such assocket welded on one end and threaded on the other. The codes are asfollows:

- = Unspecified0 = Flat Face1 = Raised Face2 = Ring Type JointA = Weld Neck or Butt WeldB = Threaded or ScrewedC = Slip OnD = Socket WeldedE = Lap Joint (with Stub End)F = BlindP = Plain EndT = MPT (Fittings only)

Example of adding a new fitting type

You want to add expansion joints as a new type of “fitting” item for yourCADPIPE P&ID program. Looking at the list of fittings defined inCADPIPE ORTHO/ISO, you find expansion joints defined with the codeletters “8E.” Therefore you do not need a custom type beginning with “9."Because this is a new main type, you must draw an insertion block for thefitting.

Switch to the directory \CPPID\PIDBLKFT and using AutoCAD only, youshould start a new drawing named “FT8E——”. Each appearance of theblock will be recorded in the BOM and the block will be placed breakingthe flow line, much like an existing fitting.

The drawing should be done on layer “0.” Using AutoCAD’s BASEcommand, set the base point to the center point of the symbol.

Page 154: pidman

P&ID CUSTOMIZING CUSTOM-22

Adding custom fitting to the CPID.MNU

Edit the \CPACADW\CPID.MNU file to add your custom fitting to the Fittingplacement Icon menu. Copy one of the existing lines, using the set ofplacement commands that is most similar to what you require. Forexample:

**cp_fitt[Select Fitting][cp(cphelp,Help]^C^C^P(CP_HELP "FITTING_TEE")[pid(t1006,Tee)]^C^C^P(setq CPidDwgFileName "FT2H----.DWG")(princ);_PLTEEJNT[pid(t1031,Red. tee)]^C^C^P(setq CPidDwgFileName "FT2I----.DWG")(princ);_PLREDTEE[pid(t1056,Reducer)]^C^C^P(setq CPidDwgFileName "FT2F----.DWG")(princ);_PLREDUCE[pid(t1106,Cap)]^C^C^P(setq CPidDwgFileName "SYCAP---.DWG")(princ);_PLFITING[pid(t1081,Pair of flanges)]^C^C^P(setq CPidDwgFileName"SYFLGPR-.DWG")(princ);_PLFLPAIR[pid(t1131,Blind flange)]^C^C^P(setq CPidDwgFileName"SYBLND--.DWG")(princ);_PLBFLANG[FT8E,Expansion joint]^C^C^P(setq CPidDwgFileName "FT8E----.dwg")(princ);_PLTEEJNT

Create a slide of your block and place it in the \CPACADW directory. Moreinformation on slides and slide libraries can be found later in this chapteror in your AutoCAD documentation.

You may want to delete the compiled menu files (.MNC,.MNR.,MNS) so thatthis change takes effect. Your expansion joint will now be included in thefitting placement icon menu.

Edit the FTDESC.DTA file to add the description that will appear in the billof materials.

The FTDESC.DTA file is located In the \CPPID\PIDBLKFT directory.

2F, Reducer2H, Tee2I, Reducing tee8E, Expansion Joint

Page 155: pidman

P&ID CUSTOMIZING CUSTOM-23

Customizing Instrumentation

Instruments defined in CADPIPE come in four categories:

1 Balloons as primary instrument block.

2 Balloons associated with another block, which is a primary instrumentblock.

3 Primary instrument blocks.

4 Instrument blocks without bom information

Balloons as primary instrument blocksThese blocks are placed on the drawing as an instrument, to be included inthe BOM report. Defined block types supplied with CADPIPE are:

BLDIS - discrete instrument (circle)BLCPT - computer function (Hexagon-shaped)BLPLC - Progr. controller function (Diamond-shaped)

Block names are in the format Block type (as above, five characters). Thefirst two characters of the block type must be BL.

The block type is in the INDESC.DTA file in the \CPPID\PIDBLKIN directory.The code “BLRLC” is reserved and cannot be used for the block type.

Balloon drawing files come in sets of eight to support the “BROKEN”toggle (if your text is longer than the balloon diameter can hold, theballoon will “break” to accommodate the text); if you only want “FULL”balloons, simply name your balloon drawing with five letters followed bythree hyphens.

A set of eight balloon drawing files, such as those for the discreteinstrument balloons, will be named as follows (the “T” stands for Top, the“M” for Middle, and the “B” for Bottom):

BLDIS—-BLDIST—BLDIS-M-BLDIS—BBLDISTM-BLDIST-BBLDIS-MBBLDISTMB

Page 156: pidman

P&ID CUSTOMIZING CUSTOM-24

Balloons associated with another blockInstruments such as the control valves and flow meters are placed as ablock and then have the tag information placed within their balloon block.The block name is BLRLC—-.DWG and cannot be given another name. Likethe balloons above, the break codes are included as the last threecharacters of the block name. These blocks are all included in theCADPIPE package.

The BOM will not report on the block contents as no attributes areattached to the balloon block.

Primary instrument blocksThese blocks are placed on the drawing with an associated balloon. Blocknames are in the format: “IN(five-letter code)-.DWG ”

The first two characters of the block must be “IN”.

The next five letters represent the code for the instrument, and are definedin the INTAGS.DTA file. (Avoid using “BL” as the first two letters of thisfive-letter code.)

Instrument blocks without attributesThese include blocks for logic relay symbols, balloon modifiers, valveactuators and instrumentation lines. Balloon modifiers are unique in thatalthough they do not include attributes, they will modify the attributes ofthe instrument/balloon on which they are placed. Logic relay symbolblocks are six characters long, beginning with the characters “LG”. Allother symbol blocks are located within the symbols directory\CPPID\PIDBLKSY.

Balloon modifiers have a block naming convention as follows: “BM”(balloon type three letter code) “0” (modifier code character) (modifierposition code character).

The balloon type three-letter code, such as DIS, PLC, CPT representsthe code for the balloon type on which the modifier will be placed.

The modifier code character represents the modifier type. CADPIPEsupplies the following defined types (as defined in INMODS.DTA):

0 - Shared display1 - Primary loc2 - Auxiliary loc3 - Inacc primary4 - Inacc auxiliary5 - Pilot light

Page 157: pidman

P&ID CUSTOMIZING CUSTOM-25

The modifier position code character is either:

T - for topM - for middleB - for bottom

and represents the block name for each of the positions for which youwould want the block placed onto a balloon.

For example, with the standard defaults supplied with CADPIPE, aballoon is placed with two lines of tag information. Placing a modifiersuch as a “primary loc” symbol (represented as a straight horizontal line)will place the line across the center horizontal position of the balloon.However, if you normally have three lines of tag data, this line would beplaced on top of the middle tag. Using the CADPIPE Options menusquare, you can change the modifier position to either the top or bottompositions with the horizontal line then appearing between the top two taglines or the bottom two tag lines respectively.

Description files for instrumentation

The BOM program will report the instruments based on various data fileslocated in the directory \CPPID\PIDBLKIN. When modifying the files, keepthe format and keep the description information lengths to a minimum.The BOM listings will truncate the description if it is too long.

INDESC.DTAFor each five-letter code, a description of the primary instrument.

INMODS.DTAFor each one-letter code, the modifier description for the instrumentlocation.

INTAGS.DTAWhen you place the tag information with an instrument, the first tag line isinterpreted as an instrument type; for example, “TT” in the first line of atag will be interpreted as a temperature transmitter. You can place all yourusual instrument type codes in this file to have the BOM report them aslisted.

Modifying existing instrumentation

If you want to modify instrumentation, the procedure is identical tomodifying equipment blocks. Change to \CPPID\PIDBLKIN, and edit theappropriate drawing.

Page 158: pidman

P&ID CUSTOMIZING CUSTOM-26

Creating new instrumentation

We will discuss instrumentation placed directly, without sub-menus.

Let us say you have decided to create a gauge, complete with isolationvalve and isolation diaphragm, to be placed as a unit.

The instrumentation block that we will show you how to create will becalled a “gauge assembly, isolated”, and the drawing name will beINPRGI—.DWG.

To create a new block, change to the instrumentation block subdirectory,\CPPID\PIDBLKIN. Then, start AutoCAD.

Open a new drawing, and enter INPRGI—- as your drawing name. Youwould make sure that your name is different from the CADPIPE drawingblocks, unless you specifically want to overwrite one of the CADPIPEinstrumentation blocks.

Use the following settings (which, if you have not changed the AutoCADprototype drawing, should be your defaults):

LAYER = 0ELEVATION = 0THICKNESS = 0LINETYPE = BYLAYERCOLOR = BYLAYER

We also recommend that you set your SNAP and GRID to the following:

SNAP = 0.25"GRID = 0.50"

Now draw the gauge assembly.

Before exiting the drawing, create a slide (INPRGI.SLD) to use in yourmenu. Save the slide to the CADPIPE Support directory (\CPACADW).

END the drawing and now your new block is complete.

Editing the INDESC.DTA fileINDESC.DTA (for INstrument DESCription) is found in your\CPPID\PIDBLKIN subdirectory. As we have mentioned before, the .DTAfiles are used by the bill of materials.

Bring INDESC.DTA into your text editor and you will see the list ofequipment that you place directly (we will only show you the first fewlines of this file here):

Page 159: pidman

P&ID CUSTOMIZING CUSTOM-27

BLCPT, Cmptr funcBLDIS, Discr instrBLPLC, PLCCVAB-, GlobeCVAE-, RotaryCVAF-, Butterfly

The names are five characters in length (they are related to the drawingnames insofar as the drawing names begin with “IN” and have an extracharacter, usually a hyphen, to round them out to eight characters. Themost important characters are the first two of the name:

Now, add (preferably in an alphabetic position)

PRGI-, Gauge (isolated)

Save the file.

Editing the INTAGS.DTA file.As the gauge assembly is primarily for pressure indicators, make sure thatthe following line is included in the INTAGS.DTA file

PI, Press ind.

Save the file.

Menu—CPID.MNU file changes

**cp_cv[Select Control Valve][cp(cphelp,Help]^C^C^P(CP_HELP "CONTROL_VALVES")[pid(t1020,Press red h-wheel)]^C^C^P(setq CPidDwgFileName"INCVPRH-.DWG")(princ);_PLPRCV[pid(t1045,Press red diff.)]^C^C^P(setq CPidDwgFileName"INCVPRD-.DWG")(princ);_PLPRCV[pid(t1070,Press red diff.)]^C^C^P(setq CPidDwgFileName"INCVPRX-.DWG")(princ);_PLPRCV[pid(t1021,General)]^C^C^P(setq CPidDwgFileName "INCVGEN-.DWG")(princ);_PLCV[pid(t1096,Globe)]^C^C^P(setq CPidDwgFileName "INCVAB--.DWG")(princ);_PLCV[pid(t1046,Butterfly)]^C^C^P(setq CPidDwgFileName "INCVAF--.DWG")(princ);_PLCV[pid(t1071,Rotary)]^C^C^P(setq CPidDwgFileName "INCVAE--.DWG")(princ);_PLCV[pid(t1146,Diaphragm)]^C^C^P(setq CPidDwgFileName "INCVAJ--.DWG")(princ);_PLCV[pid(t1121,Angle)]^C^C^P(setq CPidDwgFileName "INCVANR-.DWG")(princ);_PLCV[pid(t1171,3-way)]^C^C^P(setq CPidDwgFileName "INCVAL--.DWG")(princ);_PLCV[pid(t1196,4-way)]^C^C^P(setq CPidDwgFileName "INCVAK--

Page 160: pidman

P&ID CUSTOMIZING CUSTOM-28

.DWG")(princ);_PLCV[inprg1,Gauge-isolated]^C^C^P(setq CpidDwgFil eName “INPRGI--.DWG”)(princ);_PLCV

Creating a New Symbol Block

Creating a new symbol is similar to the above procedures

The symbol blocks are contained in the \CPPID\PIDBLKSY subdirectory.

When editing the CPID.MNU file, copy the placement of a similar item,changing out your block name.

Instrument Signal Lines

Instrument signal lines in CADPIPE P&ID consist of a block that isinserted repeatedly, some of which break a line and others which do notbreak a line. The prompt is directly from the menu.

**cp_inslin[Select Instrument Line][cp(cphelp,Help]^C^C^P(CP_HELP "INSTRUMENT_LINE")[pid(t1013,Replace inst line)]^C^C^P_REPLINSLINE[pid(t1014,Blank inst line)]^C^C^P(setq CPidInstype 0CPidInsblk " ")(princ);_INSLINE[pid(t1038,Pneumatic)]^C^C^P(setq CPidInstype 8 CPidInsblk"SYLINEP-.DWG")(princ);_INSLINE[pid(t1039,Pneumatic binary)]^C^C^P(setq CPidInstype 8CPidInsblk "SYLINEB-.DWG")(princ);_INSLINE[pid(t1063,Electric binary)]^C^C^P(setq CPidInstype 14CPidInsblk "SYLINEEB.DWG")(princ);_INSLINE[pid(t1064,Electric binary)]^C^C^P(setq CPidInstype 8CPidInsblk "SYLINEBE.DWG")(princ);_INSLINE[pid(t1088,Electric)]^C^C^P(setq CPidInstype 4 CPidInsblk "")(princ);_INSLINE[pid(t1089,Electric)]^C^C^P(setq CPidInstype 8 CPidInsblk"SYLINEE2.DWG")(princ);_INSLINE[pid(t1113,Emag-sonic)]^C^C^P(setq CPidInstype 12CPidInsblk "SYLINEES.DWG")(princ);_INSLINE[pid(t1114,Emag-sonic guided)]^C^C^P(setq CPidInstype 9CPidInsblk "SYLINEES.DWG")(princ);_INSLINE[pid(t1138,Internal link)]^C^C^P(setq CPidInstype 12CPidInsblk "SYLINEI-.DWG")(princ);_INSLINE[pid(t1139,Mechanical link)]^C^C^P(setq CPidInstype 12CPidInsblk "SYLINEMC.DWG")(princ);_INSLINE

Page 161: pidman

P&ID CUSTOMIZING CUSTOM-29

[pid(t1163,Hydraulic)]^C^C^P(setq CPidInstype 8 CPidInsblk"SYLINEH-.DWG")(princ);_INSLINE[pid(t1164,Capilary)]^C^C^P(setq CPidInstype 8 CPidInsblk"SYLINEC-.DWG")(princ);_INSLINE[pid(t1188,Instr. supply)]^C^C^P(setq CPidInstype 6CPidInsblk " ")(princ);_INSLINE[pid(t1189,Undefined)]^C^C^P(setq CPidInstype 8 CPidInsblk"SYLINEUD.DWG")(princ);_INSLINE[pidmisc(sylinefo,Fiber optic)]^C^C^P(setq CPidInstype 8CPidInsblk "SYLINEFO.DWG")(princ);_INSLINE

Your instrument line signal blocks are found in the \CPPID\PIDBLKSYsubdirectory; for example, SYLINEEB.

Slide Libraries

Slide libraries are used by CADPIPE to efficiently hold the slides for iconmenus. When customizing CADPIPE you may want to change a slidelibrary (perhaps because you modified a number of items) or create anentirely new slide library—which is probably more efficient thanattempting to modify the CADPIPE slide libraries.

A slide library is created with the AutoCAD utility SLIDELIB which youwill find in your AutoCAD Support directory.Unfortunately, SLIDELIB does not have the capability to add or removesingle slides to/from an existing library; you must create the library fromthe original slides each time. There are other third party utility programsthat do have this feature. For the purpose of these examples, theSLIDELIB program will be used.

If you have created many new slides for icon menus, you may want tocreate your own library.

This procedure is started by creating a temporary directory and copyinginto it all the slides that are to be in the library.

Then you create a file called SLIDE.TXT which contains the name of eachslide file (do not include the .SLD extension).

Pick a name for your slide library (make sure it is not one of CADPIPE’s)and run the SLIDELIB program.

Page 162: pidman

P&ID CUSTOMIZING CUSTOM-30

Copy the library into your CADPIPE Support directory (\CPACADW) andstore the original slides in a safe place so the library can be changed againat a later date. The temporary directory can then be erased and removed.

For example, to create a library called MYLIB with the slides PIC1.SLD,PIC2.SLD, and PIC3.SLD in it you would first copy the slides into anempty directory. Then create a file called slide.txt which contains a list ofall the slides:

PIC1PIC2PIC3

then you would type:

D:\TEMP>D:\ACAD\SUPPORT\SLIDELIB MYLIB < SLIDE.TXT

where D:\ACAD\SUPPORT is the path to your AutoCAD support directory(yours may be on a different drive).

Copy MYLIB.SLB into the CADPIPE Support directory and store the slidesin a safe place so you can modify the new library at a later date. To use thelibrary in an icon menu you type the library name followed by the slidename in brackets.

The following example shows how the MYLIB library could be used:

[mylib(pic1)](print “Place pic 1")[mylib(pic2)](print “Place pic 2")[mylib(pic3)](print “Place pic 3")

CADPIPE P&ID comes with three slide libraries; CP.SLB, PID.SLB, andPIDMISC.SLB.

CP.SLB• Fittings• Symbols• Insulation• Instrument Signal Lines• Balloon Modifiers• Balloons• Control Valves• Actuators

PID.SLB• Equipment

Page 163: pidman

P&ID CUSTOMIZING CUSTOM-31

PIDMISC.SLB• Logic Symbols

To modify a CADPIPE slide library, SLIDELIB requires you to have allof the original slides, replace the slides that need modification, and to thenrebuild the entire library. It is for this reason that the slides used to createeach library are included on the CADPIPE CD in the \UTIL\PID directory.

To modify a library, first create an empty directory and copy the library’sslides from the \UTIL\PID directory on the CADPIPE CD. The slides arecopied automatically by typing the slide library name. For example, if youhave the disk in drive j: and have created a temporary directory TEMP ondrive C, you would copy the CP.SLB slides into it by typing:

C:\TEMP>j:\UTIL\PID\CP<Return>

The slides and SLIDE.TXT file will copy into the temporary directory. Thenreplace the slide(s) you want modified with your own. If you are addingslides make sure to add the slide name to the SLIDE.TXT file. Then runSLIDELIB to recreate the library and copy it to your CADPIPE supportdirectory. Save the slides and text file so you can modify the library at alater date.

The AutoCAD Reference Manual contains additional information aboutslide libraries.

Page 164: pidman

P&ID CUSTOMIZING CUSTOM-32

Equipment

Equipment Wizard

Commands Available : EQPWIZ and GROUPWIZ

If for the new equipment you have to draw the entities, it should be donebefore executing 'EQPWIZ' command.

This wizard updates .MNU, .DTA, .DSC files and creates .DWG, .SLD (fornew equipment in slide menu) and .DTA (for new equipment group to becreated).

After creating new equipment, just run CADPIPE you will find all newequipment in the menu. If they are not there, run ACTCPMNU command.

Step1Select “Add New Equipment” from “Place” — “Equipment” pull-downmenu.

At this point, you can either “Add New Equipment” in the existing iconmenus (Equipment Groups) in “Place” — “Equipment” pull-down menu,or you can create a new Icon menu (Equipment group) in “Place” —“Equipment” pull-down menu to which new equipment will be added.

Pull-Down Menu

Step2Read Block Code (8 Char) and description

Block Code: New Equipment drawing file nameDescription: description of new equipment in “Place” —“Equipment”pull-down menu

Step3BOM/Query description

Step4Allows user to select the drawing for new equipment (Either throughselecting entities or an existing drawing)

Page 165: pidman

P&ID CUSTOMIZING CUSTOM-33

Step5Final WindowShows all the selected values and create new equipment in the pull downmenu.

Icon Menu

Step2You can enter either new group Code (4 Char) and a description in thecase of a new equipment group, or you can select any list item in the caseof an existing equipment group

Group Code: first 4 characters of new Equipment drawing filenameDescription: description of Icon menu in “Place” — “Equipment” pull-down menu

Step3Read Block Code (4 Char) and descriptionBlock Code: last 4 characters of new equipment drawing filenameDescription: description of new equipment in icon menu (Group)

Step4BOM/Query description

Step5Allows you to select the drawing for new equipment (Either throughselecting entities or an existing drawing). The slide user can either use theselected drawing file or can draw new entities (once the view area is setfor slide, run GROUPWIZ command to further process).

Step6Informs user about further processing

Step7Final WindowShows all the selected values and create new equipment in the Icon menu.