CotaDocs

Reference

Command-line versions

Commands whose name starts with a dash do the work of a dialog in the command line, without opening it. Use them in scripts, with the agent, or when you prefer the keyboard. Their prompts are those of the dialog's options.

-LAYER#

Manages layers from the command line.

Aliases -LA · Command line only

Steps

  1. Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock]: the prompt repeats until Enter.

Options

OptionWhat it does
?Enter layer name(s) to list <*>: lists layers with their state, color, linetype and lineweight.
MakeCreates a layer and makes it current.
SetMakes an existing layer current.
NewEnter name list for new layer(s): creates layers (names separated by commas).
RenameEnter old layer name: and Enter new layer name:.
ON / OFF, Freeze / Thaw, LOck / UnlockChange the state of the layers named.
ColorNew color [index 1-255, name, #rrggbb or r,g,b]: then the layers.
LtypeEnter a loaded linetype name or [?] <Continuous>: then the layers.
LWeightEnter lineweight (0.0mm - 2.11mm): then the layers.
PlotEnter a plotting preference [Plot/No plot] <Plot>: then the layers.

Example

Command line
-LAYER N Walls,Doors C red Walls M Axes ""

-LINETYPE#

Linetypes from the command line.

Aliases -LT · Command line only

Steps

  1. Enter an option [?/Create/Load/Set]:

Options

OptionWhat it does
?Lists the linetypes.
LoadEnter linetype(s) to load: from the built-in library (for example DASHED,HIDDEN,CENTER).
SetSpecify linetype name or [?] <ByLayer>: the linetype of new objects.
CreateEnter name of linetype to create:, Descriptive text: and the pattern after A,: dash lengths, positive for lines, negative for gaps, 0 for dots.

Example: a custom dash-dot linetype.

Command line
-LINETYPE C DASHDOT2 "Dash dot __ . __" 6,-2,0,-2 ""

-DIMSTYLE#

Dimension styles from the command line.

Aliases none · Command line only

Steps

  1. Enter a dimension style option [ANnotative/Save/Restore/STatus/Variables/Apply/?] <Restore>:

Options

OptionWhat it does
SaveEnter name for new dimension style or [?]: saves the current settings as a style.
RestoreMakes a style current.
STatusLists the values of every dimension variable.
VariablesLists the variables of a style or of a selected dimension.
ApplySelect objects: applies the current settings to existing dimensions.
ANnotativeMakes the style annotative: its dimensions scale with the annotation scale.
?Lists the styles.

-HATCH#

Creates a hatch from the command line, with all its settings as options.

Aliases -H, -BHATCH · Command line only

Steps

  1. Specify internal point or [Properties/Select objects/Undo/Advanced/Origin]: click inside the areas; Enter creates the hatch.

Options

OptionWhat it does
PropertiesEnter a pattern name or [?/Solid/User defined], then the scale and angle (Specify a scale for the pattern, Specify an angle for the pattern); for User defined, the angle and Specify spacing between the lines.
Select objectsHatch the inside of selected closed objects and regions (with their holes).
AdvancedEnter an option [Island detection/Style/Associativity] <exit>: island style [Ignore/Outer/Normal] and associativity.
OriginEnter an option [Use current origin/Set new origin]: where the pattern starts.
UndoRemoves the last area picked.

Example: a 45° ANSI31 hatch at scale 2.

Command line
RECTANGLE 0,0 @100,60
-HATCH P ANSI31 2 45 50,30 ""

-HATCHEDIT#

Edits a hatch from the command line.

Aliases -HE · Command line only

Steps

  1. Select hatch object:
  2. Enter hatch option [Disassociate/Style/Properties/Origin/recreate Boundary] <eXit>:

Options

OptionWhat it does
DisassociateThe hatch stops following its boundary.
StyleEnter hatching style [Ignore/Outer/Normal].
PropertiesPattern, scale and angle, as in -HATCH.
OriginSpecify new origin point:
recreate BoundaryDraws a new closed polyline around the hatch (Enter type of boundary object [Region/Polyline] <Polyline>:), or a region with Region.

-OPEN#

Opens a drawing from the command line.

Aliases none · Command line only

Steps

  1. Open drawing from [Device/List] <List>: the file picker of the device, or the list of the working folder or your account.

-PLOT#

Plots to PDF right away with the last PLOT settings, without the dialog.

Aliases -PRINT · Command line only

-GROUP#

Manages groups from the command line.

Aliases -G · Command line only

Steps

  1. Enter a group option [?/Add/Remove/Explode/REName/Selectable/Create] <Create>:

Options

OptionWhat it does
?Lists the groups with their number of objects.
CreateCreates a group (Enter the name of the group:, then Select objects:).
Add / RemoveAdds objects to a group or removes them.
ExplodeBreaks up a group.
RENameRenames a group.
SelectableWhether picking one object selects the whole group.

-TOOLBAR#

Shows, hides, docks or floats a toolbar from the command line.

Aliases -TO · Command line only

Steps

  1. Enter toolbar name or [ALL]: for example Draw, Modify or Dimension.
  2. Enter an option [Show/Hide/Left/Right/Top/Bottom/Float] <Show>: show or hide it, dock it on an edge, or let it float.

-IMAGE#

The images of the drawing from the command line.

Aliases none · Command line only

Steps

  1. Enter an option [Reload/?]: ? lists the images and whether their files are loaded; Reload asks for the files of the images.