How to add your knowledge

Overview of the WD_M block

    Table of contents
    No headers

    A special invisible block must be present on the drawing. The WD_M.dwg is found in the default symbol library. Here is an attribute list of information that is carried on the WD_M block of the drawing, sorted by category:

    Drawing layout

    SHEET or SHEET_

    sheet number for the drawing (%S)

    SHEETDWGNAME

    optional drawing number for the drawing (%D)

    IEC_PROJ

    optional IEC project code (%P)

    IEC_INST

    optional IEC installation code (%I)

    IEC_LOC

    optional IEC location code (%L)

    UNIT_SCL

    units scaling factor (1.0 = inch, 1.0 = full-size mm, 25.4 = inch scaled up to mm)

    FEATURE_SCL

    scaling adjustment (0 = default, 1.25=for 25% bigger)

    Ladder defaults

    RUNGHORV

    ladder orientation: "H" = horizontal rungs (vertical ladders); "V" = vertical rungs (horizontal ladders)

    REFNUMS

    reference numbering system: ladder line reference-based or X-Y grid reference-based

    • 1 = line reference numbers
    • 2 = numbers with ruling
    • 3 = user-defined line reference block
    • 4 = X-Y grid reference mode
    • 5 = X-Zone reference mode

    RUNGDIST

    default rung spacing

    DLADW

    default ladder width

    RUNGINC

    default rung-to-rung line reference increment (default = 1)

    DRWRUNG

    draw ladder rungs: 0 = none, 1 = draw all rungs for new ladder, 2 = skip 1, 3 = skip 2, and so on.

    PH3SPACE

    3-phase bus spacing value

    Component tagging

    TAGMODE

    tag mode value: S = sequential, R = reference-based

    TAG-START

    starting sequential number of the drawing -for sequential tagging only (that is, "1")

    TAG-RSUF

    comma-delimited component tag suffix list -for reference-based tagging only (that is, "A, B, C")

    TAGFMT

    component tag format specifier (default=%F%N)

    Wire number tagging

    WIREMODE

    wire number format: S = sequential, R = reference-based

    WIRE-START

    starting sequential number of the drawing - for sequential tagging only (that is, "100")

    WIRE-RSUF

    wire tag suffix list - for reference-based tagging only (that is, "A,B,C")

    WIREFMT

    wire tag format specifier (default=%N)

    WINC

    wire number increment

    WLEADERS

    wire leaders: 0 = only as required, 1 = always insert wire leaders, 2 = never insert leaders

    GAP_STYLE

    wire gap style: 0 = wire gap, 1 = use loops across gaps, 2 = solid crossing

    (no gap)

    SORTMODE

    retag and wire numbering sort mode

    WNUM_OFFSET

    wire number placement offset distance (GBL_wd_wnum_offset); same as the project-wide +[19] value in the .wdp file. 0.0 or missing= centered on wire (default), >0.0 = offset from top or left end by given distance

    WNUM_FLAGS

    • 1's bit set = (GBL_wd_inline_gap global) auto in line wire gap adjust "ON" (see WNUM_GAP attribute for settings list)
    • 2's +4's bits = 00 default wire number above wire
    • 01 = below wire

    Layer names

    TAG_LAY

    component tag layer

    TAGFIXED_LAY

    fixed component tag layer

    DESC_LAY

    description layer of the parent component

    CDESC_LAY

    description layer of the child component

    TERM_LAY

    component terminal pin numbers layer

    XREF_LAY

    cross-reference layer of the parent component

    CXREF_LAY

    cross-reference layer of the child component

    LOC_LAY

    component location code layer

    POS_LAY

    component position code layer

    MISC_LAY

    miscellaneous layer

    COMP_LAY

    layer for schematic component graphics

    LINK_LAY

    dashed link lines layer

    LOCBOX_LAY

    location box layer

    WIRELAYS

    valid wire layer names where "" = all valid (comma-delimited)

    WIRENO_LAY

    valid wire number

    WIRECOPY_LAY

    extra wire number layer

    WIREFIXED_LAY

    fixed wire layer

    WIREREF_LAY

    terminal and signal arrow wire number layer

    Fan In/Out

    FAN_INOUT_LAYS

    valid layer names for Fan In/Out, single-line wires (comma-delimited)

    FAN_INOUT_STYLE

    Fan In/Out symbol style number

    Cross-reference

    XREFFMT

    cross-reference format specifier (default=%N)

    ALT_XREFFMT

    optional cross-reference format for inter-drawing references (that is, %S-%N)

    XREF_STYLE

    cross-reference style: 0 = text, 1 = graphical, 2 = table

    XREF_FLAGS

    1's bit = include unused contacts, 2's bit (if table)= include parent coil

    XREF_UNUSEDSTYLE

    0 = separate reference, 1 = contact count totals

    XREF_FILLWITH

    cross-reference fill-with text

    XREF_SORT

    0 = sort by line reference, 1 = sort by pin list

    XREF_TXTBTWN

    cross-reference text between references (text style cross-referencing)

    XREF_GRAPHIC

    0 = contact mapping (text), 1 = graphic

    XREF_GRAPHICSTYLE

    0 = JIC, 1 = IEC

    XREF_CONTACTMAP

    contact mapping list

    XREF_TBLSTYLE

    table style name

    XREF_TBLTITLE

    table title

    XREF_TBLINDEX

    table fields to include

    XREF_TBLFLDNAMS

    table available field names

    XREF_TBLCOLJUST

    table fields justification

    Referencing

    DATUMX

    X coordinate origin for X-Y or X-zone

    DATUMY

    Y coordinate origin for X-Y or X-zone

    DISTH

    horizontal interval spacing for X-Y or X-zone

    DISTV

    vertical interval spacing for X-Y referencing

    CHAR_H

    horizontal starting character for X-Y or X-zone

    CHAR_V

    vertical starting character for X-Y referencing

    HOIRZ_FIRST

    X-Y referencing format: 0 = V-H, 1 = H-V

    XY_DELIM

    X-Y delimiter character

    Styles

    PLC_STYLE

    PLC module style code (default = 1)

    ARROW_STYLE

    default signal arrow style number

    Miscellaneous

    WNUM_GAP

    list of 3 in line wire number/label gap settings (see WNUM_FLAGS bit 1 for toggle mode); value saved to GBL_wd_inline_gapas a list. nil or "(num1 num2 num3)"

    MISC_FLAGS

    miscellaneous flags

    • 0 = gap
    • 1 = loop
    • 2 = no gap
    • 1's bit = mm full-size
    • 2's bit = ignore non lay0 lay vector
    • 4's bit = use plc wire numbers
    • 8's bit = insert new ladders without references
    • 16's bit = search for PLC address on component insert
    • 32+64 bit =
      • 10 = none
      • 01 = angle 1
      • 11 = angle 2
      • 00 = dot

     

    Procedures

    Change the WD_M block

    You can change the WD_M block so that your settings are always the default.

    1. Open an existing AutoCAD Electrical drawing and set the properties and layer names.
    2. Save the drawing.
    3. Click Project tabOther Tools panelUpdate Symbol Library WD_M Block.
    4. Select the WD_M - schematic settings to modify and click OK.

      The settings and layer names are collected from the drawing and appropriate adjustments are made to the WD_M block.

    5. Save the modified WD_M drawing.
      Note

      Update the version of your template drawing of the inserted WD_M block if a template drawing exists for your project.

    6. Open your template file.
    7. Click Project tabOther Tools panelUpdate to New WD_M Block, Values, Layers.

      The new version of the WD_M block replaces your existing one.

       

    Add missing attributes to the WD_M block

    As AutoCAD Electrical adds new features, new attributes are sometimes added to the default WD_M block. However, if your drawing was created with an older WD_M block it may not carry these attributes. AutoCAD Electrical provides an easy way to swap older WD_M blocks with the new WD_M block.

    1. Select Project tab Other Tools panel. Select one of the following options:

      Update to New WD_M Block, Values, Layers

      Replaces the schematic wd_m.dwg block in the current drawing with a newer copy, and converts to the newer configuration values and layers.

      Update to New WD_M Block, No Changes

      Replaces the schematic wd_m.dwg block in the current drawing with a newer copy, but keeps existing configuration values and layer names.

      Update to New WD_PNLM Block, Values, Layers

      Replaces the panel wd_pnlm.dwg block in the current drawing with a newer copy, and converts to the newer configuration values and layers.

      Update to New WD_PNLM Block, No Changes

      Replaces the panel wd_pnlm.dwg block in the current drawing with a newer copy, but keeps existing configuration values and layer names.

    2. Select the WD_M drawing to use as the new WD_M block in the drawing.
    3. Click Open.

    References

    Copy active drawing settings to

    Writes the attribute settings for the wd_m block in the current drawing to the wd_m.dwg drawing file in the symbol library.

     Ribbon: Project tabOther Tools panelUpdate Symbol Library WD_M Block.
     Menu: ProjectsSwap WD_M or WD_PNLM Blocks Update Symbol Library WD_M Block
     Command entry: AECOPY2SYMLIB

    The WD_M and WD_PNLM blocks carry attribute values that define the default AutoCAD Electrical settings.

    WD_M

    Defines the default schematic settings.

    WD_PNLM

    Defines the default panel settings.

    Alert

    A drawing needs an invisible block, WD_M.dwg, on the drawing to be compatible with AutoCAD Electrical.

    The WD_M.dwg block is located in the default symbol library. This block carries about 50 attributes that define settings, layer names, and other default settings that are referenced by AutoCAD Electrical commands.

    Note

    If the drawing includes panel layout symbols, the block WD_PNLM.dwg is also needed. The WD_M and WD_PNLM blocks can be present on the same drawing.

    To insert a WD_M or WD_PNLM block

    • If the WD_M block is not present in a new or existing drawing, click OK to insert the block at location 0,0.
    • If the WD_PNLM block is not present in a new or existing drawing when using panel layout symbols, click OK to insert the block.
    • To force the drawing settings to match the project settings, select the check box.