→ Private area
Aplitop · Surveying the Future

tcpMDT

Create layer in CAD

Updated on tcpMDT Leer en español

Creates a new layer in the CAD drawing with the specified name, color and line type. If the layer already exists, it reports this without producing any error or modifying the existing layer.

Prerequisites: There must be an active drawing open in CAD. The MDT plugin does not need to be loaded.

Parameters

Parameter

Type

Required

Default

Description

name

text

Yes

—

Layer name (maximum 255 characters). Using spaces is not recommended.

color

integer (1–255)

No

7 (white)

ACI color of the layer. Common colors: 1=red, 2=yellow, 3=green, 4=cyan, 5=blue, 6=magenta, 7=white.

line_type

text

No

Continuous

Line type. Must be loaded in the drawing: Continuous, DASHED, DOTTED, etc.

on

boolean

No

true

true = layer visible; false = layer turned off when created.

Result

Confirmation that the layer has been created or that it already existed. No existing entities are modified.

Tip: Create the required layers before drawing entities to keep the drawing organised. This is useful as a preliminary step before Draw breakline by code or Generate contour lines.

Example prompts

You can ask the assistant things like:

  • Create layer TOPOGRAFIA in red

  • Add a layer called CURVAS_NIVEL with green color and continuous line type

  • Create layer EJES in blue

  • I need a layer ROTURA with yellow color and dashed line

  • Create layer MDT_PERFIL

Type your question and pick a product to narrow the results. Use ↑ ↓ and Enter to open an article.