CotaDocs

Reference

Modify commands

Commands of the Modify menu: move, copy and transform objects, trim and join them, round their corners and edit 3D solids. Most of them start with Select objects:. You can also select first and then run the command: the selection is used and the prompt is skipped. At Select objects: click objects, drag a window (left to right selects what is fully inside, right to left also what it crosses) or type ALL, L (last) or P (previous); Enter ends the selection. See selecting objects.

ERASE#

Deletes the selected objects.

Aliases E · Menu Edit › Selection

Steps

  1. Select objects: and Enter.

Example: erase the last object drawn.

Command line
ERASE L ""

Notes

  • Delete erases the current selection without the command. UNDO (Ctrl+Z) brings objects back.

MOVE#

Moves objects by a displacement given by two points.

Aliases M · Menu Modify › Modify

Steps

  1. Select objects:
  2. Specify base point: a point that travels with the objects, usually a snap on one of them.
  3. Specify destination: where the base point goes. The preview follows the cursor.

Example: move everything 50 to the right.

Command line
MOVE ALL "" 0,0 @50,0

Notes

  • In 3D views the cursor moves in the plane through the base point, so objects keep their height unless you snap or type a z.
  • Grips do the same: click an object, click a grip and drag.

COPY#

Copies objects. After the first copy it keeps asking for more destinations from the same base point.

Aliases CO, CP · Menu Modify › Modify

Steps

  1. Select objects:
  2. Specify base point:
  3. Specify second point (Esc to end): each point places one copy. Enter or Esc ends.

Example: three copies of a circle every 20 along X.

Command line
CIRCLE 0,0 5
COPY L "" 0,0 @20,0 @40,0 @60,0 ""

ROTATE#

Rotates objects around a base point.

Aliases RO · Menu Modify › Modify

Steps

  1. Select objects:
  2. Specify base point: the center of the rotation.
  3. Specify rotation angle or [Copy/Reference]: positive angles turn counterclockwise. You can also move the cursor and click.

Options

OptionWhat it does
CopyKeeps the original and rotates a copy.
ReferenceSpecify the reference angle and Specify the new angle: turns the objects so that a direction you know (for example an edge at 17°) ends at the angle you want. Both angles can be given with two clicks.

Example: rotate the last object 90° about the origin, keeping the original.

Command line
ROTATE L "" 0,0 C 90

Notes

  • In 3D views the rotation is about the axis that points at you, through the base point.

SCALE#

Enlarges or reduces objects about a base point.

Aliases SC · Menu Modify › Modify

Steps

  1. Select objects:
  2. Specify base point: the point that stays fixed.
  3. Specify scale factor or [Reference]: 2 doubles the size, 0.5 halves it.

Options

OptionWhat it does
ReferenceSpecify reference length and Specify new length: scales so that a known length becomes the one you want, for example to fit an imported drawing to a real dimension.

Example: scale an imported plan so that a wall measured as 3.2 becomes 3000.

Command line
SCALE ALL "" 0,0 R 3.2 3000

MIRROR#

Creates a mirror image of objects about a line.

Aliases MI · Menu Modify › Modify

Steps

  1. Select objects:
  2. Specify first point of mirror line: and Specify second point of mirror line: the axis of symmetry.
  3. Erase source objects? [Yes/No] <N>: No keeps both halves.

Example: complete a symmetric part about the vertical line through x = 50.

Command line
MIRROR ALL "" 50,0 50,10 N

Notes

  • Texts are mirrored as positions only, so they stay readable.

OFFSET#

Creates a parallel copy of a line, arc, circle, polyline or spline at a distance: concentric circles, parallel walls, the inner outline of a part.

Aliases O · Menu Modify › Modify

Steps

  1. Specify offset distance or [Through/Erase/Layer] <1.0000>:
  2. Select object to offset or [Exit/Undo] <Exit>: click the object.
  3. Specify point on side to offset or [Exit/Multiple/Undo] <Exit>: click on the side where the copy goes.
  4. The prompts repeat for the next object; Enter ends.

