How to add your knowledge

Catalog database

    Sample catalog information is furnished with the default AutoCAD Electrical installation. The information is held in tables in a Microsoft Access database file (.mdb) which are populated with sample vendor data. Expand and modify these tables to meet your specific BOM reporting needs. Use tools provided with AutoCAD Electrical, or use a database program that can read/write the Access file format.

    The .mdb file is a single file that is named <project>_cat.mdb or default_cat.mdb. If the project-specific.mdb file is used, it must be in the same subdirectory as the <project>.wdp file is located. Here is the AutoCAD Electrical search sequence:

    • First choice -- <project>_cat.mdb (in project's subdirectory of the project)
    • Second choice -- default_cat.mdb (in subdirectory of the project)
    • Third choice -- default_cat.mdb (in user subdirectory)
    • Fourth choice -- default_cat.mdb (in subdirectory of the catalog)

    Catalog information can be carried on parent or stand-alone components that have MANUFACTURER, CATALOG, and optional ASSEMBLYCODE attributes. You can assign catalog information to the attributes of a component at component insertion time or any time later during an edit of the component.

    Catalog table naming conventions

    Each primary or stand-alone component type can have an associated table in your Access mdb file. This approach is taken for both performance reasons and to exclude invalid choices. For example, you cannot assign a blue press-test pilot part number to a standard red pilot light symbol. There can be multiple catalog tables for the same component family. Alternately, all master test and all neon pilot lights (of all colors) can be combined into a single catalog table named LT. AutoCAD Electrical determines the default catalog lookup table name based on the WDBLKNAM attribute.

    The following example references a custom master control relay with block name “HCR1_MC_PWR.”

    If your symbol does not carry the WDBLKNAM attribute:

    1. The symbol is checked for the WDBLKNAM attribute (or Xdata). It is not found.
    2. The block name is read (“HCR1_MC_PWR”) minus its first character (the orientation character “H” or “V”). The default_cat.mdb file is searched for a table named “CR1_MC_PWR.”
    3. If this table exists, it is used. If this table does not exist, and the block name is eight characters or more, AutoCAD Electrical starts removing characters from the block name, looking for a table name match with each character removed. This process continues until only seven characters remain. Table names that it would look for in sequence would be “CR1_MC_PW”, “CR1_MC_P”, “CR1_MC_.”
    4. If there is not a match on the last table name, AutoCAD Electrical checks for the family-specific table (CR). It is the second and third character of the block name.
    5. If this table exists, it is used. If it does not exist, a MISC_CAT table is looked for if the active properties of the project are set up to use this catch-all table.
    6. If all these items fail, AutoCAD Electrical stops looking (if running a report) or prompts you to add a table to the default_cat.mdb file (if you are inserting or editing a component).

    If your symbol includes the invisible WDBLKNAM attribute with a value of “HCRM”:

    1. The symbol is checked for the WDBLKNAM attribute (or Xdata). It is found. The attribute value of “HCRM” is used instead of the block name and proceeds to step 2.
    2. The leading “H” or “V” character is removed. The default_cat.mdb file searches for a table named “CRM.”
    3. If this table exists, it is used. If the table does not exist, and the attribute value is eight characters or more, AutoCAD Electrical starts removing characters from the attribute value, looking for a table name match with each character removed. This process continues until only seven characters remain. In this case, characters are not removed.
    4. If there is not a match on the last table name, AutoCAD Electrical checks for a family-specific table (CR). It is the second and third character of the original WDBLKNAM value (HCRM).
    5. If this table exists, it is used. If it does not exist, a MISC_CAT table is looked for if the properties of the active project are set up to use this catch-all table.
    6. If all these items fail, AutoCAD Electrical stops looking (if running a report) or prompts you to add a table to the default_cat.mdb file (if you are inserting or editing a component).

    If you want your custom symbol to go to table “CRM” in the catalog database file instead of the existing table “CR” you must:

    1. Add the WDBLKNAM attribute to your master control relay coil library symbols with a value of “HCRM” or “VCRM” (the orientation does not matter).

      Manually add the CRM table in your catalog lookup database file.

    2. Click Project tabOther Tools panelAdd Table to Catalog Database.
    Note

    AutoCAD Electrical always goes to the fixed table names for PLC I/O modules (PLCIO), terminals (TRMS) and cable markers (W0). Panel layout symbols must always use the WDBLKNAM attribute or Xdata without the leading H or V character.

    Family tables in the default_cat.mdb

    The list of tables available in the default_cat.mdb is shown in the following table. All tables are family-specific and one table is created for each family.

    Family Code/Table Name

    Description

    _FAMILY_DESCRIPTION

    Table used by Symbol Builder to map the attribute template type to a symbol type description. The description is displayed in the Type list on the Select Symbol / Objects dialog box. See Create a Symbol Builder attribute template.

    _LISTBOX_DEF

    Allows starting MFG/TYPE/RATING combinations to be predefined for each catalog lookup table, when AutoCAD Electrical would normally default to the values given in the first record of the selected catalog lookup table. See Overview of the LISTBOX_DEF catalog database table.

    _PINLIST

    Default pin list data table. AutoCAD Electrical also contains manufacturer-specific pin list tables that have the same format as the _PINLIST table. The naming convention for manufacturer-specific tables is: _PINLIST_AB or _PINLIST_AROMAT. AutoCAD Electrical first searches manufacturer-specific tables; if not found, it then searches the default _PINLIST table. See Use pin lists.

    _TERMPROPS

    Default terminal properties data table. AutoCAD Electrical also contains manufacturer-specific terminal properties tables that have the same format as the _TERMPROPS table. The naming convention for manufacturer-specific tables is: _TERMPROPS_AB or _TERMPROPS_AROMAT. AutoCAD Electrical first searches manufacturer-specific tables; if not found, it then searches the default _TERMPROPS table. See Edit terminal properties database.

    _W0_CBLWIRES

    Cable conductors. See Edit the cable conductor database.

    _XREF_GRAPHICS

    Table cross-reference style symbol mapping table. Maps a contact block name to a graphic drawing name. This graphic drawing is inserted as a block in the TYPE column of the cross-reference table for the contact. See Edit cross-reference symbol mapping table.

    AM

    Ammeters

    AN

    Buzzers, horns, bells

    CB

    Circuit breakers

    C0

    Connectors/pins

    CR

    Control relays

    DI

    Din Rail

    DN

    Device networks

    DO

    Diodes

    DR

    Drives

    DS

    Disconnect switches

    EN

    Enclosures/hardware

    FM

    Frequency meters

    FS

    Flow sensors

    FT

    Foot switches

    FU

    Fuses

    LR

    Latching relays

    LS

    Limit switches

    LT

    Lights, pilot lights

    MISC

    Miscellaneous

    MO

    Motors

    MS

    Motor starters/contactors

    NP

    Nameplates

    OL

    Overloads

    PB

    Push buttons

    PE

    Photo switches

    PLCIO

    Programmable logic controllers

    PM

    Power meters

    PNEU-ACT

    Actuators

    PNEU-ALU

    Lubricators

    PNEU-CYL

    Cylinders

    PNEU-FLC

    Flow Control

    PNEU-FLT

    Filters

    PNEU-MET

    Pressure Gauges

    PNEU-MFL

    Silencers

    PNEU-MNF

    Manifolds

    PNEU-MOT

    Motors

    PNEU-NOZ

    Nozzles

    PNEU-OPR

    Push buttons

    PNEU-PMP

    Pumps

    PNEU-TNK

    Reservoirs

    PNEU-VAC

    Suction

    PNEU-VLV

    Valves

    PS

    Pressure switches

    PW

    Power supplies

    PX

    Proximity switches

    RE

    Resistors

    SS

    Selector switches

    SU

    Surge suppressors

    SW

    Toggle switches

    TD

    Timer relays

    TRMS

    Terminal blocks

    TS

    Temperature switches

    VM

    Volt meters

    WO

    Cables, multi-conductor cables

    WW

    Wire ways

    XF

    Transformers

     

    Procedures

    Move the catalog database file

    In Project Manager, right-click the project name and select Settings to find the location of the default_cat.mdb file. If you want to move this file to another directory, such as a shared network drive, then edit a small text file to tell AutoCAD Electrical where to look.

    1. Move the file to your new drive:directory.
    2. Exit AutoCAD. Edit the .env file with a text editor like WordPad or Notepad. Use the Settings option on the Project Manager to find the full path.
    3. Find the WD_CAT entry. Change the line to point to the new location for the catalog file. For example, you move them to n:/electric/catalogs/ on your network drive. Change this line to: WD_CAT,n:/electric/catalogs/,AutoCAD Electrical catalog file.
    4. Save and exit the file.
    Note

    AutoCAD Electrical looks for a project-specific MDB file first, called <project>_cat.mdb, in the subdirectory of the project.

     

    Define a secondary catalog lookup file for a project

    You can use two catalog database files when working with an AutoCAD Electrical project: the first file can contain the catalog information that you commonly use, and the second file can contain the full list of catalog content available with AutoCAD Electrical.

    1. Copy the default_cat.mdb file and save it with a different name (such as full_catalog.mdb).
    2. Modify the original default_cat.mdb file to contain only the catalog information that you commonly use. Save this file as default_cat.mdb.
    3. In AutoCAD Electrical, right-click on the project name in the Project Manager and select Properties.
    4. On the Project Properties Project Settings dialog box, Catalog Lookup File Preference section, click Other File.
    5. On the Catalog Lookup File dialog box, select Optional: Define a secondary catalog lookup file for this project.
    6. Browse to and select the file you created in step 1 (full_catalog.mdb) and click Open.

      For each project you set up this file for, you only see the content from your default_cat.mdb file in the Parts Catalog dialog box. For catalog information that is in the full catalog database file (full_catalog.mdb), click Secondary File on the Database drop-down on the Parts Catalog dialog box. The Parts Catalog dialog box temporarily switches to the secondary catalog lookup file.