powered by CADENAS

Manual

Manual

2.3.1.2.1.1. "Layer" configuration

[Note] Note
  • When exporting to AutoCAD the layer settings of AutoCAD have priority over the layer settings of the configuration file.

  • Layers not existing In AutoCAD are created in AutoCAD according to the defaults of the configuration file.

2.3.1.2.1.1.1. Overview on all specified layers of the configuration file

In the configuration file ifacad.cfg, in the block [CreationOptions], under Layer configuration, you can find the following blocks:

  • Thick solid lines

    ;Thick Solid Lines
    AcadLayerName_00=AM_0
    AcadLayerLineType_00=Continuous
    AcadLayerLineColor_00=7
    AcadLayerLineWeight_00=50
    AcadLayerVisibility_00=1

  • Thin solid lines

    ;Thin Solid Lines
    AcadLayerName_01=AM_2
    AcadLayerLineType_01=Continuous
    AcadLayerLineColor_01=5
    AcadLayerLineWeight_01=50
    AcadLayerVisibility_01=1

  • Hidden lines

    ;Hidden Lines
    AcadLayerName_02=AM_3
    AcadLayerLineType_02=ACAD_ISO02W100
    AcadLayerLineColor_02=6
    AcadLayerLineWeight_02=25
    AcadLayerVisibility_02=1

  • Thin center lines

    ;Thin Center Lines
    AcadLayerName_03=AM_7
    AcadLayerLineType_03=MITTE
    AcadLayerLineColor_03=4
    AcadLayerLineWeight_03=25
    AcadLayerVisibility_03=1

  • Thick center lines

    ;Thick Center Lines
    AcadLayerName_04=AM_10
    AcadLayerLineType_04=MITTE
    AcadLayerLineColor_04=4
    AcadLayerLineWeight_04=50
    AcadLayerVisibility_04=1

  • Visible attributes

    ;Visible Attributes
    AcadLayerName_05=AM_6
    AcadLayerLineType_05=Continuous
    AcadLayerLineColor_05=2
    AcadLayerLineWeight_05=35
    AcadLayerVisibility_05=1

  • Hidden attributes

    ;Hidden Attributes
    AcadLayerName_06=CNS_HIDDEN_ATTRIBUTES
    AcadLayerLineType_06=Continuous
    AcadLayerLineColor_06=2
    AcadLayerLineWeight_06=35
    AcadLayerVisibility_06=0

  • Visible threads

    ;Visible Threads
    AcadLayerName_07=AM_5
    AcadLayerLineType_07=Continuous
    AcadLayerLineColor_07=3
    AcadLayerLineWeight_07=25
    AcadLayerVisibility_07=1

  • Invisible threads

    ;Invisible Threads
    AcadLayerName_08=CNS_HIDDEN_COSMETICS
    AcadLayerLineType_08=Continuous
    AcadLayerLineColor_08=3
    AcadLayerLineWeight_08=25
    AcadLayerVisibility_08=0

  • Hatches

    ;Hatches
    AcadLayerName_09=AM_11
    AcadLayerLineType_09=Continuous
    AcadLayerLineColor_09=3
    AcadLayerLineWeight_09=25
    AcadLayerVisibility_09=1

  • Connection points

    ;Connection Points
    AcadLayerName_10=AM_4
    AcadLayerLineType_10=Continuous
    AcadLayerLineColor_10=3
    AcadLayerLineWeight_10=25
    AcadLayerVisibility_10=0

  • Dimensions

    ;Dimensions
    AcadLayerName_11=AM_5
    AcadLayerLineType_11=Continuous
    AcadLayerLineColor_11=3
    AcadLayerLineWeight_11=25
    AcadLayerVisibility_11=1

2.3.1.2.1.1.2. Structure on a single "Layer" block

All block are build following the same schema:

  • Layer name

    AcadLayerName_<number> = Layer name

  • Line type

    AcadLayerLineType_<number> = Continuous | Dashed | Dash-dot

  • Line color

    AcadLayerLineColor_<number> = 1/2/3/4/5/6/7

    • 1 = Red

    • 2 = Yellow

    • 3 = Green

    • 4 = Cyan

    • 5 = Blue

    • 6 = Magenta

    • 7 = White

  • Line weight

    AcadLayerLineWeight_<number> = Value

  • Layer visibility

    AcadLayerVisibility_<number> = 0/1

    0: invisible

    1: visible

[Note] Note

The numerical values <number> at the single keys doesn't matter. When creating additional blocks, increment the numerical values. The single keys of a block have to have the same numerical value.

If you have created additional layers in AutoCAD, you can enhance the configuration file ifacad.cfg anytime.

[Note] Note

When changing values in the configuration file, orient at the values displayed in AutoCAD.

2.3.1.2.1.1.3. Example

Initial situation

Thick Lines shall be created on the layer AM_0 in red.

"2D view" dialog box: Thick lines are enabled by default.

"2D view" dialog box: Thick lines are enabled by default.

Under Layer Configuration, in the block Thick Solid Lines the value in the key AcadLayerLineColor_00 is set on 1 (=red).[47]

;----- Layer Configuration -----
;Thick Solid Lines
AcadLayerName_00=AM_0
AcadLayerLineType_00=Continuous
AcadLayerLineColor_00=1
AcadLayerLineWeight_00=50
AcadLayerVisibility_00=1
  • 1. Case

    The layer AM_0 is not existing in AutoCAD.

    Mechanical Layer Manager: In AutoCAD, only the layer 0 is available.

    Mechanical Layer Manager: In AutoCAD, only the layer 0 is available.

    Result

    The layer "AM_0" is created in AutoCAD with the defaults from the configuration file.

    The thick lines are depicted in red color in AutoCAD.

  • 2. Case

    The layer AM_0 is available in AutoCAD and is set on white.

    Mechanical Layer Manager: AM_0 = white

    Mechanical Layer Manager: AM_0 = white

    The inserted part is depicted with white "Thick line", because AutoCAD has priority.



  • [47] 1 = Red

  • 2 = Yellow

  • 3 = Green

  • 4 = Cyan

  • 5 = Blue

  • 6 = Magenta

  • 7 = White