Options

OptionWhat it does
ThroughInstead of a distance, each copy passes through a point you give.
EraseErase source object after offsetting? [Yes/No]: keeps or removes the original (OFFSETERASE).
LayerEnter layer option for offset objects [Current/Source]: puts the copies on the current layer or on the layer of the original (OFFSETLAYER).
MultipleKeeps offsetting the same object, each copy from the last one.
UndoRemoves the last copy.

Example: a wall 200 thick from its axis drawn as a line.

Command line
LINE 0,0 5000,0 ""
OFFSET 100 2500,0 2500,1 2500,0 2500,-1 ""

Notes

  • When offsetting a polyline outward, the gaps at its corners are closed by extending the segments, by arcs or by straight cuts, according to OFFSETGAPTYPE (0, 1 or 2).

TRIM#

Cuts objects where they cross other objects, removing the part you click.

Aliases TR · Menu Modify › Modify

Steps

  1. Cota prints the settings (Current settings: Projection=UCS, Edge=None) and Select cutting edges ....
  2. Select objects or <select all>: the cutting edges. Enter without selecting uses every object as a cutting edge, which is the usual way.
  3. Select object to trim or shift-select to extend or [Fence/Crossing/Project/Edge/eRase/Undo]: click the part to remove. Hold Shift and click to extend the object instead. Enter ends.

Options

OptionWhat it does
FenceSpecify first fence point: and Specify next fence point or [Undo]:: every object the fence line crosses is trimmed there.
CrossingSpecify first corner: and Specify opposite corner:: trims what the window crosses.
ProjectEnter a projection option [None/Ucs/View]: how objects in different planes meet (PROJMODE).
EdgeEnter an implied edge extension mode [Extend/No extend]: with Extend, an edge that is too short still cuts where its extension would cross (EDGEMODE).
eRaseSelect objects to erase: erases whole objects without leaving the command.
UndoUndoes the last trim.

Example: cut the middle of the horizontal line between two verticals.

Command line
LINE 0,0 100,0 ""
LINE 40,-10 40,10 ""
LINE 60,-10 60,10 ""
TRIM "" 50,0 ""

EXTEND#

Lengthens objects until they meet other objects. It works like TRIM in reverse.

Aliases EX · Menu Modify › Modify

Steps

  1. Select objects or <select all>: the boundary edges, or Enter for all objects.
  2. Select object to extend or shift-select to trim or [Fence/Crossing/Project/Edge/Undo]: click near the end to extend. Hold Shift to trim instead.

Options: Fence, Crossing, Project, Edge and Undo as in TRIM.

Example

Command line
LINE 0,0 50,0 ""
LINE 80,-10 80,10 ""
EXTEND "" 45,0 ""

FILLET#

Rounds the corner between two lines, arcs, circles or polyline segments with an arc of a given radius. With radius 0 it makes a sharp corner, trimming or extending both objects until they meet.

Aliases F · Menu Modify › Modify

Steps

  1. Cota prints the settings: Current settings: Mode = TRIM, Radius = 0.0000.
  2. Select first object or [Undo/Polyline/Radius/Trim/Multiple]: click the first object on the part to keep.
  3. Select second object or shift-select to apply corner or [Radius]: the preview shows the fillet. Hold Shift and click for a sharp corner whatever the radius.

Options

OptionWhat it does
RadiusSpecify fillet radius <0.0000>: (FILLETRAD, remembered).
PolylineSelect 2D polyline or [Radius]: fillets every corner of a polyline at once.
TrimEnter Trim mode option [Trim/No trim]: with No trim the original objects are left whole and only the arc is added.
MultipleKeeps filleting corners until Enter.
UndoUndoes the last fillet in Multiple mode.

Example: round the corner of two lines with radius 5.

Command line
LINE 0,0 50,0 ""
LINE 50,0 50,40 ""
FILLET R 5 25,0 50,20

Notes

CHAMFER#

Bevels the corner between two lines or polyline segments.

Aliases CHA · Menu Modify › Modify

