You are on page 1of 6

Component Part Numbers

To enable unique part numbers for components by size, or to use part numbers longer than 12 digits, adjust the DataBaseCode value in the
project configuration file to SPEC.
Default value: DBCODES.DAT
Allowed values: NONE, SPEC or codes file name

When set to NONE, the system is turned off.


When set to SPEC, the system refers to code file as set by the specification currently being used. The file can then be set in
each individual specification file. To set the file name, go to the Info dialog within Specification Editor.
When set to a valid and properly formatted code file, CADWorx Plant looks up the corresponding size-code combination from
one data file and places the code in the component as it is drawn and is used by all specifications. The file will need to be
located in the same directory as the specification file.

Once DataBaseCodes has been set to SPEC, create a new database code file for each pipe material class by copying Dbcodes.dat from the
CADWorx install directory (located in <INSTALL DIRECTORY>\Spec) to the project SPEC folder and renaming it for each pipe material class
(i.e. for the CS4 pipe material class, rename the file to CS4.dat). Finally, link each pipe material class specification to its database code file by
entering the name of the database code file in the Database codes edit box at the Spec Information page (for additional information refer to
page 5).

Enter Database code file


name here
(PIPE_CLASS.dat).

11

Component Part Numbers (cont.)


Once the DataBaseCode value has been set to SPEC in the project configuration file, the specifications have been set up, the Database
code files have been set up, and the specifications have pathed to a unique PIPE_CLASS.dat file, the user may begin to create unique part
numbers based on each component size, or description. To start, open the Specification Editor from inside of the CADWorx Plant
Professional AutoCAD program (Plant, Accessory, Specifications, Editor pull down, SPED from the command line). Pick the specification
you want to edit, and CADWorx will open a dialog box similar to below.

Highlight the
component type
here.

Double click here


to open the Edit
Component Dialog
box for this
component
description.

Or click on the
component to
highlight it, and
then click here.

Highlight the component type to edit in the left hand pane, then double click on the component description you want to add the part number to,
or highlight it click edit. This will bring up the Edit Component Dialog box.

12

Component Part Numbers (cont.)


As a default, CADWorx assigns the Program Code as the Index Code for each component. Program codes are based on the component type
and end connection (in the example below for Buttweld caps, the program code is 0012. If the Cap was Socket Weld the program code would
be 0038). A list of Program codes and their corresponding Short Description has been provided in Appendix B at the end of this document.

For Size and


Description
specific
Component
Part Numbers,
or Part
Numbers
greater than 12
digits, click
here.

Description
specific
Component
Part Numbers
less than 12
digits may be
entered here.

If description specific component numbers (same component number is used for all components of a similar project description regardless of
size) are used and the component number consists of 12 digits or less, than the component number may be typed directly in the Index code
edit box. If the part number is different for each component description based on size, or if the component part number is greater than 12
digits long, Part Numbers will have to be entered individually in the Database code file. To do this click on the Edit Codes button.

13

Component Part Numbers (cont.)


Clicking on the Edit Codes button will bring up the Database Codes Editor dialog box. This dialog box lists each part number by size for
each index code. The index code and description will be listed in the left pane, and the individual part numbers by size will be listed in the
right.

Index Code
and description
for component

Part number
size to be
modified.
New Part
Number.
Update button
(after the number
has been
modified).

Similar part
numbers may
be copy/pasted
for each size

To change the part number for a size highlight the size/part number on the right, enter the new part number in the dialog box, then click the
Update button. If the part number is description specific and does not vary by size, once the first part number is entered it may be copied
and the pasted in for each subsequent size.

14

Component Part Numbers (cont.)


In the example on page 12, there are 5 different types of caps available for this specification, 3 are Buttweld (index code 12), 1 is Socket Weld
(index code 38), and one is a threaded plug (index code 56). Of the three Buttweld caps, there are two different descriptions based on wall
thickness. Each description will require a different part number. To differentiate between the two component descriptions and assign different
part numbers the user will need to create a new Index Code and Part number list for one of the descriptions. To add a new index code and
new part numbers for a description, select one of the items (in this example, the third Buttweld cap with the different description), bring up the
Edit Component Dialog box and click the Edit Codes button to bring up the Database Codes Editor Dialog Box.

Enter the
component size
here (if the
component in
not a reducing
component,
use the main
size for both
entries)

New index
code for this
part.
Description for
new Index
Code

Enter
Enterthe
thenew
new
component
component
number
numberhere
here

In the Database Codes Editor Dialog box, in the left pane, click on the Add button to add a new index code. CADWorx will automatically
assign a new index code number. You may enter a new description to help remember what this code is for, and then click the Update
button. Once the new index code has been created, in the right hand pane enter the component size, and new part number, then click the
Add button. You will need to do this for each size.

15

Component Part Numbers (cont.)


Shortcut for Adding New Index Codes and Part Numbers
Index codes and part numbers are stored in the Database code file (PIPE_CLASS.dat in the Spec folder). New Index Codes are appended to
the end of the list. To speed the entry of the part numbers, first go through the entire spec and assign new index codes with descriptions for
each unique part, but do not add the part numbers. This will add each new index code to the Database code file.
New Index code for
Buttweld Cap, standard
wall thickness
Default part number for 1
Buttweld Cap, standard
wall thickness
Once new index codes are created for each part, open the Database code file for the Pipe Material Class in Notepad. Find the index code and
description for the original component type (Buttweld Cap are index code 12), and select all of the size and part number information below it.
Copy this information and paste it under your new index code.
Once all of the base part
numbers by size have been
copied and pasted in the
Database code file, Open the
Specification editor in
CADWorx, find the
components with the new
index numbers, and edit the
part numbers accordingly.

Copy from here

To Here

16

You might also like