Steps

  1. Cota prints the current distances and method.
  2. Select first line or [Undo/Polyline/Distance/Angle/Trim/mEthod/Multiple]:
  3. Select second line or shift-select to apply corner or [Distance/Angle/Method]:

Options

OptionWhat it does
DistanceSpecify first chamfer distance and Specify second chamfer distance: how much is cut from each line (CHAMFERA, CHAMFERB).
AngleSpecify chamfer length on the first line and Specify chamfer angle from the first line (CHAMFERC, CHAMFERD).
mEthodEnter trim method [Distance/Angle]: which pair of values is used (CHAMMODE).
Polyline, Trim, Multiple, UndoAs in FILLET.

Example: a 5 × 5 chamfer.

Command line
LINE 0,0 50,0 ""
LINE 50,0 50,40 ""
CHAMFER D 5 5 25,0 50,20

Notes

ARRAY#

Copies objects in a grid of rows and columns, or around a center.

Aliases AR · Menu Modify › Modify

Steps

  1. Select objects:
  2. Array type [Rectangular/Polar] <Rectangular>: the default is the type used last.

Rectangular

  1. Enter number of rows and Enter number of columns: the original counts as one of them.
  2. Enter row spacing (Y) and Enter column spacing (X): distances between rows and between columns. Negative values go down or to the left.

Polar

  1. Specify center of array:
  2. Enter number of items (incl. original)
  3. Enter angle to fill (deg): 360 spreads the items around a full circle; a smaller angle spreads them over that arc (positive is counterclockwise).
  4. Rotate items as copied? [Yes/No] <Yes>: Yes turns each copy to face the center, like holes on a flange; No keeps their orientation.

Cota prints how many copies it made.

Example: six holes on a 50 mm bolt circle.

Command line
CIRCLE 25,0 4
ARRAY L "" P 0,0 6 360 Y

Notes

  • The copies are independent objects.

STRETCH#

Moves the vertices that are inside a crossing window and leaves the others in place, so objects crossed by the window stretch: make a part longer, move a wall with the walls that meet it.

Aliases S · Menu Modify › Modify

Steps

  1. Specify first corner of crossing window: and Specify opposite corner: enclose the end you want to move. Cota prints how many objects it found.
  2. Specify base point: and Specify second point: the displacement.

Objects entirely inside the window move; objects that cross it stretch. Cota reports both counts.

Example: make a 100-long rectangle 150 long by stretching its right side.

Command line
PLINE 0,0 100,0 100,40 0,40 C
STRETCH 90,-5 110,45 0,0 @50,0

Notes

  • Circles, ellipses, texts and blocks are not deformed: they move when their center or insertion point is inside the window. A rectangle that is deformed becomes a polyline.

LENGTHEN#

Changes the length of lines, open polylines and arcs, or the included angle of arcs.

Aliases LEN · Menu Modify › Modify

Steps

  1. Select an object to measure or [DElta/Percent/Total/DYnamic] <Total>: click an object to see its current length (and the included angle of an arc), or choose a mode.
  2. Give the value of the mode.
  3. Select an object to change or [Undo]: click near the end to change. The prompt repeats.

Modes

ModeWhat it does
DEltaEnter delta length or [Angle]: adds that length (negative shortens). Angle adds an angle to arcs.
PercentEnter percentage length: 150 makes it half again as long, 50 halves it.
TotalSpecify total length or [Angle]: sets the final length (or the final included angle of an arc).
DYnamicSpecify new end point: drag the end.

The last mode used is remembered (LENGTHENMODE, Total at first).

Example: make a line exactly 120 long.

Command line
LINE 0,0 100,0 ""
LENGTHEN T 120 95,0 ""

BREAK#

Removes the part of an object between two points, or splits it in two.

Aliases BR · Menu Modify › Modify

Steps

  1. Select object: the point you click is the first break point.
  2. Specify second break point or [First point]: the second point. Typing @ (the same point) splits the object without a gap.

Options

OptionWhat it does
First pointSpecify first break point: and Specify second break point: when the point you clicked to select the object is not where the break starts.

Example: open a 20 gap in a line.

Command line
LINE 0,0 100,0 ""
BREAK 40,0 60,0

Notes

  • On circles the part removed goes counterclockwise from the first to the second point.

BREAKATPOINT#

Splits an object in two at a point, without a gap.

Aliases none · Menu Modify › Modify

Steps

  1. Select object:
  2. Specify break point:

Example

Command line
LINE 0,0 100,0 ""
BREAKATPOINT 10,0 50,0

JOIN#

Joins lines, arcs, polylines and splines that touch end to end into a single object; closes an arc into a circle.

Aliases J · Menu Modify › Modify

Steps

  1. Select source object or multiple objects to join at once: select all the pieces and press Enter. If you select only one, Cota asks Select objects to join: for the others.
  2. Cota prints the result, for example 4 objects joined into 1 polyline.

Options

OptionWhat it does
cLoseWhen the source is a single arc or elliptical arc: Select arcs to join to source or [cLose]: with L it becomes a full circle or ellipse.

Example: four lines into one closed polyline.

Command line
LINE 0,0 50,0 ""
LINE 50,0 50,30 ""
LINE 50,30 0,30 ""
LINE 0,30 0,0 ""
JOIN ALL ""

Notes

  • Collinear lines join into one line, even with gaps between them; arcs of the same circle join into the arc that covers them (or a circle). Pieces that touch end to end give a polyline, or a spline when one of them is a spline or an ellipse. Closed curves are not joined.
  • To join pieces with small gaps between them, use PEDIT ▸ Join with a fuzz distance.

ALIGN#

Moves and turns objects so that up to three points on them land on three target points: place a part against another in 3D, or fit a detail onto a sloping line in 2D.

Aliases AL · Menu Modify › 3D operations

Steps

  1. Select objects:
  2. Specify first source point: and Specify first destination point:
  3. Specify second source point: and Specify second destination point:
  4. Specify third source point or <continue>: and its destination, for a 3D alignment; Enter to continue with two pairs.
  5. With two pairs: Scale objects based on alignment points? [Yes/No] <No>: Yes also scales the objects so that the distance between the source points matches the destination points.

Example: lay a horizontal 30-long line onto the line from 0,0 to 30,40 (and scale it to fit).

Command line
LINE 0,0 30,0 ""
ALIGN L "" 0,0 0,0 30,0 30,40 "" Y

Notes

  • Cota prints n object(s) aligned.
  • When the points lie in planes parallel to XY, ALIGN works in that plane (three pairs can mirror a 2D detail). Any other points align in 3D: pairs with the same offset only move the objects, two pairs turn the source direction onto the destination direction, and a third pair turns the objects about it until the third point lands on the side of the third destination.

UNION#

Combines two or more solids into one, or two or more coplanar regions into one region.

Aliases UNI · Menu Modify › Solid editing

Steps

  1. Select objects: at least two solids or regions, then Enter.

Example

Command line
BOX 0,0,0 @40,40 10
CYLINDER 20,20,0 10 30
UNION ALL ""

Notes

  • Object snaps work on the real edges of the result, including the circles where solids meet.
  • Solids are combined with solids and regions with regions, in the same command. Only regions in the same plane are combined; regions in different planes are combined plane by plane.
  • A region result keeps exact arcs: the outline of two overlapping circles has its centers and quadrants.

SUBTRACT#

Removes the volume of some solids from others (holes, pockets, slots), or the area of some regions from others.

Aliases SU · Menu Modify › Solid editing

Steps

  1. Cota prints Select solids, surfaces, and regions to subtract from .. then Select objects: the solids that remain (for example the plate). Enter.
  2. Select solids, surfaces, and regions to subtract .. then Select objects: the solids that cut (for example the cylinder of the hole). Enter.

Example: drill a 20 mm hole through a plate. Selecting by clicking is easiest; in a script, L takes the last object drawn.

Command line
BOX 0,0,0 @100,60 10
CYLINDER 50,30,-1 10 12
SUBTRACT 1,1,10 "" L ""

Notes

  • Several solids to subtract from are first combined into one.
  • Regions work the same way, in their plane: a rectangle region minus a circle region is a region with a hole. A region can then be measured with AREA or turned into a solid with EXTRUDE.
  • When nothing is left, Cota prints Null region created - deleted. and the regions are deleted.

INTERSECT#

Keeps only the volume common to all the selected solids, or the area common to coplanar regions.

Aliases IN · Menu Modify › Solid editing

Steps

  1. Select objects: at least two solids or regions, then Enter.

Example: the lens shared by two spheres.

Command line
SPHERE 0,0,0 20
SPHERE 25,0,0 20
INTERSECT ALL ""

Notes

  • With regions, the result is the area they share, with exact arcs. Regions that do not overlap give Null region created - deleted.

SLICE#

Cuts solids with a plane, keeping one side or both.

Aliases SL · Menu Modify › Solid editing

Steps

  1. Select objects to slice:
  2. Specify start point of slicing plane or [Zaxis/View/XY/YZ/ZX/3points] <3points>: define the plane.
  3. Specify a point on desired side or [keep Both sides] <Both>: click on the side to keep, or Enter to keep both halves as separate solids.

Plane options

OptionWhat it does
3pointsThree points on the plane (the default; the first can be clicked directly at the first prompt).
ZaxisSpecify a point on the section plane: and Specify a point on the Z-axis (normal) of the plane:
ViewThe plane facing you, through a point.
XY / YZ / ZXA plane parallel to that plane of the current UCS, through a point (<0,0,0> by default).

Example: cut a box in half with the YZ plane through x = 50 and keep both halves.

Command line
BOX 0,0,0 @100,60 20
SLICE L "" YZ 50,0,0 ""

FILLETEDGE#

Rounds edges of 3D solids with a radius.

Aliases none · Menu Modify › Solid editing

Steps

  1. Cota prints the current radius (Radius = …).
  2. Select an edge or [Chain/Loop/Radius]: click edges of one solid. Each click adds one; the preview shows the result. Enter ends the selection.
  3. Cota prints how many edges are selected, then Press Enter to accept the fillet or [Radius]:.

Options

OptionWhat it does
RadiusEnter fillet radius, remembered in FILLETRAD.
ChainSelect edge chain: one click takes all the edges that follow on tangentially from it.
LoopSelect edge loop: one click takes the closed loop of edges of a face. Enter an option [Accept/Next] <Accept>: switches to the loop of the other face of that edge.
EdgeBack to selecting single edges.

Notes

  • All the edges of one operation must belong to the same solid. Corners where two filleted edges meet are blended.
  • Between a flat face and a sphere (for example a sphere with a box subtracted), the fillet uses the exact rolling ball between the two surfaces. Two fillets that meet at an inner corner are trimmed along the bisector of the walls between them, so they join in a single crease.
  • The fillet is part of the solid's history: object snaps work on its real edges (CEN on the round edges).

CHAMFEREDGE#

Bevels edges of 3D solids.

Aliases none · Menu Modify › Solid editing

Steps

  1. Cota prints the distances (Distance1 = …, Distance2 = …).
  2. Select an edge or [Loop/Distance]: click the edges. Enter ends.
  3. Press Enter to accept the chamfer or [Distance]:

Options

OptionWhat it does
DistanceSpecify Distance1 and Specify Distance2: the setback on each of the two faces (CHAMFERA, CHAMFERB).
LoopAs in FILLETEDGE.

EXPLODE#

Breaks a compound object into its parts: a block reference into its objects, a polyline or rectangle into lines and arcs, a pattern hatch into lines.

Aliases X · Menu Modify

Steps

  1. Select objects: and Enter.

Example

Command line
RECTANGLE 0,0 @40,20
EXPLODE L ""

Notes

  • Polyline widths are lost when exploding. Objects that cannot be exploded are counted in the message.

PROPERTIES#

Opens or closes the Properties palette. It lists the properties of the selected objects (layer, color, linetype, lineweight and the geometry of each type: coordinates, radius, length, area, text, dimension style…) and lets you edit them. With several objects selected, it shows the values they share.

Aliases PR, CH, MO, DDMODIFY, PROPS, SIDEBAR, HIDESIDEBAR · Menu Modify

Notes

  • The palette can be moved and docked. A double click on an object opens it for that object.
  • Parametric solids (box, cylinder, extrusion…) show their dimensions here; changing them rebuilds the solid and everything made from it.

MATCHPROP#

Copies properties from one object to others, like a format painter.

Aliases MA, PAINTER · Menu Modify

Steps

  1. Select source object:
  2. Cota prints the active settings, then Select destination object(s) or [Settings]: click the objects to change. Enter ends.

Options

OptionWhat it does
SettingsToggle property [Color/Layer/Linetype/LtScale/Lineweight/Text/Dimension/Hatch/Polyline] <done>: turns each kind of property on or off (active ones are shown in capitals).

Example: give the last object the layer and style of the object at 0,0.

Command line
MATCHPROP 0,0 L ""

PEDIT#

Edits polylines: open or close them, join pieces, change widths, edit vertices, and turn them into curves. Lines and arcs can be converted to polylines.

Aliases PE · Menu Modify › Object

Steps

  1. Select polyline or [Multiple]: if the object is a line or an arc, Cota offers to convert it (Do you want to turn it into one? <Y>:).
  2. Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype gen/Reverse/Undo]: (Open instead of Close when it is closed). The prompt repeats until Enter.

Options

OptionWhat it does
Close / OpenAdds or removes the closing segment.
JoinAdds lines, arcs and polylines that touch its ends. With Multiple, Enter fuzz distance or [Jointype] joins pieces whose ends are up to that distance apart, by extending them (Extend), adding a segment (Add) or either (Both).
WidthSpecify new width for all segments.
Edit vertexMoves a marker along the vertices: [Next/Previous/Break/Insert/Move/Regen/Straighten/Tangent/Width/eXit] to move, add or remove vertices, straighten a stretch or set the width of one segment.
FitReplaces the segments by arcs through every vertex.
SplineTurns the polyline into a smooth spline-fit curve (SPLINETYPE, SPLINESEGS).
DecurveRemoves fit and spline curves and arc segments, back to straight segments.
Ltype gen[ON/OFF]: with ON the linetype pattern runs continuously around the vertices.
ReverseReverses the order of the vertices.
UndoUndoes the last PEDIT operation.

Multiple: Select objects: several polylines (and, after Convert Lines, Arcs and Splines to polylines [Yes/No]? <Y>:, lines and arcs) to edit at once, typically to join them.

Example: join four lines into one closed polyline.

Command line
LINE 0,0 50,0 ""
LINE 50,0 50,30 ""
LINE 50,30 0,30 ""
LINE 0,30 0,0 ""
PEDIT M ALL "" Y J 0 ""

Notes

  • PEDITACCEPT 1 converts lines and arcs without asking.

HATCHEDIT#

Edits an existing hatch in the Hatch Editor panel: pattern, scale, angle, island style, origin, associativity, and its boundary.

Aliases HE · Menu Modify › Object

Steps

  1. Select the hatch.

Notes

  • -HATCHEDIT does it from the command line: Enter hatch option [Disassociate/Style/Properties/Origin/recreate Boundary] <eXit>:. recreate Boundary draws a new polyline or region around the hatch.

ATTEDIT#

Edits the values of the attributes of one block reference from the command line.

Aliases ATE, -ATTEDIT · Menu Modify › Object

Steps

  1. Select the block.
  2. Each attribute is asked in turn with its prompt and current value, for example Part number <P-000>:. Enter keeps a value.

EATTEDIT#

Edits the attributes of a block reference in a dialog, with every tag, prompt and value in a table.

Aliases none · Menu Modify › Object

Steps

  1. Select the block (a double click on a block with attributes opens the same dialog).