Editing as AutoCAD does

How a drawing is changed in the presenter: every change is one edit and one undo step, a command asks its prompts on a command line with AutoCAD's names and aliases, a click can snap to a point of the drawing, a grip drags a point, Properties sets a value in place, and a layer is switched, frozen or locked. All of it works on a CadDocument with no window, and every example below was run on the plate of Opening, drawing and picking: four lines, a circle and a TEXT.

One edit, one undo step

Nothing changes the drawing but CadDocument.ApplyEdit. It is given a name for the step, the changes it plans to existing entities, and the action that writes them:

string handle = circle.Handle;
CadEditResult result = document.ApplyEdit("ERASE",
    new[] { new CadEditRecord(CadEditRecordKind.Erased, handle) },
    scope => scope.Document.FindEntity(handle).Erase());
// result: Done (1); document.EntityCount 5; document.NextUndo 'ERASE (1)'
Step What happens
the gate the document's ICadEditGate is asked about each planned change of an existing entity; one refusal refuses the whole edit, with nothing written
the owners a change to an entity whose owner takes its own edits is handed to the owner first (see Owners)
the action it writes the change through the entity's own members (TransformBy, its setters, Erase) and adds entities with scope.Append(space, entity); if it throws, the drawing is read back as it stood, and the result says Failed
the record the step is kept for undo, the display lists and pick indexes of the spaces it touched are dropped, and Changed is raised

A CadEditResult says Succeeded, Refused (before anything was written) or neither (failed), with the Message the command line shows and the CadEditRecords of what was done. A record has a kind (Added, Erased, Transformed, PropertyChanged, Reshaped, TableChanged, SettingChanged), a handle, and for a property its label and its old and new values as text.

A command that makes several edits is one step: BeginGroup(name) opens a group, EndGroup() closes it and the outermost one makes its edits a single step, and CancelGroup() takes them all back. While a group is open CanUndo is false and SaveAs throws "A command is running: end it before saving." SavingInGroup(save) is the way to save from inside a group: it closes the group for save and opens it again, and what the group does after the save is one undo step with what it did before, so that a command of two circles, a save and a third is one Undo(); a group cancelled after the save takes back only the third circle.

Undo and redo

document.Undo();                 // the drawing as it stood before the last step
document.Redo();
document.CanUndo; document.NextUndo; document.CanRedo; document.NextRedo;
document.IsModified;             // false again once every step is undone, or the drawing saved

The library writes a change into the drawing at once and has no undo of its own, and a record written anew is written in the library's style, not in the bytes the file had. So an edit is not undone by setting its old values back. The document keeps the drawing as it stood before the first edit and after every step, each saved to bytes and compressed (a drawing of 10 MB takes about a tenth of that), and undoing a step reads the drawing it stood at before. Undoing every step gives the drawing back byte for byte: the plate, saved after six edits and every one undone, is the 5 127 bytes it was opened as.

On a large drawing most of an undo was reading those bytes back and meeting every entity of the drawing read for the first time, when the display is patched. So after every step, undo and redo, a worker thread reads ahead the drawings the next undo and the next redo go to, from the same bytes, and makes their index of handles; the undo then takes the drawing ready and draws again only the entities its step touched. On a drawing of 1 000 000 entities the undo of a one-line MOVE and its display take about 0.4 s where they took about 2.2 s, once the drawing has been read ahead (about 2 s after the step). An undo asked sooner waits for a reading already begun, or reads the bytes itself as before, and takes about 1.5 s where it took 2.6 s. The drawing it gives is the one read from the bytes before, byte for byte. Up to three such drawings are held besides the one shown, each about 520 MB at that size once read and indexed.

The drawing an undo leaves is the one a redo goes back to, and the drawing a redo leaves the one the next undo goes back to. Where it was itself read from the bytes of its step and nothing has written into it since, it is not read again: the worker saves it, sets it against the bytes, and takes it as it is where the two are the same byte for byte. So undo after undo reads one drawing ahead, not two: at 1 000 000 entities a run of undos and redos allocates about 35 GB where it allocated 47, and a redo 3 s after an undo takes about 0.3 s under .NET Framework 4.8 where its drawing was not yet read and it took 1.6 to 1.9 s. The drawings held when nothing is being read are as before, one each side of the one shown. An edit stops the readings still running and they read again after it: an ERASE of 10 000 objects of a drawing of 100 000 straight after an undo takes about 185 ms under .NET 10 where it took 220 (110 once the readings are done). The Block Editor's Save Block and its changes discarded on closing read ahead the drawing the next undo goes to, as any step does; the first undo after them, with finding an entity, takes about 1 ms where it read the drawing then and took 300.

After an undo or a redo Database is a DxfDatabase read from those bytes: a new one, or the one an undo or a redo left where it goes back to it unchanged. The circle that FindEntity(handle) gave before the undo is not the object it gives after, so keep handles, not entities, across a step. The CadSpace objects stay and are pointed at the new drawing.

Save() writes to the file the drawing was opened from, SaveAs(path) to another, which it is then known by. A drawing opened from a stream or given in memory has no file: HasFile is false and Save() throws until SaveAs gives it one.

Snapshot and reset of a drawing in memory

CadSnapshot start = document.TakeSnapshot();   // the drawing as it stands; a few ms the first time, then nothing
// ... an episode of edits, as many as wanted ...
document.Reset(start);                         // the drawing as it was, to the byte; as often as wanted

For a program that runs an episode of edits on a drawing many times from the same start (training a model, trying layouts) and cannot read the file again each time. The document keeps the drawing at every step already, so a snapshot is a point of the undo list (the number of steps behind it, the last of them and the drawing kept there), and a reset is one jump of the list back to it: what Undo does for one step, done once over all the steps since. The drawing is read from the kept bytes once, not once per step (DxfDatabase.Open of the bytes is lazy: 2 ms for 10 000 entities), only the entities the steps touched are drawn again, as after an undo, and the display lists, the cached CadSpatialIndex and the pictures of dimensions come out as a REGEN would make them. The steps made since are then forgotten, as a new edit after an undo forgets the steps undone, so a thousand episodes hold no more steps than one, and the steps before the snapshot stay undoable as long as the undo list holds the point of the snapshot. Where it does not (a snapshot A, edits, a snapshot B, a reset to A, then a reset to B: the first reset cut B's point off the list) the reset reads the drawing back from the snapshot's bytes and the undo list starts afresh, so that what the user did before is no longer undoable. The reset after the first is faster still: it reads ahead, on a worker thread, the drawing the next reset goes to while the episode runs, with its index of handles, as an undo reads its neighbours ahead; unlike those readings an edit does not stop it.

What Time (10 000 entities, 100 edits since the snapshot)
open the DXF and draw model space 20 to 40 ms; a DWG of the same objects 17 to 27 ms; 80 ms with SHX text in the test drawing
Reset, the next one's drawing read ahead 0.2 ms, then 1 to 2 ms to draw what the episode touched
Reset, the first to a snapshot 4 to 6 ms, then 5 to 10 ms to draw what the episode touched
Reset from the snapshot's own bytes (below) 3 to 6 ms, then every display list made again: 10 to 40 ms

Where the list no longer holds the point (the drawing was undone below it and edited again, a Block Editor session joined the steps, or a reset to an earlier snapshot cut the list), Reset reads the drawing back from the bytes the snapshot keeps, as a failed edit is taken back (CadChangeKind.Rollback): the drawing is as exact, every display list is drawn again, and the undo list starts afresh with the drawing, nothing left to undo and IsModified true. The views of the spaces and the user coordinate system, which the steps put back, are not restored on that path. A reset to a point below where the list stands goes forward the same way. Changed is raised as for an undo, the step named RESET, with the handles the steps since touched.

TakeSnapshot and Reset throw InvalidOperationException while a command's group of edits is open (IsInGroup) and while the Block Editor or a reference edit is open, and Reset an ArgumentException for a snapshot of another document. A change written into Database directly, not through ApplyEdit, after the first step is not in a snapshot, as it is not in an undo. In the app, the Remote request reset is refused while a command runs in the drawing, as a commit is; the reset is not one more undo step, as that would keep every episode's steps for ever. Python's drawing.snapshot() and drawing.reset() call these.

The command line

A CadCommandSession is the command line of one document. It knows no window: the canvas and the line the user types on call Feed(point), Feed(text), FeedSelection(handles), Enter() and Escape(), and a test calls them the same way.

var session = new CadCommandSession(document);
session.Feed("L");                  // an alias of LINE
session.Feed("0,100");
session.Feed("@50<0");
session.Feed("@0,20");
session.Enter();
// session.History:
//   Command: L
//   LINE
//   Specify first point: 0,100
//   Specify next point or [Undo]: @50<0
//   Specify next point or [Undo]: @0,20
//   Specify next point or [Close/Undo]:
// document.EntityCount 8; document.NextUndo 'LINE (2)', the two segments one step
The user Does
types a name or an alias and Enter starts the command, with or without the _ and . AutoCAD takes off the front (_REGEN, .REGEN, _.REGEN, _U and .U are REGEN and U); Enter alone runs the last one again; a name that is none gives Unknown command "FOO". Press F1 for help., the name given without those prefixes (_.FOO too)
answers a point as x,y, @dx,dy, @distance<angle or distance<angle; a number alone at a point prompt is a distance along the rubber band, towards the cursor, and at a point SETVAR asks, which has no band, a distance from the last point towards the cursor, as AutoCAD 2021 takes GRIDUNIT 5
answers a distance or an angle with no base point by two points a point typed or picked asks Specify second point:, its rubber band from the first, and the distance between them, or the direction from the first to the second, is the answer, as AutoCAD 2021 takes them: POLARDIST 0,0 then 3,4 is 5, SNAPANG 0,0 then 1,1 is 45. @dx,dy at the second is measured from the first, the last point is left as it was, the prompt's keywords and point modifiers are taken there, Enter is the prompt's Enter, and text gets the prompt's refusal ("Requires numeric distance or two points.", "Requires valid numeric angle or two points.") and is asked again
answers with a keyword by its capital letters, as U for Undo in [Close/Undo]
selects first, then starts a command MOVE, COPY, ERASE, ROTATE, SCALE, MIRROR, MIRROR3D and EXPLODE take the selection made before them, and ask "Select objects:" where there is none
answers "Select objects:" by a click, a window, a crossing, a lasso, or one of AutoCAD 2021's options typed (below); Shift held takes out what a click, a box or a lasso picks
presses Esc ends the command; what a LINE drew stays, as in AutoCAD, and what a MOVE had not yet done is not done

A command that fails part way has its edits taken back. Its outcome is session.LastOutcome: Completed, Cancelled or Failed. A selection of entities on a locked layer is taken without them, and the line says "1 was on a locked layer." right after the "N found" of the pick or window that took them (2 found, 1 was on a locked layer., then the next Select objects:), as AutoCAD 2021 words it.

A prompt can carry a preview, session.Prompt.Preview, which a window draws under the cursor as AutoCAD 2021 drags the object about to be made. Items(cursor) gives the display items of what a point picked there would make, made by the command's own code; Moves(cursor) gives the transformations the copies of Handles are drawn under, as ROTATE by a Reference or an array's copies; ShowsBand says whether the rubber band is drawn with it. RECTANG asking its other corner, first corner (0, 0), previews at (30, 20) one closed polyline through (0, 0), (30, 0), (30, 20) and (0, 20), the rectangle a pick there adds.

At a prompt for one object, Items(cursor) is what picking the object under the cursor would give, as FILLET's second object gives both objects trimmed and the arc. The objects a command changes are previewed as they would be, copies of them made by the command's own code; nothing is written to the drawing or to the history while a preview is made. Where Fades is true the items are pieces the pick would take out rather than objects it makes, as TRIM and BREAK give them: a line from (-50, 0) to (100, 0) crossed at the origin, hovered at (-25, 0), previews the 50 from (-50, 0) to (0, 0), drawn faded. A window sets Shift while Shift is held, and the answer previewed carries it: TRIM then previews what EXTEND would do to the object, not faded, and EXTEND the piece TRIM would take out. At a prompt for a line of text a window sets Typed to the text typed so far, and Items is that text as the command would make it, wherever the cursor is: TEXT at "Enter text" previews its line. A prompt for a keyword can carry a preview too, of what Enter makes, as -ARRAY's "Rotate arrayed objects?" does. The canvas draws the words in a preview (a dimension's measured value, as DIMLINEAR's "500") as the letters of their font, filled in the colour of their run, as the finished object draws them, and by their box alone only where QTEXTMODE is 1.

"Select objects:" takes the options of AutoCAD 2021, each by its capital letters:

Option Takes
W, C a window or a crossing by two corners (Specify first corner:, Specify opposite corner:), whichever way the box is drawn
BOX two corners, a window drawn left to right and a crossing right to left
F what a fence crosses, by points (Specify first fence point or pick/drag cursor:, Specify next fence point or [Undo]:) until Enter
WP, CP what lies inside a polygon or what it touches, by points (First polygon point or pick/drag cursor:, Specify endpoint of line or [Undo]:) until Enter
ALL, L, P every object of the space, the newest first, as AutoCAD 2021 counts them (a command that copies them, or an AutoLISP routine that walks the set, meets the last object made first); the last object made that the space shows; the objects the command before took
G the members of a group by name (Enter group name:)
R, A from R on, what is picked is taken out (Remove objects:) until A
U takes back the last change of the selection
M points picked until Enter, then the object at each, two picks at one crossing taking both lines
SI ends the selection with the first objects taken
AU a click on an object picks it, on nothing starts a box, as without it

The line counts as AutoCAD's: 1 found, 2 found (1 duplicate), 3 total, 1 found, 1 removed, 2 total. Anything else is *Invalid selection* with Expects a point or and the options. Window, Crossing, BOX, Fence, WPolygon and CPolygon draw their band on the canvas as their points are given (CadPrompt.Band), and PickIndex answers them: Fence(points), WindowPolygon(ring) and CrossingPolygon(ring) over 100 000 lines each take under 70 milliseconds.

A window, a crossing or a polygon typed or picked at Select objects: takes its objects the newest first, as AutoCAD 2021 holds the set (five lines made at y 0, 10, 20, 30 and 40 come as 40, 30, 20, 10, 0), so that Previous, (ssget "P") and a routine that walks the set of (ssget) meet them in that order, and -BLOCK builds its block from them in it. Where the session has a view (the window has, a script or a test does not), Window, Crossing and WPolygon take only the objects the view shows, as AutoCAD 2021's console did with a view zoomed on three of five lines (the lines at 10, 20 and 30 and not those at 0 and 40; a line across the edge counts, one wholly outside does not); CPolygon and Fence are not held to the view.

SELECT asks Select objects: with every one of these ways, and Last, Previous, Remove and Add, until Enter, and keeps what it took as the Previous set ((ssget "_P"), or P at the next command's prompt); an Enter with nothing picked leaves the Previous set of the command before. Typed, it leaves the objects it took selected, as the implied set the next command takes at once, and the next typed SELECT takes them with 1 found and no prompt; run by a routine, (command "_.SELECT" ss ""), it leaves nothing selected (AutoCAD 2021, console).

The commands that ask the corners themselves draw the same band. STRETCH's Specify opposite corner: draws the box of Select objects: (solid blue, filled, dragged left to right; dashed green, filled, right to left; the crossing or window the typed C or W makes), and its CP the polygon through the points given. The crossing and the fence of TRIM and EXTEND draw their box and their line through all the points so far. Every other prompt that asks the opposite corner of a box from a first corner (ZOOM Window, the windows of PLOT, EXPORT and PDF output, the rectangle of XCLIP and IMAGECLIP, MVIEW, a unit cell) draws the rectangle of the two corners, in the rubber band's pen, and no line from the first corner to the cursor. A prompt that draws a preview of its own (RECTANG, MTEXT, TABLE) draws that alone.

MIRROR follows the drawing's MIRRTEXT, as AutoCAD 2021 does. At 0, AutoCAD's default, a TEXT, an MTEXT and the attributes of an INSERT stay readable: the box of their words is mirrored, and they read within the half of the circle they read in before. "ABC" 2.5 high turned 30 degrees at the origin, mirrored across the line y = 10, reads at 330 degrees from (-1.25, 17.835); turned 120 degrees and mirrored across an upright, it reads at 240. A text aligned between (0, 0) and (20, 0) mirrored across x = 30 runs from (40, 0) to (60, 0); an MTEXT attached top left at the origin, mirrored across x = 40, is attached top right at (80, 0). Where the drawing's fonts read the letters, a TEXT is mirrored by the ink of its words, as AutoCAD mirrors it: "ABC" of txt.shx 2.5 high at the origin, inked to 6.667, mirrored across x = 100 starts at 193.333; one on the right of its baseline by the box from where its words start to its point, and one in the middle about its point. Where they are not read, the box of the words is the display's estimate. Turned over across its baseline, a text is turned about the middle of the ink of its words: "Q1" of arial.ttf 1.5 high, whose Q reaches below the baseline, about a line 0.705 above it rather than 0.75. At 1 a TEXT, an attribute definition and the attributes of an INSERT are mirrored in the drawing's plane: their normal stays (0, 0, 1) and they are written backwards (flag 2 of group 71), "ABC" at the origin mirrored across x = 100 standing at (200, 0) and across y = 100 at (0, 200) turned 180 degrees, never upside down. The attributes of an INSERT already mirrored, whose normal is (0, 0, -1), keep it and are written backwards too.

An INSERT is written as AutoCAD 2021's MIRROR writes it, under either MIRRTEXT: its x factor turned the other way, its y and z as they were, and turned to its mirrored y axis less a quarter turn. An INSERT at (20, 10) mirrored across y = 100 is written at (20, 190) with an x factor of -1 turned 180 degrees; across x = 100, -1 turned nought; across y = x, -1 turned 270; one scaled 2 by 3 is written -2 by 3, and one already written -1 by 1 comes back 1 by 1. A MINSERT is written so too, its columns spaced the other way and its rows as they were: 3 columns 15 apart and 2 rows 8 apart mirrored across y = 100 are written -1 turned 180 degrees, 44 of -15 and 45 of 8. An annotative INSERT is written so in its record and in each of its contexts, each from its own factors and angle: its context of 1:2, scaled by 2, mirrored across y = 100 is written -2 by 2 turned 180. A dynamic block's INSERT keeps the values its parameters are set to, under MIRROR as under COPY: a door flipped (Hand 1) is copied flipped, the same anonymous block placed, written -1 turned 180 across y = 100.

COPY, MIRROR, ROTATE and SCALE with Copy and ARRAY copy what an application keeps in the entity's extension dictionary, as AutoCAD 2021's do (checked in its console on a LINE and a CIRCLE): the copy gets a dictionary of its own, owned by it, holding a new XRECORD for each XRECORD of the original's and a new dictionary for each dictionary of XRECORDs, under the same names, ordered by name as AutoCAD keeps them (the names compared as lower-case letters: "10" before "9", "_a" before "a", "AcDbX" before "OC_Y"). What a copied XRECORD points at (330, 340, 350 and 360 among its data) among the objects copied, the original entity and the original's other entries, it points at the copies of; an ownership pointer (350, 360) at an XRECORD, or a dictionary of them, outside the objects copied names a clone of it, owned by the copied XRECORD and in no dictionary of the drawing, two pointers at one object sharing the clone; any other pointer, at an entity or by 330 or 340, stays. An entity whose dictionary is empty is copied with an empty one; one whose dictionary holds only other kinds of object (its contexts, a clip, fields) is copied with what is written for those. The copy of an annotative hatch holds a view context, its contexts move with it, and a hatch moved in place holds the view context of the place it stood (see "Annotative texts" in the guide to text).

MIRROR keeps the normal of a hatch and reflects its loops and seed points in its plane, as AutoCAD 2021 does. MIRRHATCH, kept by the session and 0 as AutoCAD's default is, leaves the lines of the pattern as they were (base, angle and offset, in the record and in the contexts of the scales); at 1 they are reflected with the rest (a line at 30 degrees across a line at 45 degrees is a line at 60). The direction of the pattern of a context is reflected either way. ROTATE takes its angle from nought up to a whole turn, so a turn of 360 degrees touches nothing and the line of a pattern that stood at 30 degrees, turned -30, is written at 360. -OBJECTSCALE Add on a hatch writes its view context from its default context as it stands.

MIRROR3D mirrors the objects across a plane, as AutoCAD 2021 asks it: Specify first point of mirror plane (3 points) or [Object/Last/Zaxis/View/XY/YZ/ZX/3points] <3points>:, a point being the first of three, Enter asking for it, and then Delete source objects? [Yes/No] <N>:. Three points of a plan have no Z and lie in the XY plane ("The three points are collinear." and "The 1st and 2nd point coincide." ask the point again). Object takes the plane of a circle, an arc or a 2D polyline ("Improper type of object picked." for any other object); Last the plane of the last MIRROR3D, the XY plane through the origin where there was none; Zaxis a point on the plane and one on its normal ("The two points coincide."); View a point on the plane parallel to the view, the XY plane in a plan, <0,0,0> by default; XY, YZ and ZX a point on the plane parallel to that plane of the UCS, <0,0,0> by default. Each object moves as its TransformBy mirrors it (a line across the XY plane keeps its points and takes the normal (0, 0, -1), a line from (0, 0) to (0, 50) across the YZ plane through (40, 0) runs from (80, 0) to (80, 50)), and a hatch follows MIRRHATCH, as it does under MIRROR. The mirror image replaces the source where Yes is answered, as MIRROR's does. A circle, an arc, a polyline (a heavy POLYLINE too), a leader and a SOLID keep the image of their normal, under MIRROR as under MIRROR3D, as AutoCAD 2021 leaves them (probed in its console): a circle across a vertical line keeps (0, 0, 1) and across the XY plane takes (0, 0, -1) with its centre where it was; the arrowhead of a leader is filled the same triangle, its ring written from the other corner. A point's symbol is turned with the mirror (180 degrees across a vertical line), and the TEXT of any justification and the annotative TEXT and MTEXT that TransformBy now keeps readable (see the DXF text guide) are drawn by MIRROR as they were: its own flip of the words, probed against AutoCAD 2021's, is not changed. An MTEXT is mirrored in its plane under MIRRTEXT 1, its normal turned over (a mirror across y = 100 of one along x at (100, 10) stands at (100, 190) with the normal (0, 0, -1)), and kept readable under 0, a text of another plane than the drawing's too.

At MIRRTEXT 1 an MTEXT along x mirrored across a level line is of normal (0, 0, -1) and is written with no direction (group 11), as AutoCAD writes it: a record of no direction reads along the world's x axis put into its plane, here (1, 0, 0) turned 180 degrees. A multileader's sizes, the height of its words, its arrows and its landing gap, are kept to the bit by a mirror: 4 stays 4 across a line at 45 degrees, not 4.000000000000001.

A multileader keeps the drawing's plane under either MIRRTEXT, as AutoCAD's MIRROR keeps it. At 0 its words keep reading along x and stand as far from the mirrored landing as they stood from the landing, held by their other side where the mirror crosses the plane's x axis: "ABC" held top left at (30.45, 20.09), landed at (30, 20), mirrored across x = 100 is held top right at (169.55, 20.09), its base point at the left of the words less the landing gap. A mirror line at 45 degrees turns the plane's x axis square to itself, not back, and the words are held by the same side. At 1 the words are mirrored with the rest and say they run against the plane's x axis. A multileader of a block is based where a leader from the left meets the block, the box from 150 to 180 at (150, 25).

Selecting first

With PICKFIRST 1, the default, objects selected before a command (picked or boxed on the canvas, grips showing) are taken by the commands that start with Select objects:, as AutoCAD 2021 takes them: the command does not ask, writes N found where AutoCAD writes it, goes on to its next question, and the grips are gone when it ends. A line on layer Steel selected and then LAYISO says 1 found and Layer "Steel" has been isolated., with no Select objects on the layer(s) to be isolated: between; the same for a circle on layer 0 as well, 2 layers have been isolated. PICKFIRST 0 makes every command ask.

What takes the selection was probed in AutoCAD 2021's console, one command at a time (SSSETFIRST sets the selection, then the command is typed; the console does not clear it between lines as long as the line is not led by Esc):

  • Commands that take it and say N found: ERASE, MOVE, COPY, ROTATE, SCALE, MIRROR, STRETCH (the objects are moved whole, no window is asked), EXPLODE, ARRAY, ARRAYRECT, ARRAYPOLAR, ARRAYPATH, -ARRAY, CHANGE, CHPROP, COPYCLIP, CUTCLIP, -COPYTOLAYER, LAYCUR, LAYISO, GROUP, HIDEOBJECTS, ISOLATEOBJECTS, LIST, XCLIP, -OVERKILL, JOIN, REVERSE, HATCHGENERATEBOUNDARY, HATCHSETORIGIN, -HATCHEDIT, DELCONSTRAINT, DCDISPLAY, CONSTRAINTBAR, and BURST, TXTEXP and TXT2MTXT (Express Tools, not in the console; their LISP asks with SSGET, which takes the selection and writes N found).
  • Commands that take it and say nothing: ALIGN, DRAWORDER, MIRROR3D, SELECTSIMILAR, RESETBLOCK (1 block reset.), OBJECTSCALE, -OBJECTSCALE, AIOBJECTSCALEADD, AIOBJECTSCALEREMOVE.
  • Commands that filter it: JUSTIFYTEXT and SCALETEXT count the texts and MTEXTs (2 found of a selection of nine), DIMDISASSOCIATE and DIMREASSOCIATE the dimensions, TRANSPARENCY, IMAGEADJUST and PDFADJUST the images or underlays (a line selected says 0 found and the command asks Select image(s):); TEXTALIGN, MLEADERALIGN, MLEADERCOLLECT, STLOUT and XCLIP say N found and then how many were filtered out or ineligible, and where none is left ask again.
  • Commands for one object that take it when exactly one object is selected, and say nothing: PEDIT (a line too, which it offers to turn into a polyline; two objects selected and it asks Select polyline or [Multiple]:), SPLINEDIT (the one spline among a mixed selection), HATCHEDIT, TEXTEDIT.
  • TRIM and EXTEND take it as the cutting or boundary edges (Select cutting edges ..., 2 found) in Standard mode (TRIMEXTENDMODE 0); in Quick mode they ask as before. A command started in Standard mode asks the edges as AutoCAD 2021's console does, Select objects or [mOde] <select all>:; mOde asks Enter a trim mode option [Quick/Standard] <Standard>: (Enter an extend mode option for EXTEND), Quick going on in Quick mode and Standard asking the edges again.
  • Commands that ask whatever is selected: REGION, UNION, INTERSECT, SUBTRACT and MASSPROP, and the commands that pick one object, LAYOFF, LAYFRZ, LAYLCK, LAYULK, FILLET, CHAMFER, OFFSET, BREAK, DIVIDE, MEASURE, LENGTHEN, DIMBREAK and DIMSPACE. LAYDEL, LAYMRG and MATCHPROP run no further in the console, so they are not probed and stay as they were (LAYDEL and LAYMRG ask).

The commands

CadCommandRegistry.CreateDefault() makes the registry of 386 commands, named as AutoCAD names them, and of the system variables SETVAR sets:

Group Commands
view ZOOM ([All/Center/Dynamic/Extents/Previous/Scale/Window/Object]: Center asks the centre and a height or an nX, Scale a factor, Object the objects whose box is shown, and a factor typed as 2 or 0.5x; nXP through a viewport; Dynamic says it is the window's; with no window the session has a view of its own, 942 by 534 pixels at 10 units high about the origin as AutoCAD 2021's console starts a drawing, which ZOOM, PAN and -VIEW work on), PAN, -PAN, REGEN, PROPERTIES, OPTIONS, QSAVE, MSPACE, PSPACE, VPSCALE, VPCLIP (Polygonal, Delete), VPMAX, VPMIN, SCALELISTEDIT, -SCALELISTEDIT (?, Add, Delete, Reset, Exit), VIEW, -VIEW (?, Delete, Orthographic, Restore, Save, sEttings, Window), REDRAW, REDRAWALL, REGENALL, ISOLATEOBJECTS, HIDEOBJECTS, UNISOLATEOBJECTS, VPORTS, -VPORTS (Save, Restore, Delete, Join, SIngle, ?, 2, 3, 4, Toggle)
edit MOVE, COPY (Array, Fit, mOde Single and Multiple; COPYMODE), ERASE, OOPS, ROTATE, SCALE, MIRROR, MIRROR3D (Object, Last, Zaxis, View, XY, YZ, ZX, 3points), EXPLODE, MATCHPROP, LAYER, UNDO, U, REDO
draw LINE, PLINE (Arc, Close, Halfwidth, Length, Undo, Width; arcs by Angle, CEnter, Direction, Radius, Second pt), 3DPOLY (Close, Undo; a 3D polyline whose vertices are on Z 0, the Z typed being left out), CIRCLE (3P, 2P, Ttr, and Tan, Tan, Tan as 3P with _tan before each pick), ARC (three points; Start, Center, End, Angle or chord Length; Center first; Start, End, Angle, Direction or Radius; Enter to go on from the last line or arc; Ctrl held to draw the other way), RECTANG (Chamfer, Elevation, Fillet, Thickness, Width; Area, Dimensions, Rotation), WIPEOUT (points, Polyline, Frames), SPLINE (Method: Fit, CV; Knots, Degree, Object; start and end Tangency, toLerance, Undo, Close), BLEND (CONtinuity: Tangent, Smooth), ELLIPSE (Arc; the major axis runs from the centre to the first end of an axis given, or a quarter turn from there where the other axis is the longer, and an arc's angles count from it; its start and end are asked as angles or, with Parameter, as parameters, and the end is kept past the start, even past 2 pi), POINT, XLINE (Hor, Ver, Ang with Reference, Bisect, Offset with Through), RAY, POLYGON, DONUT, TRACE, SKETCH (Type, Increment, toLerance), TEXT (Justify, Style; Enter goes on below the last text), MTEXT and -MTEXT (Height, Justify, Line spacing, Rotation, Style, Width, Columns), REVCLOUD (Arc length, Object, Rectangular, Polygonal, Freehand, Style, Modify), MLEADER, MLEADERSTYLE, LEADER (Annotation: Tolerance, Copy, Block, None, Mtext; Format: Spline, STraight, Arrow, None; Undo), QLEADER, TOLERANCE, MVIEW, LAYOUT and -LAYOUT (Copy, Delete, New, Template, Rename, SAveas, Set, ?), DIVIDE (Block), MEASURE (Block)
shapes and hatching SOLID, REGION, HATCH, HATCHSETORIGIN, -HATCH (Properties, Select objects, draW boundary, remove Boundaries, Advanced: Boundary set, Retain boundary, Island detection, Style, Associativity, Gap tolerance, separate Hatches; DRaw order, Origin, ANnotative, hatch COlor, LAyer, Transparency, Undo), GRADIENT, HATCHEDIT, -HATCHEDIT (DIsassociate, Style, Properties, DRaw order, ADd boundaries, Remove boundaries, recreate Boundary, ASsociate, separate Hatches, Origin, ANnotative, hatch COlor, LAyer, Transparency), HATCHGENERATEBOUNDARY, HATCHSETBOUNDARY, HATCHTOBACK, BOUNDARY, -BOUNDARY (Advanced options), SPLINEDIT (Fit data: Add, Close, Delete, Kink, Move, Purge, Tangents, toLerance; Close, Open, Join, Move vertex, Refine: Add, Delete, Elevate order, Move, Weight; rEverse, convert to Polyline, Undo), CLASSICINSERT
multilines MLINE (Justification, Scale, STyle; Close, Undo), MLEDIT (CC, OC, MC, CT, OT, MT, CJ, AV, DV, CS, CA, WA; Undo), MLSTYLE (?, Current, New, Modify, Rename, Delete, Load, Save), and the variables CMLJUST, CMLSCALE and CMLSTYLE (see Multilines)
inquiry DIST, AREA (Add area, Subtract area), ID, LIST, MEASUREGEOM (Distance, Radius, Angle, ARea, Quick, Mode), MASSPROP (regions), STATUS, TIME (Display, ON, OFF, Reset), LIMITS (ON, OFF) , Mode)
layers -LAYER (Make, Set, New, Rename, ON, OFF, Color, Ltype, LWeight, TRansparency, Plot, PStyle, Freeze, Thaw, LOck, Unlock, Description, stAte: ?, Save, Restore, Edit, Name, Delete, Import, EXport), LAYERSTATE, LAYOFF, LAYON, LAYFRZ, LAYTHW, LAYLCK, LAYULK, LAYISO, LAYUNISO, LAYERP, LAYERPMODE, LAYWALK, LAYTRANS, LAYMRG and -LAYMRG (Name, Undo), LAYDEL and -LAYDEL (Name, Undo), LAYCUR, COPYTOLAYER and -COPYTOLAYER (?, =, Displacement, eXit), VPLAYER (?, Freeze, Thaw, Reset, Newfrz, Vpvisdflt), LAYVPI
utilities SELECTALL, SELECTSIMILAR (SEttings), ADDSELECTED, ADCENTER (ADC, DC, DCENTER), ADCCLOSE, SHEETSET, SHEETSETHIDE (see Sheet sets), TOOLPALETTES (TP), TOOLPALETTESCLOSE, TEXTSCR, UNITS, -UNITS, SCRIPT, SAVE, SETVAR (?), COLOR, -COLOR (Truecolor, COlorbook), LWEIGHT, -LWEIGHT (?), QUICKCALC, CAL, QUICKPROPERTIES
modify TRIM, EXTEND, BREAK, BREAKATPOINT, JOIN, LENGTHEN, PEDIT (Close, Open, Join, Width, Edit vertex, Fit, Spline, Decurve, Ltype gen, Reverse, Undo; Multiple; a 3D polyline's Spline curve too; a spline made a polyline within a precision), REVCLOUDPROPERTIES (Arc length), OFFSET, FILLET, CHAMFER, STRETCH, ARRAY, ARRAYRECT, ARRAYPATH, ARRAYPOLAR, ARRAYEDIT, -ARRAY, OVERKILL, -OVERKILL, ALIGN, CHANGE (Properties: Color, Elev, LAyer, LType, ltScale, LWeight, Thickness, TRansparency, Material, Annotative), CHPROP (the same less Elev), SETBYLAYER (Settings), REVERSE, CHSPACE, BURST, TXTEXP, and the variable SETBYLAYERMODE
blocks BLOCK, -BLOCK, INSERT, -INSERT, MINSERT, WBLOCK, -WBLOCK, ATTDEF, -ATTDEF, EATTEDIT, ATTEDIT, -ATTEDIT, ATTSYNC (?, Name, Select; a name typed may be a wildcard and every attributed block it matches is synced; what is picked that is no block, or a block with no attribute definitions, refused and another asked for, in the words of AutoCAD's own table of strings; an INSERT of a dynamic block naming the dynamic block, not its anonymous *U block; a dynamic block synced bringing in line the INSERTs of its *U blocks too, against its own definitions, each keeping its dynamic properties and the places they give its attributes; an attribute made anew for a tag out of order keeps its extended data and extension dictionary, as one synced in place does), BATTMAN, ATTEXT, -ATTEXT (Cdf, Sdf, Dxf, Objects), BASE, BEDIT, -BEDIT (?), BSAVE, BSAVEAS, BCLOSE (Save, Discard, Cancel), ATTREDEF, BAUTHORPALETTE, BAUTHORPALETTECLOSE, BPARAMETER (Alignment, Base, pOint, Linear, Polar, Xy, Rotation, Flip, Visibility; Name, Label, Chain, Description, Palette, Value set), BACTION (Array, Flip, Move, Rotate, Scale, sTretch, Polar stretch; Multiplier, Offset), BVSTATE, -BVSTATE (New, Set, Delete), BVHIDE, BVSHOW (Current, All), BTESTBLOCK, RESETBLOCK, REFEDIT, -REFEDIT (Ok, Next; All, Nested), REFSET (Add, Remove), REFCLOSE (Save, Discard), and the variables REFEDITNAME and XFADECTL
text and clipboard TEXTEDIT, MTEDIT, COPYCLIP, CUTCLIP, COPYBASE, PASTECLIP, PASTEBLOCK, PASTEORIG, PASTESPEC
annotation DIMOVERRIDE (Clear overrides), TEXTALIGN (alIgnment, Options, Point), MLEADEREDIT (Remove leaders, Add leaders), MLEADERALIGN (Options), MLEADERCOLLECT (Vertical, Horizontal, Wrap), ATTIPEDIT, SPELL (All, Dictionary), SCALETEXT (Existing, Left, Center, Middle, Right, TL to BR; Paper height, Match object, Scale factor, Reference), JUSTIFYTEXT (Left, Align, Fit, Center, Middle, Right, TL to BR), TXT2MTXT (Settings), ATTDISP (Normal, ON, OFF), FIELD (Height, Justify), UPDATEFIELD (see Annotation commands)
plot PLOT, -PLOT, PREVIEW, PAGESETUP, PNGOUT, JPGOUT, BMPOUT, WMFOUT, PSOUT (what to plot, preview, units, scale, size), STLOUT, SVGOUT, EXPORT, -EXPORT (Dwf, dwfX, Pdf) (Plotting)
dimension DIM (Angular, Baseline, Continue, Ordinate, aliGn, Distribute, Layer, Undo), DIMLINEAR (Mtext, Text, Angle, Horizontal, Vertical, Rotated), DIMALIGNED (Mtext, Text, Angle), DIMRADIUS, DIMDIAMETER, DIMANGULAR, DIMARC (Mtext, Text, Angle, Partial, Leader), DIMORDINATE (Xdatum, Ydatum, Mtext, Text, Angle), DIMCONTINUE, DIMBASELINE, QDIM, DIMEDIT, DIMTEDIT, DIMSPACE, DIMBREAK, DIMINSPECT, -DIMINSPECT (Add, Remove; Round, Angular, None), DIMJOGLINE (Remove), DIMJOGGED (Mtext, Text, Angle), DIMREASSOCIATE (Select object), DIMDISASSOCIATE, -DIMDISASSOCIATE, DIMREGEN, DIMCENTER, CENTERMARK, CENTERLINE, -DIMSTYLE (ANnotative, Save, Restore, STatus, Variables, Apply, ?), DIMUPDATE
parametric GCCOINCIDENT (Object, Autoconstrain), GCCOLLINEAR, GCEQUAL (Multiple), GCCONCENTRIC, GCPARALLEL, GCPERPENDICULAR, GCTANGENT, GCFIX (Object), GCHORIZONTAL, GCVERTICAL (2Points), GCSYMMETRIC (2Points), GCSMOOTH, GEOMCONSTRAINT, AUTOCONSTRAIN (Settings), CONSTRAINTBAR (Show, Hide, Reset), DELCONSTRAINT, DCLINEAR, DCHORIZONTAL, DCVERTICAL, DCALIGNED, DCANGULAR, DCRADIUS, DCDIAMETER, DIMCONSTRAINT, DCCONVERT, DCFORM, DCDISPLAY, -PARAMETERS (New, Edit, Rename, Delete, ?), PARAMETERS, PARAMETERSCLOSE, CONSTRAINTSETTINGS; the variables CCONSTRAINTFORM, CONSTRAINTBARDISPLAY, CONSTRAINTBARMODE, CONSTRAINTINFER, CONSTRAINTNAMEFORMAT, DYNCONSTRAINTMODE, CONSTRAINTSOLVEMODE, PARAMETERCOPYMODE, PARAMETERSSTATUS, CONSTRAINTRELAX (see Parametric constraints below)
tables TABLE, -TABLE (Style, Width, Height, data Link), TABLESTYLE, TABLEDIT, TABLEEXPORT, DATALINK, DATALINKUPDATE, DATAEXTRACTION, -DATAEXTRACTION
selection SELECT, QSELECT, FILTER, FIND, DRAWORDER (Above objects, Under objects, Front, Back), TEXTTOFRONT, GROUP, -GROUP (?, Order, Add, Remove, Explode, REName, Selectable, Create), UNGROUP, CLASSICGROUP, GROUPEDIT (Name; Add objects, Remove objects, REName)
OLE objects INSERTOBJ (a bitmap or a PNG, as a static picture), and the variables OLEFRAME, OLEHIDE and OLEQUALITY (see OLE objects below)
metafiles WMFIN (Basepoint, Scale, X, Y, Z, Rotate, Explode, REpeat), and the variables WMFBKGND and WMFFOREGND (see WMFIN below)
references and images XATTACH, IMAGEATTACH, PDFATTACH, -PDFATTACH (Unit), PDFADJUST, -PDFADJUST (Fade, Contrast, Monochrome), PDFCLIP (ON, OFF, Delete, New boundary), PDFLAYERS, -PDFUNDERLAY (?, Detach, Path, Reload, Unload), XREF, EXTERNALREFERENCES, IMAGE, -XREF (?, Bind, Detach, Path, pathType, Unload, Reload, Overlay, Attach), XOPEN, XBIND, -XBIND (Block, Dimstyle, LAyer, LType, Style), -IMAGE (?, Detach, Path, Reload, Unload, Attach), IMAGECLIP (ON, OFF, Delete, New boundary), IMAGEQUALITY (High, Draft), IMAGEADJUST, -IMAGEADJUST (Contrast, Fade, Brightness), XCLIP (ON, OFF, Clipdepth, Delete, generate Polyline, New boundary), TRANSPARENCY
housekeeping PURGE, -PURGE (Blocks, DEtailviewstyles, Dimstyles, Groups, LAyers, LTypes, MAterials, MUltileaderstyles, Plotstyles, SHapes, textSTyles, Mlinestyles, SEctionviewstyles, Tablestyles, Visualstyles, Regapps, Zero-length geometry, Empty text objects, Orphaned data, All), RENAME, -RENAME (Block, Dimstyle, LAyer, LType, multileadeRstyle, Style, Tablestyle, Ucs, VIew, VPort)
properties and links DWGPROPS (the Drawing Properties dialog), HYPERLINK, -HYPERLINK (Remove, Insert: Area, Object) (see Drawing properties, hyperlinks, GROUPEDIT, ATTREDEF and MEASUREGEOM Quick)

-ATTDEF, -BLOCK, -INSERT, AUDIT and prompts of two lines.

-ATTDEF writes Current attribute modes: and, on the next line, Invisible=N Constant=N Verify=N Preset=N Lock position=Y Annotative=N Multiple line=N (two spaces between the modes), then asks Enter an option to change [Invisible/Constant/Verify/Preset/Lock position/Annotative/Multiple lines] <done>: and shows the two lines again after each toggle. The modes carry to the next -ATTDEF of the session, as does the justification chosen with Justify, shown as typed in Current text style: "Standard" Text height: 2.5000 Justify: MC; the point is then asked as Specify middle point of text or [Justify/Style]:, Justify lists Enter an option [Left/Center/Right/Align/Middle/Fit/TL/TC/TR/ML/MC/MR/BL/BC/BR]: and asks the point of the choice with no options left (Specify middle point of text:), Style asks Enter style name or [?] <Standard>: and shows the style line again, and the height is Specify height <2.5000>:. Constant asks Enter attribute value: where the others ask the prompt and the default. Annotative is shown, toggled and kept as annotative text is kept: the definition is annotative at the current annotation scale. -BLOCK asks the base point as Specify insertion base point or [Annotative/mOde]:. Annotative asks Create annotative block [Yes/No] <Y>: and, whatever the answer, Orient relative to sheet in paper space viewports [Yes/No] <N>:, then the base point again; mOde asks Choose mode for selected object conversion [Convert to block/Retain/Delete] <Delete>: and the base point again, Retain keeping the objects, Convert to block putting a reference where they were and Delete, the default, erasing them. In a UCS other than the world's, BLOCK, -BLOCK and WBLOCK define the block in the axes of the UCS, as AutoCAD 2021 does (checked in its console, for where the objects stand): in UCS Z 90 a line drawn from 0,0 to 10,0 is stored in the block from (0, 0) to (10, 0), the objects turned back about the base point, and the reference that Convert to block leaves, like one put in that UCS at rotation 0, is turned by the UCS (rotation 90) so that the objects stand where they were drawn. A file WBLOCK writes holds its objects in the UCS axes with the base point at its origin, so the file inserted in the world shows them as they were drawn in the UCS. The block's base point is the point chosen, in world coordinates, with the objects turned about it; AutoCAD stores (0, 0, 0) there and the objects relative to the chosen point, which draws the same. A UCS that only moves the origin changes nothing in how the presenter stores the block. A selection holding an object the library cannot move (a 3DSOLID, a BODY, a surface, a mesh or a proxy; a REGION and an MLINE it can) is defined in the world axes, the objects as they stand, and the command says so: A 3DSOLID cannot be turned to the axes of the UCS: the block is defined in the world axes. A name in use asks Block "GHB3" already exists. Redefine it? [Yes/No] <N>:, and ? asks Enter block(s) to list <*>: (names or patterns, letters of either case the same), writes Defined blocks., each block that matches quoted and indented two spaces in the order of the names, and the table of counts of what matched (user blocks, external references, dependent blocks, unnamed blocks), and ends the command. An external reference is listed with Xref: resolved (unloaded, not found) and each block of its drawing, while it is loaded, with Xdep: "grid", as AutoCAD 2021 writes them: "grid" and "grid|TAG" for the block TAG of the drawing grid, the notes from the 37th column, or 3 spaces after a name that reaches it. These blocks are held while the reference is loaded and not in the drawing's table or its file, as AutoCAD keeps them in memory and writes none; -INSERT of one says Cannot insert dependent block. and -BLOCK refuses its name. -INSERT's ? lists the user's blocks alone, with the table of user blocks and unnamed blocks (User Unnamed), as AutoCAD 2021 lists what it can insert. -INSERT writes Units: Millimeters Conversion: 1.0000 with the conversion in a field of ten and offers [Basepoint/Scale/X/Y/Z/Rotate/Explode/REpeat] at the insertion point: Explode asks Explode block [Yes/No] <Yes>: and the point again, and the block is exploded where it is placed; REpeat (typed RE, as R is Rotate) places the block again and again until Enter; Scale and X offer <1>. AUDIT asks Fix any errors detected? [Yes/No] <N>: and reports as AutoCAD 2021's console does: Auditing Header, Auditing Tables, Auditing Entities Pass 1, Pass 1 100 objects audited (the count of objects rounded up to a hundred, from the presenter's own count), Auditing Entities Pass 2 and its count, Auditing Blocks, 0 Blocks audited, Auditing AcDsRecords, a line for each error found, Total errors found 1 fixed 0 and Erased 0 objects. DIMLINEAR's Specify dimension line location or and the options [Mtext/Text/Angle/Horizontal/Vertical/Rotated]:, PLINE's arc segment prompt and -DIMSTYLE's option prompt are written on two lines in the history, as AutoCAD writes them; the command line shows each on one line.

Multilines (R2.1).

MLINE (ML) writes Current settings: Justification = Top, Scale = 20.00, Style = STANDARD and asks Specify start point or [Justification/Scale/STyle]:; each option asks its question (Enter justification type [Top/Zero/Bottom] <top>:, Enter mline scale <20.00>:, Enter mline style name or [?]:, the question mark listing Loaded mline styles:) and comes back to the settings and the start. Then Specify next point:, with [Undo] from the second point and [Close/Undo] from the third, until Enter. The multiline is drawn under the cursor as the points so far and the cursor make it, and is made as the command ends, one undo step; a scale of nought or below is taken, as AutoCAD takes it. The settings are the drawing's $CMLJUST, $CMLSCALE and $CMLSTYLE, which CMLJUST, CMLSCALE and CMLSTYLE set; a drawing with no style STANDARD is given the one AutoCAD starts with when MLINE or MLSTYLE first runs. The multiline is a DxfUnknownEntity written by DxfMlineBuilder as AutoCAD writes it, so that MOVE, COPY, ROTATE, SCALE and MIRROR move it (its scale follows a scale, its elements stay on the same side of its line in a mirror).

MLEDIT asks Enter mline editing option [CC/OC/MC/CT/OT/MT/CJ/AV/DV/CS/CA/WA]: (the words AutoCAD's console asks; its window shows a dialog of the same twelve tools, which the presenter has not designed). The crosses and tees and the corner joint ask Select first mline: and Select second mline:, and again Select first mline or [Undo]: once a pair was tried; the others ask Select mline: (the cuts and the weld then Select second point:). A pick that is no multiline is Please pick mlines only., two that do not meet These multilines do not intersect., the second point of a cut on another multiline Please pick the same mline.; Undo takes back the last edit of the command; Enter ends it. The records are those AutoCAD 2021 left, the numbers read back from accoreconsole: for a style of three elements at 0.5, 0 and -0.5 at scale 1 through (0, 0)-(100, 0) crossed by (50, -50)-(50, 50), CC breaks all three elements of the first from 50 to 51 (the width of the second), OC also breaks the outer two of the second from 49 to 50, and MC breaks the outer two of each. CT, OT and MT trim or extend the first (picked on the part to keep) to the line of the second, its elements stopping 1 short of it at the second's near edge, the merged tee running the middle element on to the second's middle element (49.5); OT and MT also open the second's near element across the first's width; the end caps of the end moved are left off (flag 4 or 8). CJ moves both ends to where the lines meet and mitres the elements across the corner, matched by rank from one side of the bend to the other: of (0, 0)-(80, 0) and (100, -50)-(100, 50) picked at (20, 0) and (100, -30), the first runs on to (100, 0) with its elements 1, 0.5 and 0 past it and the second stops at 49, 49.5 and the whole. AV puts a vertex on the line at the pick ((50, 0.3) gives (50, 0)), DV takes the nearest vertex out, CS cuts the element picked between two picks, CA every element, WA welds what is cut between two picks. A pick on nothing asks again without a word, and Enter before the first edit is 2D point or option keyword required., as AutoCAD's console answers. CJ with a closed multiline, and a tee whose first (the stem) is closed, are Invalid operation on a closed multiline.; CT onto a closed multiline trims the stem to its near element and leaves the closed one whole, and OT and MT do the same and open the near element across the stem (a stem (100, 100)-(100, -50) onto a square of 200 at scale 20 opens its first side from 80 to 100). A stem whose element would meet the closed multiline's element before its start or past its end, where another segment goes on (the stem 12 from the corner of that square, whose elements stand at 12, 7, -3 and -8 at scale 10), is Invalid operation on a self intersecting multiline. in AutoCAD 2021, and the presenter does as it does: the elements that meet are stopped, the others left running, the closed multiline left whole. AutoCAD says the same of a tee onto an open multiline past a vertex it turns at. The crosses CC, OC and MC say it too, and change neither multiline, where an element would be broken past the end of an element that another segment goes on from: the L (0, 0)-(100, 0)-(100, 100) at scale 20 crossed by the vertical (85, -60)-(85, 60), whose second element stands at 105, is refused (a vertical at 80 is crossed; 85, 95 and 100 are refused), and so is a crossing of the second segment at y = 5, 10 or 15, where the break starts before the segment does. A cross meets a segment on its line, run on past the first segment's start or the last segment's end of an open multiline (a vertical at x = -10 crosses the L; one at x = 105 is These multilines do not intersect.). CJ near an open end runs the end on to where the lines meet. The crosses and the corner joint do not work on the segments the picks lie on: of every pair of segments of the two multilines whose lines meet on both (or past a free end, as above) AutoCAD 2021 takes the pair whose meeting is nearest the picks, the distance along the first multiline from its pick added to that along the second from its pick, the later pair where two are as near (the L above and the Z (50, -30)-(50, 30)-(150, 30), picked at (20, 0) and (130, 30), are crossed at (100, 30), though the first pick is on the L's first segment, which meets the Z's first at (50, 0) as well). A closed multiline's distance along itself counts from its start the shorter way round, so that a crossing near its last segment counts as near its start: the rectangle (0, 0)-(200, 0)-(200, 100)-(0, 100) crossed by the horizontal (-20, 50)-(220, 50), picked on its bottom edge at (70, 0), has the left edge broken (550 along the 600, counted as 50) where the second is picked at (175, 50) and the right edge where it is picked at (185, 50), and two crossings as near as each other go to the earlier segment of a closed multiline (the later of an open one; 900 random crosses of a square, a rectangle and a triangle 183 differed from AutoCAD before and 85 now). Where no pair can be made the lines may still meet past a vertex of one multiline's first or last segment while the other runs on past its free end: a cross says Invalid operation on a self intersecting multiline. and a corner joint says nothing and puts that first multiline's start caps off, as AutoCAD does; any other miss is These multilines do not intersect. (the L crossed by (30, -60)-(30, -40)-(xe, -40) is refused as self intersecting for xe up to 99.9 and does not meet it at 100). AutoCAD takes a closed multiline as the run of its segments from the first to the last, as it takes an open one: its first segment is run on past its start and its last past its end, and no other, so that for the square (0, 0)-(100, 0)-(100, 100)-(0, 100) a vertical (x, -60)-(x, 60) is crossed up to x = 80 and refused as self intersecting from 82 to 100 (within the width of the corner), and past the corner (100, 0), on the line of the first side beyond its end, is These multilines do not intersect. (x = 102 to 140), where a horizontal (60, y)-(160, y) across the right side is Invalid operation on a self intersecting multiline. for every y below 20, those past the corner (100, 0) among them (369 crosses of the square, 120 that differed now 3). A cross whose break lies wholly past the free end of the last segment (the L crossed by the horizontal (30, 140)-(110, 140)) takes nothing out of it: AutoCAD writes that break inside out and draws a stray piece there, which the presenter does not copy. CS, CA and WA from one segment to another cut from the first pick to the end of its segment, the segments between whole and the next segment up to the second pick (on a closed multiline the shorter way round between the picks, whichever is picked first: the square of 100 cut from (30, 100) to (50, 0) leaves the top edge cut for 30, the left edge cut whole and the bottom one for 50, and the same where the picks are given the other way round, the 220 through (100, 100) and (100, 0) being the longer; 700 random cuts of six closed shapes, each followed by a moved vertex, 320 differed from AutoCAD before and 57 now, all of them CA at mitred corners): CA from (50, 0) to (100, 50) on (0, 0)-(100, 0)-(100, 100) at scale 20 leaves the first segment drawn to 50 and the second from 50 (70 for the bottom element, which starts at the outer corner); round the first vertex of a closed one AutoCAD starts the cut on the first segment at the vertex, so that a stub of the outer element is left at the corner, and the presenter does the same. A merged cross or tee of four elements breaks the elements pair by pair from the outside: the outer pair of one across the outer pair of the other, the inner pair across the inner pair (AutoCAD 2021's numbers at offsets 1, 0.5, -0.5, -1, scale 10: 90 to 110 and 95 to 105). WA takes out every stop and start that lies between the two picks, one by one, as AutoCAD 2021 does, so that a cut the picks cover whole is welded and one they cover half is left turned inside out: the bottom element cut from 60 to 120 on (0, 0)-(200, 0), welded between two picks on the top element at 20 and 90, is left drawn from 0 to 120 and not at all after it. Round the first vertex of a closed multiline the outer element keeps the stop at the vertex, which AutoCAD leaves too: the square of 100 cut from (0, 50) to (50, 0) and welded between the same picks has its top element whole and its bottom one drawn only from 0 to 20 on the first segment, before the corner. A pick on a cut finds nothing there, as nothing is drawn.

The tees work on a pair of segments as the crosses do, found a little differently (AutoCAD 2021's numbers at scale 20). The stem is run on past the free end of its first or last segment, and the second is met on one of its segments (the end of its last is not on it) or run on past its own free end: of those pairs the one whose meeting is nearest the picks is taken (the distance along the stem from its pick added to that along the second from its pick, a closed second's distance along itself counted from its start the shorter way round as the crosses count it: 600 random tees onto a square, a rectangle and a triangle 201 differed from AutoCAD before and 176 now), and that pair alone says whether the tee is made, or These multilines do not intersect. where the second is met past its free end. Two pairs as near as each other (a stem that runs along a segment of the second between them) go to the one on the earlier segment of the second where one meets it on a segment and the other past its free end, else to the one whose stem segment is farther from the stem's pick, then the nearer along the stem, then the earlier, as 334 of 356 such tees did. The end of the stem kept is the one on the side of the meeting its pick is on (the stem (30, -60)-(30, -100)-(80, -100) picked on its second segment at (55, -100), onto (0, 0)-(100, 0), has its start moved to (30, 0) with both elements starting 20 along, at the second's near edge). Where none can be made, it is Invalid operation on a self intersecting multiline. if any pair has the stem run on past its free end to a second that is met past a vertex of its own on an end segment, or a stem that is met past a vertex of its own while the second is met past its free end (the stem (130, -100)-(130, -60)-(180, -60) onto (0, 0)-(100, 0), whose line x = 130 meets the second past its end), the stem's start caps put off and nothing else changed; every other miss, such as the stem (130, -60)-(130, -100)-(180, -100) run on to the same line, is These multilines do not intersect.. A pick on the very point the lines meet keeps the start of that multiline in a corner joint; the same multiline picked twice is nothing said for a cross or a tee (AutoCAD asks for the first again) and These multilines do not intersect. for a corner joint. A break across the second that reaches the end of its last segment leaves nothing beyond it, as a cross's does. Each element of the stem stops at the second's near element wherever the two meet: on the piece of that element's mitred path nearest the segment of the pair, which within the width of a corner of the second is not the segment itself (the stem (100, 150)-(160, 150)-(160, 250) onto (70, 40)-(70, 120)-(30, 120)-(30, 240), picked at (113, 150) and (30, 223), has its first element start 20 along from (30, 150) and its second 60, where it meets the first side's outer element at x = 90; 8 253 tees of stems of one or two segments onto seconds of two or three whose picks lie clear of the other multiline, 1 847 of them differing from AutoCAD before and 598 now).

A cross near a corner breaks each element on the segment of its own line the crossing is nearest the picks on, so that within the width of a multiline of a corner the elements of one crossing are broken on different segments: a break that runs past the end of an element over a corner is written from where it starts to the end of that segment, the next segment whole and the rest of the break as the start of the one after it, where each of the two lines of the other multiline meets the element's path once (the staircase (0, 0)-(100, 0)-(100, 100)-(200, 100) crossed by the vertical (82, -60)-(82, 60), picked at (20, 0) and (82, -30), holds {0, 82} and {0, 82, 102} on its first segment, nothing on its second and {2} on its third for the first element). A line that meets the element's path twice or not at all (the U (0, 0)-(100, 0)-(100, 100)-(0, 100) crossed by the same vertical; the L crossed at x = 85) is Invalid operation on a self intersecting multiline., and the elements are broken one by one up to the one it is said of, the ones before it left broken (the staircase crossed by the horizontal (40, 82)-(160, 82) across its second segment breaks the first element and says it of the second). A cross that runs the second multiline on past its end (OC, MC), and a break that ends exactly on a vertex, are not copied.

Grips, STRETCH and the modify commands on a multiline. A multiline has a grip at each vertex of its line, as AutoCAD 2021's GetGripPoints; dragging one moves the vertex as MoveVertexAt does: a segment that keeps its way keeps its cuts where they were along it, one that turns is drawn whole again (cut 30 to 60 on (100, 0)-(100, 100), the vertex moved to (100, -10), the cut is 40 to 70 from it). Where a cut goes across a vertex (the L of 100 by 100 cut from (50, 0) to (100, 50), whose second segment holds 50 for its first element), a move that makes the segment before whole puts a nought in front of the next list (the vertex (100, 0) moved to (100, -10) holds 0 and 60) and leaves the end of the multiline with nothing past its last vertex; a segment that turns keeps such a list as it was, and no stretch goes below nought. A closed multiline is moved the same way, its first segment following its last (the square of 100 cut from (100, 50) to (50, 100) across (100, 100), whose vertex (100, 100) goes to (90, 90), holds 0 and 50 there for its first element where it held 50), but for the first segment and the last, which join the end of the points to their start: AutoCAD puts no nought in front of their lists (the triangle (0, 0)-(100, 0)-(50, 80) cut from (75, 40) to (25, 40) across (50, 80), whose vertex (100, 0) goes to (90, 0), still holds {47.1699} at (50, 80)), except that an empty list on the last segment (a cut that goes across it from the segment before) gets its nought when the move makes the segment before whole (the square of 100 cut from (15, 0) to (15, 100), whose vertex (100, 100) goes to (108, 91), holds {0} for both elements at (0, 100) where it held {}). A stop that comes to lie at or past the end of a segment of a closed multiline is left out, an odd list or an even (the six-sided staircase (0, 0)-(100, 0)-(100, 50)-(50, 50)-(50, 100)-(0, 100) cut from (75, 50) to (50, 92), whose vertex (50, 100) goes to (50, 90), holds {} for the first element at (50, 50) where it held {42}). A closed multiline whose move shortens a segment until a cut that reaches its end starts at the end leaves that stop out, the element drawn to the end (the six-sided staircase (0, 0)-(100, 0)-(100, 50)-(50, 50)-(50, 100)-(0, 100) cut across (0, 0) from (0, 10) to (10, 0), whose vertex (0, 0) goes to (0, 10), holds {0} and no longer {0, 90} on its last segment) and the list that goes on across the next vertex then gets its nought ({0, 10}), where a move that carries the start of a cut that goes on across a vertex back past the start of the segment leaves that list at nought and neither a start of nought twice nor one below it. MLEDIT's CS and CA take nothing out of an element where the picks lie beyond the end of its stretch, as at the concave corner (50, 50) of the staircase, cut from (60, 50) to (50, 60), where the second element of the third side runs 50 along from the outer corner (120, 70) and the cut starts at 60 (288 moves of the staircase and 700 of four shapes probed, 107 differed from AutoCAD before and 8 now). Where the first pick of CA lies off an element's stretch (short of its start or past its end: the second element of the staircase (0, 0)-(120, 0)-(120, 60)-(70, 60)-(70, 120)-(0, 120), closed, which starts 20 along the side from (70, 60), picked at (70, 78)), AutoCAD cuts that element at the second pick alone: with the second pick at (0, 60) the first element is cut from 18 along the third side to 60 along the last, the second element only up to 80 along the last, the sides between it left whole. The stretch of an element before the first vertex of a closed multiline is left where a cut runs on round past that vertex, and where the two ways round between the picks are as long as each other the cut does not run past the first vertex (700 cuts of six closed shapes: 57 differed from AutoCAD before and 0 now, 600 random cuts of open and closed shapes: 117 differed before and 87 now, all the rest at the last vertex of an open multiline of six vertices). STRETCH moves the vertices inside its window the same way, and the whole multiline where all are inside. TRIM and EXTEND work on a multiline as AutoCAD 2021 does: an edge counts only where it crosses every element as many times (one that meets some element more often than another leaves the multiline as it is), each element at its own hit, which near a corner can be on different segments: the edge (120, -30)-(95, 20) meets the top element of (0, 0)-(100, 0)-(100, 100) at scale 20 at (100, 10) on its second segment and the bottom one at 115 on its first, so that picked past it the multiline ends at (100, 10) with the bottom element stopped at 115 and cut away on the second segment, and picked before it the multiline starts at (115, 0) with its top element cut away on the first segment (a first segment that runs back, as AutoCAD writes it); the new end stands on the multiline's line where the element that runs furthest still reaches the edge, each element stopping where it meets the edge (trimmed by the edge (40, -60)-(60, 60) and picked before it, (0, 0)-(100, 0) at scale 20 starts at 46.67, its top element at 50); a piece taken out between two edges leaves two multilines, and a closed one opens between the two cuts round the pick. Near a corner of a closed multiline an edge meets the elements on different segments, and each element is then taken between its own two cuts of the pair the pick lies between, as the element nearest the pick says (the square of 100 cut by the edge (120, -30)-(95, 20) and the line x = 50, picked at (75, 0), leaves the top element from (100, 10) round to (50, 0) and the bottom one from (115, -20) round to (50, -20)). EXTEND runs the nearer end on to the nearest edge every element meets. A multiline is a cutting or boundary edge for other objects by its elements. OFFSET says Cannot offset that object., FILLET Fillet requires 2 lines, arcs, or circles., CHAMFER Chamfer requires 2 lines., LENGTHEN Cannot LENGTHEN this object. and BREAK Object can't be broken and asks again, AutoCAD's words. FILLET and CHAMFER take a second object picked with Shift held as "shift-select to apply corner": both objects are cut or run to their corner whatever FILLETRAD or the chamfer distances say, in the preview too, and the radius and distances stay as set. LENGTHEN (shortening), TRIM and BREAK keep the handle of a line, an arc, a ray, a LWPOLYLINE, an elliptical arc and a spline: the first piece kept is that object (its extension dictionary and extended data stay), and the other pieces are new objects; a circle cut to an arc keeps its handle too, as the ARC (the console shows CIRCLE:181 become ARC:181), but an old-style POLYLINE and a 3D polyline are erased and drawn again, as AutoCAD 2021 makes new objects of them when they are cut or shortened. LENGTHEN lengthens an old-style or a 3D polyline too, in place with the handle kept (a 3D one along its own direction: the end of (0, 0, 0), (10, 0, 0), (10, 10, 5) given Delta 3 goes to (10, 12.6833, 6.3416)). LENGTHEN Dynamic of an old-style polyline whose end is an arc runs on the arc's circle, as for a lightweight one; this is the presenter's own behaviour, since AutoCAD 2021's console refuses Dynamic on a polyline (not yet checked in its window). On a polyline whose last segment has no length (a vertex given twice) Dynamic says Cannot lengthen this object: its end segment has no length. and asks the next object, the lengthenings before it kept, and EXTEND says Object does not intersect an edge., as AutoCAD 2021 does. OFFSET Through a point past an end of an open arc, ellipse, polyline or spline measures to the line tangent at that end, as AutoCAD 2021 does, not to the end or to the circle: on the arc of radius 10 about (0, 0) from 30 to 100 degrees, Through (12, -6) gives the arc of radius 7.3923 (12 cos 30 degrees less 6 sin 30 degrees), and on the polyline (0, 0), (10, 0), (10, 10), Through (12, 14) gives (0, -2), (12, -2), (12, 10). Where the nearest place of the curve is a vertex inside it, or the point stands beside the curve, the distance is the usual one. A polyline whose end vertex is given twice, as FILLET Polyline leaves one after an arc, is taken by the way of its nearest segment that has a length, so the copy goes to the side of the point as it does without the repeat. FILLET Polyline and RECTANG Fillet whose radius uses a whole side (5 on a square of 10) keep the two vertices at each seam, one for the end of one arc and one for the start of the next, as AutoCAD 2021 keeps them. Esc in the middle of MLINE makes nothing: AutoCAD 2021 adds the multiline to the drawing only when the command ends (its drawing holds no entity while MLINE asks the next point), and the presenter does the same; the console cannot send Esc, so this is read from that and not seen.

In the window MLEDIT shows the Multiline Edit Tools dialog: the twelve tools as pictures in AutoCAD's rows of four (Closed Cross, Closed Tee, Corner Joint, Cut Single; Open Cross, Open Tee, Add Vertex, Cut All; Merged Cross, Merged Tee, Delete Vertex, Weld All). A tool clicked closes it and MLEDIT asks that tool's multilines as the typed option of its letters; Close ends the command. MLSTYLE shows the Multiline Style dialog: Current multiline style, the Styles, Set Current, New, Modify, Rename (the name edited in the list), Delete, Load (Load Multiline Styles: a file, acad.mln to start with, and one of its styles) and Save, the Description and a preview of the style picked, drawn as MLINE draws it. New asks Create New Multiline Style (the name and the style to start with), then New Multiline Style: Description; Caps (Line, Outer arc and Inner arcs at the start and end, the angles from 10 to 170); Fill color; Display joints; Elements with Offset, Color and Linetype, Add (at most 16) and Delete (one kept). Select Color..., last in the Fill color and Color lists, shows Select Color with ByLayer and ByBlock; an index colour outside the list is added to it by its number, and a true colour is kept as its nearest index, all an MLINESTYLE record holds. Linetype... shows Select Linetype, BYLAYER and BYBLOCK first, with its Load.... Modify shows the same page, all but the description greyed for STANDARD and a style a multiline is drawn by. Each button acts at once, as AutoCAD's do, each an edit of MLSTYLE's one undo step; Set Current is taken on OK, so Cancel keeps the styles made but not the style set current. The refusals are those of the typed questions below. With no window both ask on the command line.

MLSTYLE has no typed form in AutoCAD 2021 (its console opens the Multiline Styles dialog and waits, and has no -MLSTYLE), so with no window the presenter asks its own: Current multiline style: STANDARD, then Enter an option [?/Current/New/Modify/Rename/Delete/Load/Save] <exit>:. New asks Enter name of new multiline style: (kept in capitals in the record, the entry as typed) and then Enter style option [Description/Elements/Caps/Fill/Joints/Angles/Done] <Done>:; Elements lists the elements, the greatest offset first, and asks [Add/Delete/Change/Done] with the offset, colour and linetype of each; Caps toggles StartLine, StartOuter, StartInner, EndLine, EndOuter and EndInner; Fill is [Off/Color], Joints shows a line across each joint, Angles asks the angles of the start and end (10 to 170). Modify asks the same of a style of the drawing; STANDARD and a style a multiline is drawn by can have only their description changed, as the dialog allows. Rename, Delete, Load and Save are the dialog's buttons as questions: Rename asks the style (the current one on Enter) and Enter new name for WALLS:, its multilines named anew (STANDARD is The STANDARD multiline style cannot be renamed.); Delete removes a style that is not STANDARD, current or drawn by a multiline; Load asks Enter name of multiline style file <acad.mln>: (looked for as a support file; a name with no folder is looked for in the support folders and else beside the drawing, in Documents where the drawing has no file yet, and Save writes it there and says the full path) and Enter name of style to load or [?]:, the question mark listing the file's styles; Save asks the style and the file and writes it as acad.mln is written, the file's other styles kept and one of the same name written over.

OLE objects (R3.2 follow-up).

A drawing's OLE frames (DxfOle2Frame) are drawn and edited. A frame that holds a bitmap, a pasted picture or one INSERTOBJ made, shows its picture on the frame as a DisplayImage2 that carries the bytes of the .bmp instead of a file name; two drawings holding the same picture decode it once. The frame is drawn over it as OLEFRAME says: 0 no frame, 1 frames shown and plotted, 2, the default, frames shown and left off a plot (the same IsNotPlotted as XCLIPFRAME 2); at 0 a point on the picture picks it, and its grips are not shown, as AutoCAD 2021 says the frame must be displayed for them to be. An object the presenter cannot draw, one of another application, a metafile, or a frame whose compound file is damaged, is drawn as its frame alone with its kind (Picture (Device Independent Bitmap), OLE Package) written in its corner, a tenth of its shorter side high, as the name of an image not found is; AutoCAD asks the application, or shows the picture it kept, which the library does not read. OLEHIDE leaves frames out of the display and of every plot: 1 those of model space, 2 those of paper space, 3 all. A plot at the plot quality Monochrome (group 73 of 0, the Plot quality row) draws the picture in black and white, by its luminance, and the other qualities in its colours. OLEFRAME, OLEHIDE and OLEQUALITY are the document's, set by SETVAR or typed alone (Enter new value for OLEFRAME <2>:, Requires an integer between 0 and 2.) and kept while it is open: AutoCAD keeps OLEFRAME in the drawing and the other two in the registry, but a DXF has no place for them, and none of the three is an undo step.

A frame has four corner grips, from the lower left to the upper left, upper right and lower right, as AutoCAD 2021's GetGripPoints gives them (a frame 40 by 20 with its lower left corner at (10, 20) has (10, 20), (10, 40), (50, 40) and (50, 20)). Dragging one scales the frame about the corner across from it, as AutoCAD 2021's MoveGripPointsAt does (the corner (50, 40) of that frame dragged to (60, 45) makes it 50 by 25; dragged to (50, 50) it is 40 by 30 with Lock aspect off and 60 by 30 with it on, both sides by the larger factor, 1.5): each side by the point's distance from the kept corner over the grip's, the frame kept on its side of that corner however far the point goes, never turned over. MOVE, COPY, SCALE and ARRAY move a frame as the library does. ROTATE keeps it upright, as AutoCAD 2021's GUI does (its ROTATE of 30 degrees "only moves the picture"): the frame's centre goes round the base point, the frame as large as it was and along x and y, its rotation still 0; MIRROR about a line along x or y makes the box of the mirrored corners, the picture not turned over, and about any other line moves the frame's centre to its mirror image in the same way, which accoreconsole 2021 could not show (it leaves a mirrored frame as it is). The Properties palette has a group OLE: Position X and Y (the lower left corner), Width and Height, Scale width and Scale height in percent of the size at 100 percent, Lock aspect, Type (Static, Embedded or Linked, read only), Plot quality (Monochrome, Low graphics or High graphics) and Source application (read only); Width and Height size the frame from its upper left corner and the other side follows while Lock aspect is on, Scale width and Scale height take the percent with or without its sign.

INSERTOBJ (IO) shows AutoCAD's Insert Object dialog: Create New, whose Object Type list says that no object type can be made here (OK off), and Create from File, picked at first, with the File box, Browse... (the window's Open dialog titled Insert Object, of the one type Picture (*.bmp;*.png)) and Link and Display As Icon greyed; with FILEDIA 0 it asks Enter name of picture file to insert:. The picture becomes a static OLE object (new DxfOle2Frame(bytes): 96 dots an inch where it gives none, so that 40 by 30 pixels are 10.5820 by 7.9365 millimetres) with its upper left corner at the upper left of the view, as AutoCAD places an object inserted, in the space worked in and on the current layer, its plot quality that of OLEQUALITY where that is 0, 1 or 2, and one undo step. A name that is not a file is answered Can't find file.; one that is no .bmp or .png is refused, .JPG files cannot be inserted by the presenter, which takes a bitmap or a PNG picture: nothing was inserted., and one that is no picture, The file is no picture an OLE object can be made of: and why. Objects of Create New, Link, Display as Icon and the documents of other applications need the application's own server and are not made, and AutoCAD makes an object of Paint of a bitmap where this makes a static one. PASTECLIP of a picture on the Windows clipboard (a bitmap another application copied, read as a PNG) makes the same frame where the clipboard holds no objects and no text, as AutoCAD pastes words as an MTEXT before a picture; PASTESPEC offers it as Image (PNG), and PASTEBLOCK and PASTEORIG refuse it. OLESCALE and OLEOPEN, OLERESET, OLELINKS, OLECONVERT and COPYLINK are not built.

WMFIN. WMFIN brings a Windows Metafile in as a block, as AutoCAD 2021's console runs it (probed through standard input; its IMPORT takes no .wmf, answering Can't find file. to one that is there, so IMPORT here still refuses one). The window's Open dialog, titled Import WMF, of the one type Metafile (*.wmf) gives the file; with FILEDIA 0, or with no window, it asks Enter name of WMF file to import (no extension):, a name without .wmf taken with it and one without a folder looked for beside the drawing. A name that is no file is answered Cannot find the specified metafile, one that is no metafile The file is no Windows Metafile: and why (AutoCAD says nothing), and a metafile that draws nothing is not imported. The file is read by the presenter's own reader, the placeable header (or none) and these records: SetWindowOrg and SetWindowExt, MoveTo and LineTo, Polyline, Polygon, PolyPolygon, Rectangle, RoundRect, Ellipse, Arc, Pie and Chord, CreatePenIndirect, CreateBrushIndirect and CreateFontIndirect with SelectObject and DeleteObject, TextOut and ExtTextOut, SetTextColor and SetTextAlign, SaveDC and RestoreDC, and IntersectClipRect; bitmaps, regions (SelectClipRegion, OffsetClipRgn and ExcludeClipRect change nothing in AutoCAD's console, so they change nothing here), hatch and pattern brushes, the mapping mode and the viewport are read past.

The picture becomes block WMF0 (WMF1 for the next, and so on) of the unit inches, and an INSERT of it as INSERT places one: Units: Unitless Conversion: 25.4000 (the factor from inches to the drawing's INSUNITS: 25.4 for millimetres, 1 for inches or for none, 0.0254 for metres, 2.54 for centimetres), then the insertion point with Basepoint/Scale/X/Y/Z/Rotate/Explode/REpeat (Explode and REpeat each ask [Yes/No] <Yes> and ask the point again; REpeat places the block again until Esc), the scale and the rotation. The block is laid out as AutoCAD lays it: its top left at the origin of the block and y down, fitted into half the view (half its width and half its height in the units of the view, whatever the unit of the drawing; 8.82739 by 5 where there is no view) with its aspect kept, a logical point (x, y) of the file at (x f, -y f) where f is the smaller of the half view's width over the window's width and its height over its height, the window's origin not taken (a window of 1 000 by 1 000 and a line from (100, 100) to (900, 900) in a view 10 high are the points (0.5, -0.5) and (4.5, -4.5), the INSERT scaled 25.4, which AutoCAD gives in a console of millimetres), and the window 1 by 1 where the file sets none. A window of a width or height below nought (a y-up metafile gives its height below nought) is laid out as AutoCAD lays it, case by case: a width below nought turns x over and fits by the height alone (a window of -1 000 by 1 000 puts (100, 100) at (-0.5, -0.5)); a height below nought turns y over (the point at (0.883, 0.883) in a window of 1 000 by -1 000) and fits by the width alone; both below nought fits by the larger of the two, draws upright, and gives the pens no width. Each MoveTo and LineTo is a polyline of two vertices, a Polyline record one open polyline, a Rectangle, Polygon, PolyPolygon, RoundRect, Pie and Chord a closed one, an Ellipse an open one of 101 points that ends where it starts, an Arc an open one of a hundred pieces to the turn; all are 2D polylines of the width of the pen times f (nought for a null pen, which draws no line) in the colour index AutoCAD gives it (below), 7 for black and white; the closed shapes take the colour of the brush, the pen's where the brush is hollow, and an Ellipse the pen's. A MoveTo and LineTo is cut by the clip IntersectClipRect sets (a clip is the intersection of the rectangles given, kept and given back by SaveDC and RestoreDC): a line is cut where it crosses the clip, one that runs across the clip along one axis and outside it along the other is cut across the first alone (a horizontal line above the clip, from x 0 to 1 000 with the clip from 200 to 600, is cut to 200 to 600 and stays where it was), a line that misses the clip altogether is left whole, and one that runs along an axis and misses it is dropped; a Polyline, Polygon or Rectangle is never cut. SaveDC and RestoreDC (a number below nought that many saves back, above it that save) give back the pen, brush, font, text colour, alignment and clip. A text is a TEXT of the style WMF- and the face and a number (WMF-Arial0, then WMF-Arial1 for another look of Arial in the file; WMF-Courier New0), the style's font the face with its bold and italic file, its character set and its pitch and family; the looks are told apart by the face (the case of its name does not matter), bold (a weight of 700; 600 is regular), italic, character set and pitch and family, and not by underline or strike-out. The bytes of the text are read as Windows-1252, whatever the character set of the font (AutoCAD 2021 does so: the bytes CF F0 E8 E2 E5 F2 of a Russian font are Ïðèâåò, and 80 is the euro sign). The ascent of the font's cell, its Windows ascent times the em rounded to a unit of the file (362 for Arial of 400, 333 for Courier New, 400 for Tahoma; 72 for Arial of 80), is how far the baseline lies below the reference point, which is the top left of the cell, and the text's height is 0.8 of it (80 units high at f 0.005 is 0.288, Arial's 72 of 80 being 0.9 of the em). A text turned a quarter reaches 0.0175 of the em further, and one turned to any other angle by a measure of its face that AutoCAD gave (0.1525 of the em for Arial, 0.205 for Courier New, 0.05 for Tahoma; 0.1 for a face not measured), which is why the height of a text at 45 degrees is about 0.85 of the em for Arial (0.84 of an em of 80) and not 0.72. A text aligned to the bottom of the cell lies the descent times the em times 1.26 (the ascent over the height of the capitals, Arial's 0.905 over 0.716) above the point; one aligned to the baseline lies on it. A text aligned to the centre or the right is not justified (AutoCAD 2021 leaves it left justified): it starts half the width of its text, or all of it, back from the point, the width being the advances of its letters in the font times the same 1.26, which is 1152 for "Hello" in Arial of 400, 1749 in Courier New, 1211 in Tahoma. A font whose file is not found is taken as Arial. WMFBKGND and WMFFOREGND are variables of 0 or 1 that AutoCAD keeps and its console ignores, so they are only kept here too. WMFOPTS (Wire Frame, Wide Lines) is a dialog of the full AutoCAD with no command in its console, and is not built. The colour index is not the nearest of the colours the indexes show on the screen: WMFIN takes the nearest, by distance in red, green and blue (the lowest index of the nearest), of a palette of its own, found by probing 72 000 colours through the console (99.7 per cent of them agree): the first seven indexes, the 24 hues of 15 degrees in ten indexes each (full, then half washed out, then the four lower levels of each: 166, 128, 76 and 38 of 255 for the full and 166, 127, 77 and 38 for the washed out, so that 12 is (166, 0, 0), where the screen has (204, 0, 0)), and the greys 250 to 255 at 84, 118, 152, 187, 221 and 255, black being 7 as white is. Dark green (0, 160, 0) is 92 and (128, 128, 128) is 251, which the nearest colour of the screen's palette gave 94 and 8.

Shapes and hatching (batch 3 of acad.pgp).

The prompts of these were read from AutoCAD 2021 (its resources and accoreconsole probes). SOLID asks Specify first point:, Specify second point:, Specify third point: and Specify fourth point or <exit>:, and keeps the corners in the order they are picked, so that the area runs 1, 2, 4, 3 round; Enter at the fourth makes a triangle of the third corner twice. It goes on with Specify third point:, the third and fourth corners of the last solid the first and second of the next (after a triangle, the third corner twice), until Enter; the whole command is one undo step. A strip of (0, 0), (10, 0), (0, 10), (10, 10), (0, 20), (10, 20) is two solids, the second from (0, 10) and (10, 10).

-BOUNDARY asks Specify internal point or [Advanced options]: and makes the area round each point and its islands as closed polylines, BOUNDARY created 2 polylines. Advanced options asks Enter an option [Island detection/Object type]: until Enter: island detection off makes the outer loop alone, and BOUNDARY takes the same settings for the rest of the session. BOUNDARY (BO) shows the window's Boundary Creation dialog first, as AutoCAD 2021's: Pick Points, Island detection, Boundary retention (Retain boundaries, always on, and the object type, Polyline or Region) and the boundary set: Current viewport, every object shown, or Existing set. New closes the dialog, asks Select objects: and shows it again with Existing set chosen, the areas then found among those objects alone (a point inside a square of 60 within one of 100, the outer square alone picked, makes the 100 by 100 polyline). Pick Points keeps the settings, shared with -BOUNDARY, and asks Pick internal point: until Enter; Cancel ends the command with nothing kept. The request is a public CadBoundaryRequest; with no window BOUNDARY asks the points at once. An area with an ellipse or a spline in it, as a side of the area or as an island, makes no polyline either: Spline or ellipse detected. Cannot create boundary., as AutoCAD refuses it (HATCH takes such an area). An ellipse or spline elsewhere in the drawing does not stop it. With the object type Region, -BOUNDARY and BOUNDARY make a region of each loop instead (BOUNDARY created 2 regions), an island a region of its own and not a hole in the outer one; a whole ellipse is a region, a spline still refuses. AutoCAD's Boundary set is not built for -BOUNDARY.

REGION asks Select objects: and makes a region of every closed loop the objects make: a circle, a whole ellipse and a closed polyline each alone, and lines, arcs, elliptical arcs and open polylines (the old heavy 2D POLYLINE too) whose ends meet two and two (four LINEs round a rectangle are one loop). It says 5 loops extracted. and 5 Regions created. as AutoCAD 2021 does of eight objects (a rectangle, two circles, four lines and a polyline of bulges), the regions made as one undo step on the current layer; a circle inside a rectangle is a region of its own, not a hole (SUBTRACT makes one). Lines that meet three at a point, a loop out of one plane and a closed spline make none (the spline is said). The data is written for the drawing's version, SAT text up to R2010 and SAB in the data store of the file from R2013 (regions); a region is drawn by the curves of its loops, listed by LIST (Area:, Perimeter: and the bounding box, as AutoCAD lists one), measured by AREA and MEASUREGEOM (Area = 1121.4602, Perimeter = 171.4159), named Region with its area and perimeter in Properties, and exploded by EXPLODE into its curves as AutoCAD explodes it. A region is moved, rotated, scaled and mirrored by MOVE, ROTATE, SCALE and MIRROR, copied by COPY (and by pasting) and stretched as AutoCAD does: its ACIS data is written anew for the body it becomes, the loops in their order, a mirror turning its normal over, a copy with a record and a GUID of its own (a box 40 by 30 moved by (100, 50) has its first side from (100, 50), and mirrored across x = 50 its normal is (0, 0, -1)). STRETCH holds the start of each curve of a loop (the centre of a whole circle) as its stretch points, and one inside the window moves the whole region, as AutoCAD's does; a region shows no grips (AutoCAD 2021's GetGripPoints gives it none). A DWG of R2004, R2010, R2013 or R2018 keeps it (the DWG writer writes no R2000 or R2007 yet), and saved as another version of DXF (SAVEAS, DXFOUT) a region is written for that version, SAT text up to R2010 and the data store from R2013.

UNION (UNI) asks Select objects: and makes of the regions chosen what any of them covers: the first, in the order of the handles, is a REGION still and takes the shape, the others are erased, and the result keeps the first's handle, layer, linetype and lineweight but is ByLayer in colour, as AutoCAD 2021 leaves it (a box of colour 1 united with a circle of colour 2 is ByLayer). A box 40 by 30 and a circle of radius 10 on its right edge give one region of area 1 357.08 whose circle is still an arc; two far apart give one region of two faces, which EXPLODE breaks into a region each. Objects that are not regions are passed over, and of regions in several planes those of the plane most of them share are combined and the others left as they are; fewer than two say At least 2 solids, surfaces, or coplanar regions must be selected., and nothing chosen ends it with no word. SUBTRACT (SU) writes Select solids, surfaces, and regions to subtract from .., asks Select objects:, writes Select solids, surfaces, and regions to subtract .. and asks again: the second choice is taken from the union of the first (the box less the circle of radius 10 on its edge has area 1 042.92, less a circle of radius 5 inside it, a face with a hole of 1 121.46); a choice that holds no region says No solids, surfaces, or regions selected., and fewer than two coplanar in all At least two solids, surfaces, or coplanar regions must be selected. INTERSECT (IN) keeps what every region chosen covers (two circles of radius 10 ten apart, a lens of 122.84). Where nothing is left the three say Null region created - deleted and erase them all. Each is one undo step, and the answer keeps arcs and ellipses as such, its area, perimeter and the number of regions the same as AutoCAD's solid modeler gives for the shapes probed (regions). The first region is the lowest handle where AutoCAD takes the first picked, because the command line keeps a selection in the order of the handles.

-HATCH writes Current hatch pattern: ANSI31 and asks Specify internal point or [Properties/Select objects/draW boundary/remove Boundaries/Advanced/DRaw order/Origin/ANnotative/hatch COlor/LAyer/Transparency]: until Enter, then makes the hatch as one undo step. A point in an area already specified says This area has already been specified.; Undo takes the last pick back; Select objects takes closed objects and asks again. Properties types the pattern as HATCHEDIT does and goes back to the prompt; for a gradient it asks Enter a gradient name or [?/Single color/Two color] <GR_LINEAR>:, Specify an angle for the gradient <0>: and Center the gradient [Yes/No] <Yes>:. Two color asks New gradient color [Truecolor/COlorbook] <0,0,255>: and New gradient second color:[Truecolor/COlorbook] <255,255,153>:, each a name, an index, red, green and blue as 255,128,0, or Truecolor and Red,Green,Blue:; a colour that is none is said so, A color number or standard color name is required., and asked again. Single color asks the first and then Specify a shade or tint value (0-1) <1.0000>:, and goes back to the prompt with the name and angle as they were, as AutoCAD does. The gradient is written as AutoCAD writes one of one colour: the colour at 0, its shade or tint at 1, group 452 of 1 and the value in group 462. The end is the colour's hue and saturation at the lightness the value says (red at 0.25 ends in 128, 0, 0; at 1 in white; (255, 200, 200) at 0.5 in a full red), the way AutoCAD 2021 worked out the ends of 45 pairs of colour and tint it was probed with; a value outside 0 to 1 is the nearer end.

-HATCH stores what it is given as AutoCAD 2021 does. A closed object selected is a loop of edges: a rectangle 0,0 10,10 is four line edges, (0 0)-(10 0), (10 0)-(10 10), (10 10)-(0 10), (0 10)-(0 0), in the polyline's own order from its first vertex and the way it runs, a bulged side an arc edge (72 2, with its centre, radius and start and end angles, 73 0 for one that runs clockwise), a circle one arc edge from 0 round; a loop found round a point keeps its polyline. The outer loop of each area is flagged 1, a loop inside it 16 and one inside that 0, so three squares 30, 20 and 10 wide one in another are 92 1, 16 and 0 (a loop made round a point is flagged as a polyline too, 3, 18 and 2, without the derived bit that would make AutoCAD 2021 want the pixel size of group 47). Every loop is stored whatever the island style is; the style, group 75, says which areas are filled, and is the value of HPISLANDDETECTION (0 Normal, 1 Outer, 2 Ignore; 1 at the start, as AutoCAD's, so Enter hatching style [Ignore/Outer/Normal] <Outer>:). The seed points, 98, are the point picked once for each loop found round it, and one point at the origin for objects selected. The loops of objects selected are listed in the order the objects were selected, the nesting alone flagging them (a rectangle inside a rectangle selected first has its loop first, flagged 16, then the outer, flagged 1), and ALL gives the newest object first, as AutoCAD 2021 does (console, probes pg and pi). For AutoLISP the points of a hatch's edges and seeds are three-dimensional, (72 . 1) (10 0.0 0.0 0.0) (11 10.0 0.0 0.0), as AutoCAD gives them. After SOLID the pattern prompt offers <Solid>.

The Hatch dialog of HATCH's seTtings and of HATCHEDIT has the same settings in a third column: Gradient colours (One color with a Shade to Tint slider, the second swatch hidden, or Two color), Hatch color, Background, Layer and Transparency (Use Current, ByLayer, ByBlock or a value from 0 to 90, 95 refused Requires an integer between 0 and 90.), Hatch origin (Use current origin, the Origin X, Y greyed; Specified origin with Origin X, Y, or Default to boundary extents and its corner; Store as default origin; Click to set new origin, by HATCH and by HATCHEDIT, closes the dialog, asks Specify origin point: and shows the dialog again with the point as Origin X, Y and Specified origin on, Esc showing it as it was) and Gap tolerance (0 to 5000, Value must be between 0 and 5000.). A specified origin not stored as default lays the hatches of this HATCH alone, the current origin given back when it ends; a corner of the extents is kept either way, as -HATCH keeps it.

HATCHSETORIGIN (Set Origin of a hatch's right-click menu) asks Select hatch objects: (hatches selected before it are taken, anything else picked is left out, and a hatch on a locked layer is passed over with 1 was on a locked layer.), then Select new hatch origin:, and lays the pattern of every hatch from the point, one undo step, nothing said. A hatch keeps no origin of its own: it is in the base points of its pattern lines, so the command moves each line's base point by what the origin moves, found from the pattern the presenter holds (ANSI32 at 30 degrees and scale 2 set to (10, 5) and then to (20, 20) has its first line based at (20, 20), not at (30, 25)). A pattern of a file of its own name on the support path (ZIGLINE in ZIGLINE.pat) is read from that file, so a hatch of it laid from (10, 5) and set to (0, 0) has its lines moved by (-10, -5); a pattern that neither the presenter nor such a file has is taken to have been laid from (0, 0). AutoCAD 2021 takes a hatch selected before the command (1 found, then Select new hatch origin:). A solid fill and a gradient have no lines and are left as they are; lines made by the user follow the hatch's spacing alone in the library, so a user-defined hatch is left as it is too, where AutoCAD moves its base point.

HATCH asks Pick internal point or [Select objects/Undo/seTtings]: and takes, besides those words, remove Boundaries (the same questions as -HATCH's, taking the loops of the objects selected out of the hatch) and Origin (-HATCH's, kept in the settings the next hatch is made with), which the Hatch Creation tab starts. Select objects takes the closed objects and goes back to the point prompt, as AutoCAD does, Enter making the hatch (it ended the command before). The Options that -HATCH keeps are HATCH's too: island detection off keeps the outer loop of each area alone, Create separate hatches makes one hatch of each area picked, Retain Boundary Objects keeps a polyline of each boundary found (the variable HPBOUNDRETAIN, 0 or 1), and the draw order is the one -HATCH's DRaw order set. HPDLGMODE (0 to 2, 2 at the start, as AutoCAD) says how HATCH shows its settings: 2 the Hatch Creation tab of the window, 1 the Hatch dialog first (shown where a window shows it, nothing where there is none), 0 the command line alone.

HATCHGENERATEBOUNDARY asks Select hatch objects: (the hatches selected before it are taken instead) and makes, as AutoCAD 2021's console does (probed: a square hatched round a circle gave a polyline and a CIRCLE, on the current layer, with nothing said), a closed polyline on the current layer round each loop of each hatch, and a circle for a loop that is one whole circle (a circle cut in two or three arcs where other objects cross it is still a circle). The objects follow nothing, and the hatch is left as it is; one undo step. A loop with an ellipse or a spline edge, and a hatch not flat to the plan, are passed over with 1 loop of ellipses, splines or a tilted hatch cannot be made a boundary and was passed over.

HATCHSETBOUNDARY asks Select hatch object:, Select objects to be used for the new boundary: and Erase selected linework? [Yes/No] <N>: (the three prompts AutoCAD 2021 asks), takes the hatch's loops out and makes them anew from the closed objects selected, the outer loops and the islands as HATCH finds them. The hatch follows the new objects where it followed the old (probed: it stayed associative), and where the answer is Yes the objects are erased and it follows nothing. A square 100 by 60 hatched round a circle of radius 10 and given a closed polyline 100 by 60 elsewhere fills 6 000 square units after, one loop. Objects that are not closed are counted, 1 object is not closed and cannot be a hatch boundary., and where none is closed Valid hatch boundary not found. and nothing is changed.

-HATCHEDIT asks Select hatch objects: (those selected before it are taken instead) and Enter hatch option [DIsassociate/Style/Properties/DRaw order/ADd boundaries/Remove boundaries/recreate Boundary/ASsociate/separate Hatches/Origin/ANnotative/hatch COlor/LAyer/Transparency] <Properties>:, the words of AutoCAD 2021's. Each option is one undo step on every hatch selected, except ADd boundaries, Remove boundaries and ASsociate, which work on the first. DIsassociate says Hatch boundary associativity removed. Style asks Ignore, Outer or Normal. Properties asks the pattern, scale and angle as -HATCH's Properties does and lays them on each hatch, which keeps its own origin, association and island style. DRaw order asks the five orders of -HATCH. ADd boundaries asks Specify internal point or [Select objects]: until Enter and adds each area found, or the loops of the closed objects selected, to the hatch, which follows their objects too where it followed those it had. Remove boundaries asks Select objects: and takes out the loops made of the objects selected (for a hatch that follows none, the loop with the same corners), an outer loop taking its islands with it. recreate Boundary asks Enter type of boundary object [Region/Polyline] <Polyline>: and Reassociate hatch with new boundary? [Yes/No] <N>:, and makes on the current layer a closed polyline round each loop (a loop that was a circle is a polyline of its arcs, as AutoCAD made it; a region where Region is chosen, which the hatch does not follow); with Yes the hatch follows the polylines. ASsociate asks Specify internal point or [Select objects]: and makes the hatch follow the objects that make the areas found, each loop those of the loop with the same corners. separate Hatches makes one hatch of each area (an outer loop and the islands after it), each following its own objects. Origin asks Set new origin (a point) or Default to boundary extents (the corner or the middle of the box round the outer loops). ANnotative, hatch COlor (the colour and the background, the drawing's current colour for a dot, no background for a dot at the second), LAyer and Transparency ask as -HATCH asks them, but change the hatches, not the settings of the next hatch.

The contextual Hatch Creation tab (green, as the Array tab is) is shown while HATCH or GRADIENT runs with HPDLGMODE 2, and the Hatch Editor tab while hatches are selected and no command runs (other objects selected with them do not hide it). Both have the panels Boundaries, Pattern, Properties, Origin, Options and Close. Boundaries: Pick Points, Select, Remove, and for a hatch made Recreate (-HATCHEDIT's recreate Boundary) and Display Boundary Objects (the hatch and the objects it follows selected together, for their grips), and Retain Boundary Objects. Pattern: the preview and the gallery of the type's patterns, or of the nine gradients. Properties: Type (Pattern, User defined, Solid, Gradient), Color and Background (the first and second colour of a gradient; the Select Color dialog, Use Current, None), Layer, Transparency (Use current, ByLayer, ByBlock, 0 to 90), Angle, Scale or Spacing, Double and the ISO pen width. Origin: Set Origin, the corners and the middle, Use current origin and Store as default origin. Options: Associative (turned off the hatch lets go of its objects; turned on it asks for them as ASsociate does), Annotative, Match Properties (MATCHPROP), Gap tolerance, Create separate hatches, island detection (Normal, Outer, Ignore or No Island Detection), Draw order, and Hatch Settings (the Hatch dialog). In the Hatch Creation tab a value is the setting of the next hatch at once (HPNAME, HPANG, HPSCALE and the others read it) and Close makes the hatch of the areas picked; in the Hatch Editor tab each value is one undo step named HATCHEDIT on every hatch selected, the pattern lines laid again from the origin the hatch has, and Close lets go of the hatches. The boundary buttons run the commands of the words above, so that the command line shows what they ask; a hatch selected stays selected, and its tab stays, once the command ends.

draW boundary asks Retain polyline boundary? [Yes/No] <N>:, Specify start point:, Specify next point or [Arc/Length/Undo]: ([Arc/Close/Length/Undo] from the third point) and Specify start point for new boundary or <Accept>:, and makes a loop of each shape drawn, in the order the shapes were drawn (an island drawn first is loop 0, as AutoCAD keeps them) and each as drawn (a square drawn clockwise stays so), one wholly inside another an island: a loop with none round it is flagged External, one inside one Outermost, deeper ones nothing (a square 50 across with one 10 across inside it and one 5 across inside that is flagged 1, 16 and 0; two squares that overlap are each External, and a square that shares an edge with the outer one is inside it). A shape drawn over itself is flagged as AutoCAD flags it, which is not by depth alone: a square drawn twice is two loops flagged 17 and 17 (External and Outermost), drawn three times 0, 17 and 17, four times 0, 17, 17 and 0; inside a square of 100, two of 20 are 1, 16 and 16, three of 20 are 1, 0, 16 and 16, four are 1, 0, 16, 16 and 0; the square of 100 drawn twice with one of 20 inside is 17, 17 and 0 (as AutoCAD 2021's console flags them). The same shapes picked by Select objects are 17 loops for a square and 16 circles over each other, and by a point 2, the circles one island. Enter leaves a shape open: it is a loop that is not closed, kept as the edges drawn and flagged NotClosed (33, or 48 inside another loop; the line (60, 0) to (80, 0) beside a square is one line edge, and an open triangle of two edges stays two, not closed across), and only beside a closed shape: open shapes alone make no hatch and AutoCAD says Unable to fill the boundary with solid. (or Unable to hatch the boundary.), HPGAPTOL closing none of them. A shape left open on its first point is a closed loop of the corners before it. Retained, each shape is a polyline made before the hatch (an open shape stays an open polyline, a shape left open on its first point an open one with the first point again), even where no hatch is made; with associativity on the hatch follows those polylines (each loop its own, an open one too), and associativity stays on afterwards. Not retained, the hatch is not associative, and associativity stays off afterwards, as AutoCAD leaves HPASSOC. Length goes on along the way the last segment left its end (the tangent of an arc). Arc asks Enter an arc boundary option [Angle/CEnter/CLose/Direction/Line/Radius/Second pt/Undo/Endpoint of arc] <Endpoint>: (CLose from the second segment on) and draws the arc segments of PLINE: by its end point leaving along the way the shape came (east at the first point, or the way the last line was drawn), or by an included Angle, a CEnter, a Direction, a Radius or a Second pt; Line goes back to straight segments, CLose closes the shape with an arc leaving the way it came, Undo takes the last segment off and goes on in line mode (All segments already undone. at the first point), an end that makes no arc says *Invalid*, and Enter ends the shape (open, as above; CLose or Close to close it). A line from (0, 0) to (100, 0), an arc to (100, 50) and a line to (0, 50) closed is 5 981.75 square units, the half circle of radius 25 on the right included. A shape of two points is a loop when Close closed it (a line and back, a hatch of no area, as AutoCAD makes it), or left open (a one-edge loop beside a closed shape); two points of one place make none. A shape that closes no area says nothing as it ends and, where no hatch is made, Unable to fill the boundary with solid. (a solid or gradient) or Unable to hatch the boundary. as the hatch is asked for; one point and Enter goes back to the main prompt, keeping the shapes drawn. remove Boundaries asks Select objects or [Add boundaries]: and takes out the loops the objects selected make (an island by its circle, say; the outer loop going takes the area with it), asks Select objects or [Add boundaries/Undo]: again, Undo bringing the last removal back and Add boundaries going back to the point prompt. Origin asks [Use current origin/Set new origin/Default to boundary extents] <Use current origin>:: Set new origin asks Select point: and Store as default origin? [Yes/No] <N>: (Yes keeps it for the next hatches, No lays this -HATCH's hatches from it alone), and Default to boundary extents asks [bottom Left/bottom Right/top rIght/top lEft/Center] <bottom Left>: and lays each hatch's pattern from that corner, or the middle, of the box round its outer loops, the corner kept as HPORIGINMODE keeps it. hatch COlor asks New color [Truecolor/COlorbook/. (for use current)] <use current>: and New background color [Truecolor/COlorbook/. (for none)] <None>:, LAyer Specify layer or [. (for use current)] <use current>: (Cannot find layer "NOSUCH". and asks again for a layer the drawing has not), and Transparency Specify transparency value (0-90) or [. (for use current)] <use current>: (a whole number, ByLayer or ByBlock; the alpha is 255 times what is left, rounded down, 127 for 50), a dot putting each back to the current one; they are kept in the document's hatch settings, as AutoCAD keeps HPCOLOR, HPBACKGROUNDCOLOR, HPLAYER and HPTRANSPARENCY. ANnotative asks Create annotative hatch [Yes/No] <N>: (<Y> once chosen, kept in the document's hatch settings); each hatch made after Yes is annotative at the annotation scale of its space (CANNOSCALE in model space, 1:1 in a layout), as AutoCAD 2021 makes one: its pattern lines multiplied by 1 over the scale and a context of that scale under its extension dictionary (see "Annotative objects" below).

Advanced asks Enter an option [Boundary set/Retain boundary/Island detection/Style/Associativity/Gap tolerance/separate Hatches]: until Enter: Boundary set asks Specify candidate set for boundary [New/Everything] <Everything>:, New taking Select objects: and then finding an area among those objects alone; a point where they close none says Valid hatch boundary not found. and the search goes on among every object, as AutoCAD 2021's console does (with the set of one square, a point in another hatches that square all the same), Everything all the objects of the space again; Retain boundary keeps polylines of the loops as well (those of an ellipse or spline have no corners and are left out), Style is [Ignore/Outer/Normal], Gap tolerance asks Specify a boundary gap tolerance value <0>: from 0 to 5000 (Value must be between 0 and 5000. outside), says HPGAPTOL set to 3 and closes loose ends as AutoCAD 2021 does, by how far they have to go on: a loose end is taken on along its own way (a line along its direction, an arc along its own circle, not its tangent: the arc of radius 50 ending at (96.9846, 67.1010) above a line at y 64 closes at (98, 64), where the tangent would meet it at 98.113) and closes where that reaches a line or arc no further than twice the gap and a pixel of the view (a line ending 3 off the middle of another, in a view 140 high on a screen 534 pixels high, where a pixel is 0.262, closes at a gap of 1.4 and not at 1.35; 2 off, at 0.9 and not at 0.85), or where it meets the way another loose end goes on, the shorter of the two ways no further than the gap and half a pixel (two lines whose ends are 5 and 5 apart across a corner close at 4.9 and not 4.8), and the longer no further than twice the gap and a pixel; two ends facing each other on one line, or not met so, are joined by a straight edge of no object where they stand no further apart than the gap and half a pixel (two lines 4 apart close at 3.9 and not 3). A drawing with no view, as a test, has no pixel. A square 100 by 100 with a gap of 2 in one side is hatched at a gap of 1 where there is no pixel (HATCH takes the same value), and separate Hatches makes one hatch of each pick. DRaw order asks Enter draw order [do Not assign/send to Back/bring to Front/send beHind boundary/bring in front of bounDary] <send beHind boundary>:, as AutoCAD starts (HPDRAWORDER 3): the hatch is put under the lowest object of its boundary, and -HATCH and HATCH share the choice. HATCH draws the hatch behind its boundary now too, as AutoCAD 2021's does: a square of four lines hatched by HATCH has the hatch first in the draw order. A hatch whose loops no object makes (draW boundary) stays on top. GRADIENT is HATCH with the type set to a gradient, as AutoCAD's ribbon takes it; HATCHTOBACK sends every hatch of the current space behind the other objects (1 hatch object(s) sent to back., or No hatch objects found.).

SPLINEDIT asks Select spline: and Enter an option [Fit data/Close/Join/Move vertex/Refine/rEverse/convert to Polyline/Undo/eXit] <eXit>:: Fit data only for a spline of fit points, Open in place of Close once it is closed, and Join only while it is open (the prompts and the splines were read from AutoCAD 2021 and met to 1E-5). Close makes a spline of fit points the periodic cubic AutoCAD makes through them and its first point again (the spline through (0, 0), (10, 10), (20, 0), (30, 10) and (40, 0) gets the 8 control points AutoCAD wrote for it), and Open the open cubic through the points again; a spline of control points is closed as AutoCAD closes one, its control points taken as the points of one period with uniform knots a step apart (the cubic of 7 control points gets AutoCAD's periodic form of 10 control points and the knots 0, 0, 0, 0, 1 to 6, 7, 7, 7, 7), and Open gives the 7 points back with the knots 0, 0, 0, 0, 1, 2, 3, 4, 4, 4, 4, whatever knots it had (its curve is then the uniform one of those points). Move vertex marks the first control vertex and asks Specify new location or [Next/Previous/Select point/eXit] <N>:: a point moves the marked vertex, which stays marked, and a spline of fit points loses its fit data. rEverse says Spline has been reversed.; convert to Polyline asks Specify a precision <10>: and replaces the spline by a polyline of lines (53 vertices for the spline above at 10) and ends the command.

Fit data asks Enter a fit data option [Add/Close/Delete/Kink/Move/Purge/Tangents/toLerance/eXit] <eXit>: (Open for Close once it is closed). Add asks Specify existing fit point on spline <exit>: and then Specify new fit point to add <exit>: for each point, put in after the one before it; at the first point it asks Specify new point or [After/Before] <exit>:, a point typed going before it. Delete takes out the fit point picked, Move is Move vertex on the fit points, and each change fits the cubic through the points anew, as AutoCAD does; a pick that is no fit point says Not a fit point.. Kink asks Specify a point on the spline <exit>: and puts a knot in at the nearest point of the curve until it stands three times (a knot the spline has already counts), the curve kept and a corner allowed there: at the fit point (20, 0) of the spline above the knots 28.28 stand three times and the fourth 1E-8 past, as AutoCAD wrote them. Purge takes the fit data out and goes back to the top menu. Tangents asks Specify start tangent or [System default]: and Specify end tangent or [System default]:, a point each: the start tangent runs from the point to the first fit point and the end from the last fit point to the point, and System default at the end takes both away. toLerance asks Enter fit tolerance <1.0000E-10>: and writes it; AutoCAD fits a curve that passes near the points, through the points moved by up to the tolerance (0.5 for the five points above moves the three inner ones up by 0.5); the presenter keeps the curve through the points. Join asks Select any open curves to join to source: and takes what meets an end of the spline, as JOIN does (a line, an arc, a polyline, a spline), saying 1 object joined to source and, for the curves it could not take, , 1 object discarded from the operation; the fit data go with it. Refine asks Enter a vertex editing option [Add/Delete/Elevate order/Move/Weight/eXit] <eXit>:: Add (Specify a point on the spline <exit>:) puts a knot in at the nearest point, the curve kept and a control point more, Delete (Specify control vertex to delete:, Not a control vertex. for a pick that is none) takes a control point out, Elevate order (Enter new order <4>:) raises the degree to one less than the order, Move is Move vertex, and Weight says Spline is not rational. Will make it so. for a spline that is not and asks Enter new weight (current = 1.0000) or [Next/Previous/Select point/eXit] <N>: of each control vertex in turn. The fit data go with the first change of Refine, not before. Elevate order goes to order 26 as AutoCAD's does (degree 25): the library raises a spline with its control points as AutoCAD's (DxfSpline.ElevateDegree) and draws it, a spline of degree 25 being a GeoSpline3 like any other. SPLINE and BLEND.

SPLINE (SPL, and Spline in the ribbon's Draw slide-out) writes Current settings: Method=Fit Knots=Chord and asks Specify first point or [Method/Knots/Object]:; for the control-vertex method the line is Method=CV Degree=3 and the options [Method/Degree/Object]. Method asks Enter spline creation method [Fit/CV] <Fit>:, Knots Enter knot parameterization [Chord/Square root/Uniform] <Chord>: and Degree Enter degree of spline <3>: (1 to 10, asked again for any other); the three are kept as the variables SPLMETHOD (0 Fit, 1 CV), SPLKNOTS (0, 1, 2) and SPLDEGREE for the next SPLINE. The fit method asks Enter next point or [start Tangency/toLerance]: and then [end Tangency/toLerance/Undo]:, from the third point [end Tangency/toLerance/Undo/Close]:, and draws the cubic through the points as DxfSpline.FitData fits it: the four points (10, 10), (30, 40), (60, 10) and (80, 50) give the 6 control points AutoCAD wrote and the knots 0, 0, 0, 0, 36.0555, 78.4819, 123.2033 four times, and Close the closed cubic of 7 control points. A start tangent is a point picked, the direction to it from the first point, and an end tangent the direction to it from the last point, which ends the command; the three points above with the start tangent (20, 10) and the end tangent (0, 0) have the control points AutoCAD wrote. toLerance asks Specify fit tolerance <0.0000>: and writes it to the spline (AutoCAD fits a curve that passes near the points by up to the tolerance; the presenter's curve passes through them). The control-vertex method asks Enter next point:, then [Undo]: and from the third point [Close/Undo]:, and makes the clamped uniform spline on the points of the degree set (lowered to the points less one where they are fewer, so that two points are a straight spline of degree 1); Close makes the periodic spline AutoCAD makes (4 points of degree 3 have 7 control points and the knots 0, 0, 0, 0, 1, 2, 3, 4, 4, 4, 4; 3 points keep the degree 3 and have 6). Enter ends the command, and makes nothing of one point. The spline through the points and the cursor is drawn while the next point is asked. Object asks Select spline-fit polyline: and replaces each polyline fitted with a spline (PEDIT Spline) by the spline on its frame, in the polyline's layer, colour and look, as AutoCAD does with its DELOBJ of 3; anything else is Only spline fitted polylines can be converted to splines. and Unable to convert the selected object., and Enter with nothing picked None found..

BLEND (Blend in the Modify title's menu) writes Continuity = Tangent and asks Select first object or [CONtinuity]: and Select second object: and makes a spline from the end of the first open line, arc, elliptical arc, polyline or spline nearest the pick to the end of the second nearest its pick, on the current layer. A circle or a closed curve is Cannot BLEND this object., and the same curve twice Cannot blend an entity with itself at the specified location.. CONtinuity asks Enter continuity [Tangent/Smooth] <Tangent>: and keeps the answer for the next BLEND. Tangent makes the cubic that leaves the first end along the first curve and arrives along the second, each handle a third of the distance between the ends long, as AutoCAD writes it to the digit: the lines (0, 0) to (30, 0) and (50, 20) to (80, 20) picked at their near ends have the control points (30, 0), (39.4281, 0), (40.5719, 20) and (50, 20) and the knots 0 to 28.2843. Smooth makes the degree 5 spline that also takes the curvature of each curve at its end (a line's nought, an arc's one over its radius); its control points are not AutoCAD's, whose Smooth spline starts by running back along the first curve before it turns.

CLASSICINSERT shows the same Insert palette as INSERT: AutoCAD's classic Insert dialog asks the same things (the block or file, insertion point, scale and rotation each given or specified on screen, explode) in another frame, so it is not built apart.

The command-line forms and SAVE (batch 4 of acad.pgp).

The prompts and messages of these were read from AutoCAD 2021 (its resources and accoreconsole probes). -PAN (-P) asks Specify base point or displacement: and Specify second point: as PAN does, and refuses Enter at the first, Requires two points, or a displacement followed by ENTER., asking again where PAN ends.

-MTEXT (-T) asks the corners and the options of MTEXT (Specify opposite corner or [Height/Justify/Line spacing/Rotation/Style/Width/Columns]:) and then, where MTEXT opens its editor, MText: a line at a time until a blank one; the lines are the paragraphs of one text (Hello\PWorld), and a blank first line makes an MTEXT of no words, as AutoCAD 2021 does.

LAYOUT (LO) and -LAYOUT (-LO) ask alike, in the words of AutoCAD 2021: Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>:, Set the default. The layout offered by Set, Rename, Copy, Delete and SAveas is the one shown, or the first tab where Model is shown (Enter layout to make current <Layout1>:). Set says Cannot find layout "X". for a name that is none; ? writes Active Layouts: and a row Layout: Layout1 Block name: *Paper_Space. for each sheet, by name. New asks Enter new Layout name <Layout2>:, the first LayoutN not taken, says nothing when it is made, and Layout "X" already exists, not created. otherwise. Rename asks the layout and Enter new layout name: (a change of letters alone is allowed), and says Layout "Plan" renamed to "Sheet1".. Copy asks Enter name of layout to copy <Layout1>: and Enter layout name for copy <Layout1 (2)>:, makes a layout of the page settings of the first and a copy of everything in its sheet, its viewports among it, and says Layout "Layout1" copied to "Layout1 (2)".. Delete asks Enter name of layout to delete <Layout1>:, takes the layout with its block and what is drawn in it out, and says Layout "Plan" deleted.; where it was the sheet shown, the next tab is shown (else the one before it), and where it was the only sheet a new Layout1 is made and shown, as AutoCAD 2021 leaves a drawing one; the tabs left keep their numbers (Layout1 1, C 3, D 4), as AutoCAD keeps them, and the next new layout takes the number after the highest. The sheet whose block is *Paper_Space, drawn in the ENTITIES section, cannot just go: a DXF without that block is refused by AutoCAD 2021 ("Missing Default entry *Paper_Space in SymbolTable:BLOCK_RECORD"), so the layout that follows it (the last one where there is none) is moved into its place, with its page settings and everything in its sheet, under its own name, its viewports keeping the colour, linetype, lineweight, transparency and plot style a layer is overridden to in them (Copy gives its copies the same). Model is refused by Copy, Delete and Rename (May not delete Model tab.), and a name with one of the characters < > / \ " : ; ? * | , = or a backtick in it, or longer than 255 letters, by New, Rename and Copy. Each option is one undo step.

Template asks Enter file name: (a name with no extension is looked for as .dwt, in the folder of the drawing where it is not found as typed, and "nofile.dwt": Can't find file. says it is not there) and Enter layout name(s) or [?]:; ? writes Layout(s) in drawing: and the sheets of the file, and asks again, names are parted by commas and take wild cards (Lay*), a name the file has no sheet of is passed over, and where none is found The specified layout(s) were not found in <file>. is said and the question asked again; Enter ends it. The file may be a DWT or DWG (read as a DWG) or a DXF. Each sheet comes as the last tabs, with its page settings and everything in it, its own viewport 1 made again, and its layers, linetypes and styles; the layout shown does not change, nothing is said, and the whole is one undo step. A sheet takes its own name where the drawing has no layout of that name, else Layout3-Plan: the first N that no layout of the drawing starts with (the numbers AutoCAD 2021 gave: with Layout1, Layout2 and Plan there, a second Plan was Layout3-Plan and Layout1 then Layout4-Layout1). SAveas asks Enter layout to save to template <Layout1>: and Enter name of output file: and writes the drawing as a template of that one layout: the other layouts out, model space empty, the layers, linetypes, styles and blocks as they are, as AutoCAD 2021 writes it. A name with no extension takes .dwt; .dwt and .dwg are written as a DWG of AutoCAD 2018, .dxf as a DXF after the questions DXFOUT asks of its settings; a file of the name is replaced without asking, as AutoCAD's console does. Model says May not save Model tab., a name that is no layout Layout "x" does not exist.. With FILEDIA 1 in the window both forms show AutoCAD 2021's dialogs instead of the file questions. Template shows Select Template From File (an Open dialog of Drawing Template (.dwt), Drawing (.dwg) and DXF (.dxf)), then Insert Layout(s) (CadInsertLayoutRequest): the file's layouts in the order of its tabs, the first picked, Ctrl or Shift picking several; OK brings in those picked as the typed names do, one undo step, and Cancel in either dialog brings nothing in. A template of Layout1, Plan, Sect and Cover with Plan and Cover picked adds Plan and Cover after the drawing's last tab. SAveas shows Create Drawing File (a Save dialog offering Layout1.dwt, of AutoCAD Drawing Template (.dwt), the AutoCAD 2018 DWG and the DXF versions; a DXF type gives the version, no question asked), and for a .dwt Template Options (CadTemplateOptionsRequest): the description, written into the DWG's template section where AutoCAD keeps it, the measurement, English or Metric (MEASUREMENT 0 or 1, the drawing's to start), and New Layer Notification greyed, since the presenter keeps no reconciled layers. Cancel in Template Options writes nothing. With FILEDIA 0, or no window, the command line asks as the console does.

-XBIND (-XB, XBIND, XB) asks Enter symbol type to bind [Block/Dimstyle/LAyer/LType/Style]: and Enter dependent Layer name(s):, names with wildcards parted by commas, and binds what an external reference brought into the drawing, as AutoCAD 2021's console does: the layer grid|WALL becomes grid$0$WALL (grid$1$WALL where that is taken) and is the drawing's own, with what drew by it and the linetype, text style or dimension style it names following, and 1 Layer(s) bound. or No matching Layer names found. (a name the drawing made itself is never matched). Block makes the block grid$0$BLK of the block BLK of the drawing grid references, with a copy of what it draws, from the file the reference names; the layers, linetypes and text styles its entities use are bound with it, as AutoCAD 2021 binds them (a line on WALL and a text on DOOR in MYSTYLE come as grid$0$WALL, grid$0$DOOR and grid$0$MYSTYLE, the reference's grid|WALL gone with them), layer 0 and what the block does not use left as they were. A dimension in the block binds its dimension style the same way, with every setting of it and the text style it uses: a dimension in MYDIM (text 5 high, arrows 3, scale 2, text style MYSTYLE) comes in grid$0$MYDIM, of the same contents, whose text style is grid$0$MYSTYLE; one in Standard comes in grid$0$Standard, with grid$0$Standard for its text style, and the drawing's own Standard is not touched. XBIND's Dimstyle and Style kinds list the reference's styles only where the drawing holds them as records, which the presenter does not make of a reference's styles. The command asks the symbol type again until Enter and is one undo step. In the window XBIND shows the Xbind dialog: the Xrefs on the left, a tree of each reference with its Block, Dimstyle, Layer, Linetype and Textstyle definitions (the blocks read from the file it names), closed to start, a reference or a kind opened and closed by its ▸ or ▾ or a double-click (a definition's double-click adds it), Definitions to Bind on the right, Add (a definition, or every one under a kind or a reference, each listed once) and Remove between them. OK binds those listed as -XBIND binds them, 1 Layer(s) bound. written for each kind, the whole one undo step; with no window XBIND asks -XBIND's questions.

SAVE asks, with FILEDIA 0 or no window, Save drawing as <file>: and, where the file is there, A drawing with this name already exists. and Do you want to replace it? <N>:; the drawing is known by the new name afterwards, as after SAVEAS (which also asks the format), a name ending in .dwg written as a DWG of AutoCAD 2018 and any other as a DXF. With a window and FILEDIA 1 it shows the Save Drawing As dialog, as SAVEAS does. Viewports, filters, QuickCalc and Quick Properties (batch 4 of acad.pgp).

VPORTS (VIEWPORTS) shows the Viewports dialog in model space: New Viewports applies a standard configuration (Single, Two: Vertical and Horizontal, Three: Right, Left, Above, Below, Vertical and Horizontal, Four: Equal, Right and Left) to the whole display or to the current viewport, previewed, and saves the result under the new name where one is typed; Named Viewports restores a configuration saved, or deletes it. -VPORTS asks AutoCAD 2021's Enter an option [Save/Restore/Delete/Join/SIngle/?/2/3/4/Toggle/MOde] <3>:; 2 asks Enter a configuration option [Horizontal/Vertical] <Vertical>:, 3 Enter a configuration option [Horizontal/Vertical/Above/Below/Left/Right] <Right>:, and each splits the current viewport. With no window to show the dialog VPORTS asks the same prompts, as AutoCAD 2021's console does. The viewport that stays current is the one AutoCAD keeps (probed in accoreconsole): the right half of 2 Vertical, the top of 2 Horizontal, the big one of 3 Right, the lower right of 4; the new ones take the next free numbers (CVPORT 3, 4, 5). Every new viewport shows the whole of what the one split showed, its centre kept, fitted to its own shape: a view 100 wide and 100 high split by 2 Vertical on a square area is 100 wide and 200 high in each half. SIngle keeps the current viewport alone (nothing where it is alone already); Save asks Enter name for new viewport configuration or [?]: and, for a name in use, Viewport configuration "A" already exists. Replace it? <N>; Restore asks Enter name of viewport configuration to restore or [?]: and says Cannot find viewport configuration "NOPE". before asking again; Delete takes names and wild cards (Deleted 2 viewport configurations., Deleted one viewport configuration., No matching viewport configurations found.); ? writes Current configuration:, each id# 2 with its corners: 0.5000,0.0000 1.0000,1.0000, and each configuration named, in the order of the names with *Multiple first (No matching viewport configurations found. where none matches the pattern); Toggle shows the current viewport alone and brings the others back the next time, as AutoCAD keeps them under *Multiple, written over by each Toggle of several tiles (three tiles toggled, split into two and toggled again leave the two as *Multiple); Delete with * deletes *Multiple with the rest, Restore of *Multiple or *Active ends at once with nothing said or changed, and Save refuses a name that begins with an asterisk with Invalid viewport configuration name.; Join asks Select dominant viewport <current viewport>: and Select viewport to join:, a viewport picked by a click in it, and refuses two that make no rectangle (The selected viewports do not form a rectangle.). Each change is one undo step. In a layout VPORTS and -VPORTS ask MVIEW's prompts, as AutoCAD's do. The tiles are CadDocument.TiledViewports, read from the *Active records of the drawing's VPORT table and written back when it is saved: the current viewport into the first *Active record, which keeps the snap and grid, the others and each configuration as copies of it with their own corners (10, 20, 11, 21) and views (12, 22, 40, 41). A drawing never split is saved with its VPORT table as it was. The window lays the canvas over the current viewport, framed in the accent, and draws the others beside it with their own views; a click in one makes it current. A drawing saved with tiles opens with them: the canvas takes the view of the current viewport (its centre and height, 12, 22 and 40, the height kept as AutoCAD keeps it, the width following the shape of the canvas), and the others are drawn with theirs; a drawing with one viewport still opens fitted to its extents. The other viewports are drawn again only when what they show changes (an edit, a selection, their own view or size), not when the current viewport is panned or zoomed. MOde asks Apply viewport configuration to [Display/Current viewport] <Display>: and then the options again, as AutoCAD 2021's -VPORTS does; the answer is what the Viewports dialog starts with in Apply to. 2, 3 and 4 split the current viewport whichever it is (probed in accoreconsole from one viewport to seven: the same corners and the same viewport current in both modes), so the mode changes nothing there. In the dialog a click in a tile of the preview picks it (framed in the accent) and Change view to gives it Current or a named model view of the drawing, its name then written in the tile: OK shows each new viewport with the view given, its centre kept and its size fitted to the tile's shape, and with Active Model Configuration picked the tiles as they are take theirs, all in the one undo step. Visual Style lists the drawing's visual styles as AutoCAD's list names them (2dWireframe as 2D Wireframe; AutoCAD's own Basic, Brighten, Flat, Gouraud and the like left out; 2D Wireframe alone where the drawing has none); the presenter draws each as 2D Wireframe. Named Viewports has Rename beside Delete: the configuration picked takes the name typed, one undo step, refused with Viewport configuration "Plan" already exists. or Invalid viewport configuration name..

FILTER (FI) shows the Object Selection Filters dialog. Its Select Filter list is AutoCAD 2021's (read from its resources): the kinds of object (Arc, Attribute, Block, Circle, Dimension, Hatch, Line, Polyline, Text, Viewport, Xline and the rest), the properties (Arc Center, Arc Radius, Block Name, Block Position, Block Rotation, Circle Center, Circle Radius, Color, Dimension Style, Elevation, Layer, Line Start, Line End, Linetype, Linetype Scale, Normal Vector, Point Position, Text Position, Text Value, Text Style Name, Text Height, Text Rotation, Thickness, Viewport Center, Xdata ID) and the begin and end of AND, OR, XOR and NOT groups. A line is Object = Line, Layer = WALLS (wild cards taken), Color = 1 - Red (300 says Invalid Color number.), or a test on a number or a point with its operator, =, !=, <, <=, > or >=: Arc Radius >= 15.0000, and for a point the operator of each of X, Y and Z, where * leaves a coordinate out: Line End X >= 100.0000 Y * 0.0000 Z * 0.0000 passes the lines that end at X 100 or more; a rotation is in degrees. Lines outside a group all have to hold; a group does what its name says (AND all its operands, OR one at least, XOR exactly one of two, NOT the one), a group may hold groups, and Apply refuses a list that is not well formed in AutoCAD's words (Invalid Filter list - Begin/end clause mismatch., Premature end., Empty clause/bad nesting., Wrong number of XOR/NOT operands., Maximum nesting exceeded.). A filter that takes the circles whose radius is under 1: Object = Circle, Begin NOT, Circle Radius >= 1, End NOT. Add to List, Substitute, Add Selected Object (the dialog closes while one object is picked, and its kind, layer, colour, linetype and what belongs to its kind, an arc's centre and radius, a text's position, words, style, height and rotation, join the list), Edit Item, Delete, Clear List, and named lists (Null Filter name not allowed., Invalid characters in Filter name., Invalid Filter name. for *unnamed, Cannot delete *unnamed Filter list.) kept in AutoCAD's own file, filter.nfl, which FILTER reads each time it starts: in the app it is %AppData%\OpenCAD2D\filter.nfl, Filter.nfl -- Do not edit this file. then, for each list, :ai_lisp|NAME with its tests as the lists of an AutoLISP ssget filter ((8 . "WALLS"), (-4 . ">=") and (40 . 15.0), (-4 . "<NOT")) and :ai_str|NAME with the lines as the dialog lists them; a file that does not read says Syntax error in Named Filter List file. Delete filter.nfl. (CadSelectionFilter.ToNfl, LoadNfl). Apply writes Applying filter to selection., asks Select objects:, says how many were filtered out, and keeps what passed as the Previous set, so the next command takes it with P, then Exiting filtered selection.. A test on a property tests the objects that have it: Arc Radius an arc, Text Height a text or an MTEXT; AutoCAD tests any object that has the same group code, so combine a property with its Object line as the help does. The list is that of AutoCAD's acfilterres.dll in full: MultiLine Style, Shape Position, Shape Name and Transparency are properties too (a name or pattern for the style and the shape's name, X, Y and Z for the position, as the others), and Material, Position Marker and the surfaces Blend, Network, Patch, Fillet, Offset and Extend are kinds of object. Transparency is a whole number of per cent from 0 to 90, as the Properties palette says it, or ByLayer or ByBlock (below 0 in the tests, ByLayer first), tested with =, !=, <, <=, > or >=; anything else says Invalid Value.; Select... lists ByLayer, ByBlock and the per cents in use. In filter.nfl it is (440 . n): 0 for ByLayer, 16777216 for ByBlock, and 33554432 and the alpha (0 clear, 255 solid) otherwise. The six surfaces AutoCAD makes by an operation are plain SURFACE objects in AutoCAD 2021 (probed: Surface.CreateOffsetSurface and CreateFilletSurface give the DXF name SURFACE), so each of the six kinds matches every plain SURFACE and none is told from another; Material and Position Marker match nothing the presenter holds. The redefine prompt A Filter with this name already exists. is not built.

QUICKCALC (QC) shows the QuickCalc palette, which stays open while commands run: the input, evaluated by Enter or =, the history (a line double-clicked comes back), the number pad with its memory (MC, MR, MS, M+, M-), Scientific (sin, cos, tan as tang, log, 10^x, asin, acos, atan, ln, e^x, r2d, d2r, abs, rnd, trunc), Clear, Clear History, Paste value to command line, and the buttons that pick in the drawing: Get Coordinates, Distance Between Two Points, Angle of Line Defined by Two Points, Intersection of Two Lines Defined by Four Points, each asking >> Enter a point: through CAL and putting the value into the input (refused while a command runs, Acquiring points from the drawing area is not possible during a command). CAL asks >> Expression: and writes the value as AutoCAD 2021's command line does, whatever the units: a whole number as it is, a real number to nine significant digits, a point as x,y,z. 1+2*3 is 7, sqrt(16)+2 6, dist([0,0],[300,400]) 500, 1/3 0.333333333, ang([0,0],[300,400]) 53.1301024, [100,50]+[20,30] 120,80,0; 2^3^2 is 64 (the powers are taken from the left). It asks for what the expression picks in the drawing, in the order it meets it: cur >> Enter a point:; the snap functions end, ins, int, mid, cen, nea, nod, qua, per and tan >> Select entity for END snap: (the point of the object picked that the snap gives, wherever on it the pick lay: end the end nearest the pick, qua the nearest quadrant; per and tan from the last point, the foot or touching point nearest the pick; int needs the pick at a crossing; an object with no such point says Improper type of object picked., a pick on nothing No object picked., and the prompt comes again); rad >> Select circle, arc or polyline segment for RAD function: (a circle, an arc, or the arc segment of a polyline nearest the pick, whose radius it gives; a straight segment of a polyline is Polyline arc segment must be picked., any other object Improper type of object picked.); and mee, vee, vee1, dee and ille, which pick two or four ends. dist(end,end) picks two ends. The vector functions are vec(p1,p2), vec1, nor(v), nor(p1,p2), nor(p1,p2,p3), dpl(p,p1,p2), dpp(p,p1,p2,p3), plt(p1,p2,t), pld(p1,p2,dist), ilp, ang(apex,p1,p2) and ang(apex,p1,p2,normal), abs of a point is its length, and cvunit(value,from,to) converts the common units of length (mm, cm, m, km, inch, ft, yd, mile, micron) and angle (degrees, radians, grads). tan is the snap, not the tangent of an angle (tang, as AutoCAD's); app is no function of AutoCAD 2021's CAL. A wrong expression writes Error: and AutoCAD's reason (Operators '+', '-' require operands of the same type, Division by 0) and asks again. Typed as 'CAL at a prompt for a point, a distance or an angle, CAL runs inside the command: its prompts are written after >>, so >>>> Expression:, nothing is written for the value, and once Resuming LINE command. is written the value is typed at the prompt that was waiting, the point as 11,21,0 or the distance as 7; Esc ends both. The calculator is CadCalculator. getvar(name) reads a system variable of the drawing, the name as it stands, not worked out: getvar(textsize) 3.5, an angle in radians (getvar(snapang) 0.523598776 for 30 degrees), a switch 0 or 1, a point as x,y,z (a point of two coordinates with 0 for the third); getvar(nosuchvar) says Unknown AutoCAD system variable NOSUCHVAR, a text variable Only real, integer or point AutoCAD system variables accepted, and anything but a name Use GETVAR(AutoCAD_system_variable). w2u(p) and u2w(p) change a point between the world and the current user coordinate system (with UCS Origin 10,20,0, w2u([1,2,3]) is -9,-18,3 and u2w([1,2,3]) 11,22,3; with UCS Z 90 w2u([1,0,0]) is 0,-1,0). rot(p,origin,angle) turns a point about the line through the origin parallel to Z and rot(p,p1ax,p2ax,angle) about the line through two points, the angle in degrees (rot([1,0,0],[0,0,0],[0,1,0],90) is 0,0,-1; a point on the axis says The point to be rotated lies on the axis of rotation). xof, yof and zof keep one coordinate of a vector or number (xof([1,2,3]) 1,0,0), xyof two, and rxof, ryof and rzof give one as a real number; each says Function Xof requires one argument or requires vector argument as AutoCAD's does. Units Conversion, Variables and feet and inches are not built.

QUICKPROPERTIES (QP) shows the Quick Properties panel near the cursor over the objects selected (asking Select objects: where none are): the kind and count, then Color, Layer and Linetype, edited as in Properties, one undo step each. QPMODE starts at -1, as AutoCAD 2021's does; above nought the panel comes up whenever objects are picked with no command running, and Ctrl+Shift+P switches its sign, saying <Quick Properties panel on> or <Quick Properties panel off>. QPLOCATION starts at 0 and takes 0 or 1 (Requires 0 or 1 only. for the rest) as AutoCAD 2021's does, but is only kept: the panel is always placed by the cursor. The panel's customization (the CUI's lists by object kind) is not built; QPMODE and QPLOCATION last for the session.

A dimension's picture is laid out from its style as AutoCAD 2021 lays it out: DIMTAD puts the words on the line, which is broken about them by DIMGAP (0), above it (1, and JIS, 3), on the side away from the points measured (2) or below it (4); DIMJUST puts them in the middle, next to an extension line or over one; and where the words and the arrowheads do not both fit, DIMTIX, DIMSOXD, DIMATFIT and DIMTOFL say what moves outside, DIMTIH and DIMTOH whether the words stay level. With ISO-25's sizes a dimension of 100 has its words "100" in the middle, one of 5 its words inside and its arrowheads outside, and one of 7 its arrowheads inside and its words 3.75 past the second extension line. The arrowheads need two lengths and two gaps between the extension lines, 6.25 with those sizes (outside at 6.24, inside at 6.26), and words their width and a gap each side, above the line as on it. The line starts at the back of each arrowhead, 2.5 in from its tip, but for the ticks, Dot small, Dot small blank, Integral and None, which take no room and never move out. Words on the line (DIMTAD 0) fit between the arrowheads with two gaps each side: "8" of opencad2d moves out of a dimension of 8. Under DIMATFIT 3 words wider than the arrowheads' room stay inside and the arrowheads go out: "12" of opencad2d widened 1.8 times, 5.188 wide, stays between extension lines 12 apart. DIMTVP lifts the words of DIMTAD 0 by that many times their height, the line broken about them below 0.7; a DIMGAP below nought draws a box round the words, the gap clear of them.

DIMTMOVE says where words go that the fit moves out or DIMTEDIT puts by hand. Under 0 they stand beside the line, which DIMTEDIT moves to run through the point given, the words above it there (on it for DIMTAD 0, the line broken a gap clear of them, and run on to a gap short of them past an end); kept level by DIMTOH past an end, they stand on a level landing, or with none a gap past the end where the line is within 15 degrees of level, as AutoCAD 2021 draws them at 5, 10 and 15 degrees. Under 2 the fit puts them over the line, away from the points, DIMEXE, one and a half DIMGAP and half their height out (their height more where they stand below it as they read): "4" moved out of a dimension of 4 stands 5.9375 below the middle of its line; DIMTEDIT puts their middle at the point. Under 1 the same place is a leader's end, the leader from the middle of the line a third as far along again, and a landing on to the words. Words DIMTOH keeps level stand DIMEXE, half DIMGAP and their height out instead, square off the middle of the line and level at any angle of it: that "4" 6.5625 below, and the "0.5000" of a continued dimension of 0.5 in acad.dwt's Standard on a leader straight up from the middle to 0.4088 (Arial's 0.1838 high words, acad.dwt's Standard text style being Arial), a level landing two gaps long on away from the line, the words a gap past it; DIMTEDIT draws a leader to words at or beyond a DIMGAP plus the larger of an arrowhead and half the words' height with DIMEXE from the line (probed over arrowheads of 1.5 to 6, words 2.5 and 4 high, gaps of 0.3 to 1.5 and DIMEXE 0 to 2.5), 3.15 with ISO-25's sizes and 4.625 with arrowheads of 4, the words starting at the point, and none to words nearer. DIMTEDIT Left and Right put the words an arrowhead and a gap in from the extension line on that side as they read (the top of a vertical line is its left), with a gap about them: "100" of Arial on a line at 30 degrees stands 6.733 in. Under DIMTIH they stand level, centred on the line, which is broken about them: 6.895 in on that line. Under DIMTMOVE 1 words put past an end of the line, on its way, have the line run on from the end to them, to the near edge of words on it and to the far edge of words above it, a gap past each: "100" 5 wide put 20 past the end of a line 100 long has it run on to 116.875 on it and 123.125 above it. Words that reach within an arrowhead and the gap and their width of an extension line are laid again as AutoCAD 2021 draws them: "100" of Arial (5.28 wide, 6.53 with its gaps) on a line 100 long, arrowheads 2.5. Under 0, put before the line within 5.765 of it they stand 5.765 before it, a line 2.5 long run back to them and the arrowheads inside; put exactly on the first extension line (as AutoCAD reads a point there, a point at 0 and not 0.001) they stand 5.765 past the second, the line run on 2.5 to them; put on the line between the extension lines within 5.765 of one, they stay and the arrowheads turn out on lines 2.5 long, the line running whole from one extension line to the other, broken a gap clear of the words only where that leaves some before them (3.5 in: from 0 to 0.235 and from 6.765). Words above the line, clear of the arrowheads, leave them inside. Under 1 and 2 words on the line within that reach turn the arrowheads out and leave the line whole, and words put before an end of it have the line run back to them only once they stand clear of the arrowhead's length, never a break where it would take only one end of the line. A letter the face lacks is measured as AutoCAD 2021 draws it from another font where the canvas gives no measure: U+4E2D of Arial 2.5 high is 2.7095 wide and 3.2821 high, U+2205 2.4454 and 2.6927. Moved words are drawn by AutoCAD 2021's rules for an ordinate dimension too: DIMTEDIT runs its leader to the words, a gap short of them on it (DIMTAD 0) or under them where they stand beside it, jogged where the point is to one side of the feature: the point (1200, 0) measuring 1200, its words moved to (1208, 50), has its leader up to 35.764, across 8 as it rises 5, then 5 more to 45.764; the first leg is never shorter than two arrowheads (words moved to (1192, 15): up to 5, across, up 5 more). Under DIMTMOVE 2 the leader stays where it ends and does not run on under the words.

DIMLINEAR asks Specify dimension line location or [Mtext/Text/Angle/Horizontal/Vertical/Rotated]: and DIMALIGNED [Mtext/Text/Angle], as AutoCAD 2021: Mtext and Text ask for the words, Angle turns them (Specify angle of dimension text:), and Rotated sets the line's angle (Specify angle of dimension line <0>:): 0,0 to 100,0 rotated 30 measures 86.6025. Two origins typed or picked with no snap that holds on to an object make a dimension nothing follows, and DIMLINEAR says Non-associative dimension created. before it asks the line's place (DIMASSOC 2). Words turned by Angle stand centred on the line whatever DIMTAD says, the line broken where their turned box and the gap cross it: "100" 5.25 wide and 2.5 high turned 45 breaks it 2.65 each side of the middle. Turned words fit between the extension lines by the reach of their box, grown by DIMGAP, along the line (its width over the cosine of the turn and its height over the sine: "100" turned 30 needs 7.55, turned 60 6.56, turned 90 3.8), more than the chord the line takes through them; with the arrowheads they need that reach or the chord and two arrowheads and gaps, whichever is more ("12345.6789" turned 10 needs 25.8). Where they do not fit they stand outside, on the line, an arrowhead (two where the arrowheads are out) and half the chord past the end, level with its end on a slanting line; under DIMTMOVE 1 the leader runs square off the line to a level landing and they are turned about the middle of their start (DIMTMOVE 2 puts their middle 4.1154 up), unless half the height of their turned box, (width / 2 + gap) sin t + (height / 2 + gap) cos t, reaches twice as far as the leader would rise (twice 4.1154 here): then AutoCAD draws no leader and no landing and their middle stands on that start ("1234567890" 18.9 wide turned 60 on a line of 5 has 9.67 against 8.23, at (3.125, 34.117); 13 digits turned 30, 8.14, keep the leader and 14, 8.62, lose it; probed over styles of other sizes, gaps and DIMEXE: every one with a leader under 1.98 times and every one without over 2.01), and DIMJUST 3 and 4 put them on the extension line, which is not run on. A DIMTVP that is not nought lifts them. A DIMLINEAR of 100 at DIMSCALE 100 (0.18 sizes) with its words turned 30 has them at (154.38, 30) outside the second line, the arrowheads in, and turned 20 at (171.185, 30). Turned words put by DIMTEDIT turn the arrowheads out where they reach within an arrowhead and half their chord of an extension line, whatever their height, unless they are wider than the line. Turned words put past an end of a slanting line under DIMTMOVE 0 stay at their point, and the whole dimension line, its extension lines and arrowheads move out along its normal: AutoCAD 2021 takes the chord the line makes through the box of the words (3.3153 for "100" turned 20 on a line at 30 degrees) level, not along the line, so the line ends that chord short of the point along x and moves by its share across the line, the chord times the sine of the line's slope, to the side the words lie (1.6577 further out at 30 degrees, 2.0235 at 90, 1.117 at 200 for a line of 40 with the words put 8 past its end and 5 over it; the other way for a line leaning the other way and for words before its start, where the sign follows which way the words lie in x). On a short line they stand an arrowhead and the cosine's share of the chord past the arrowhead's end (a line of 7.2 at 30 degrees: 12.5711 along). Under DIMTMOVE 1 turned words put near an end of the line, over it or past it, where the level of their point lies beyond the level of that end, have the shorter of two leaders: the line run on from its end to that level and a level landing back from there to a gap beyond the words (an arrowhead long at least, the words moving out where it would be shorter), or the straight leader from the middle of the line to their point. "100" put 8 past the end of an upright line of 40 and 5 over it has its line run on to 48 and a landing of 2.5, the words 0.765 further out; the run and the landing together (the run to the level of the point and the landing across it over the sine of the slope) are shorter than the straight leader up to 45 across for that line (60 at 5 past the end, 36.67 at 12), and at 13.2713 across for a line of 40 at 60 degrees with the words 8 past its end (30.987 each way), so 13 over it is run on and 14 over has the leader from the middle; 5.5 across at 30 degrees, 8.85 at 45, 17.53 at 70. Every size of the style, the distance of the line from its points, the words' length and their angle leave the choice as it is, and the distance past the end hardly moves it. Words over the line by less than DIMGAP and an arrowhead (or half their height and DIMEXE, whichever is more) are run on to whatever the length of the line, on a line of 10 at 20 degrees too (the landing 2.5, the words moved in to stand at its end), so a line of 40 at 20 degrees is run on up to 3.566 over it, where 28 degrees and more had it up to 5. A line leaning back (120 and 135 degrees) is run on as long as the level of the point is beyond its end (13 across but not 14 at 120 degrees for a line of 25). The run is never less than an arrowhead: the level of the words 2.04 on is made 2.5 on a line at 140 degrees, and the landing and the words move along with its end (0.459 along, 0.295 higher); the same for an upright line of 7.2 with the words 1.44 past its end, which stand 1.06 higher. Words over the start of a long line below its level are run on backwards. The run is not for words past an end alone: turned words put between the extension lines are run on to their level in the same way where it lies beyond the nearer end ("100" turned 20, put 2 along a line of 40 at 30 degrees and 3 under it, has the line run on backwards 3.196 and a landing of 2.735; put 1.5 along and 1 under it, 0.116 below the level of the start, the arrowheads turn out, the run is made the two arrowheads of their short line and the words move down 2.384 to its level, the line between the extension lines drawn once). Turned words put within the leader's reach of the line (3.125 or less over it or under it) and not run on stand where they were put and break the line by their chord (6.63 for "100" turned 20 on a line at 30 degrees), but centred on the middle of what the line takes of their box (half the width and a gap along them, half the height and a gap across), not on the foot of their point: 0.18 on for words 1 under it, 0.18 back for 1 over it, 1.69 on for 2 over and 2.37 for 2.25 over it, where the box only grazes it, and no break where the line meets the box past its end. Where that break would take part of an arrowhead (it starts less than 2.5 from the end) the arrowheads turn out and the line is whole, drawn twice: words 2.25 over a line of 40 at 30 degrees and 2 along it, the break from 3.05 and the arrowheads in at 4 along. On a line too short for its arrowheads they stand out on a line of their own, and the run starts where that line ends (two arrowheads out at least); the line between the extension lines is then drawn twice where the leader goes from its middle and once where the line is run on (lines of 3, 5 and 6). On a level line the words put past an end within the leader's reach are laid on the line, which is run to a gap and half their width short of them ("100" turned 20 put 8 past a line of 40 and 2 over it is centred at (48, 30), the line run on to 44.735). Turned words on the middle of a short slanting line under DIMTMOVE 1 that turn its arrowheads out have the line between the extension lines drawn twice, as AutoCAD 2021 draws it (29 of 29 probed, none on a level line). Words kept level by DIMTOH or DIMTIH on a slanting line fit by the same reach of their box as turned ones ("123456789" on a line of 9 at 30 degrees reaches 10.3 and goes out on a leader square to the line), and, put out under DIMTMOVE 1, lose their leader as turned words do where half the height of their box across the line reaches twice the leader's rise ("1234567890" on a line of 9 at 45 degrees, middle at (5.4032, 35.9041) along the line and across it). Where the line, run on, reaches the level of the leader's knee (4.117 over the middle of the line for the style of the probes: their height, DIMEXE and half a gap) the level words are put out to it instead of standing with no leader: the line reaches that level run = 4.117 cot s - l / 2 beyond the nearer end (4.63 for a line of 5 at 30 degrees, 1.62 at 45, 1.35 at 120, 2.63 for a line of 9 at 30), and where that is more than nothing the line is run on to it, an arrowhead at least (two where the arrowheads stand out on a short line of their own, so 5 for a line of 5 at 30 degrees: no more is drawn to it, and 6.13 on a line of 2 starts the run where that short line ends), and a level landing leaves from the bend towards the side of the knee: under DIMTAD 1 as long as the words and their gaps and an arrowhead (30.394 for 14 digits), under DIMTAD 0 an arrowhead (2.5), the words starting an arrowhead and a gap along it and level with the landing under DIMTAD 0, a gap and half their height over it under 1. The line between the extension lines is then drawn once. Where the line never reaches the level (run below nothing: 9 digits on a line of 5 at 60 degrees, 8 at 75) there is no run and no leader, the words stand centred where they would start, and the line between the extension lines is drawn twice where the arrowheads stand out (tw19: 64 pictures that differed; tw32, 1 152 more of lines of 2 to 12 at 20 to 65 degrees and their mirrors). Words put out by the fit and then turned (DIMTEDIT Angle) on a slanting line are laid the same way where their box reaches as high, with a landing an arrowhead long whatever DIMTAD says and their middle a gap and half their width past its end, level with it ("1234567890123456" turned 60 on a line of 5 at 30 degrees: a landing of 2.5 level with the end of the short line the arrowhead stands on, the words centred 15.9 past its end); words turned 90 on a line at 20 degrees are laid differently and not yet. Every dimension made writes the middle of its words (group 11) and its measurement (42), as AutoCAD writes them with its block; words the fit puts past a leader under DIMTMOVE 1 are written by their start, level with their middle, as AutoCAD 2021 writes them: that "0.5000" of a continued dimension of 0.5, its middle at (100.8933, 20.4088), as (100.52, 20.4088). DIMTFILL draws a mask behind the words, the MTEXT's background 1.25 times their height, of the drawing's background for 1 and of DIMTFILLCLR for 2; DIMTXTDIRECTION, words read from right to left, turns them half round where they stand, a level dimension's to 180 degrees and an upright one's to 270, as AutoCAD 2021 writes them into its block; under DIMTMOVE 1 a leader's words stand on the other side of their point.

Radius, diameter and angular dimensions follow the same variables. A radius of 20 with its line put 45 from the centre has its arrowhead outside the rim, its line from the back of it on under the words, and a line from the centre to the rim by DIMTOFL, or with DIMTOFL off the centre mark of DIMCEN (centre lines too where DIMCEN is below nought); put 8 from the centre, the arrowhead stands inside and the line runs in past the words. Inside a small circle DIMATFIT 3 keeps the words where they are put, no nearer the rim than two arrowheads and the gap; 0 to 2 put them in the middle of the line where they fit, else outside past the rim next to it, however far out the line was put: "R20" put 35 out stands 8.75 from the centre. DIMTIX puts the words outside next to the rim wherever the point was under DIMATFIT 3 (and under DIMTMOVE 1, whatever DIMATFIT), a diameter's far arrowhead outside with them and DIMTOFL's line through, or without DIMTOFL the centre marked; level words are decided by DIMTIH there and stand on a landing an arrowhead long: with Arial 2.5 high, "R20" put 40 out at 30 degrees stands 28.6 out, its line from 22.5 to 32.5. Under DIMATFIT 0 to 2 (and 0 to 2 with DIMTMOVE 2) DIMTIX keeps the words inside however tight the radius, the arrowhead going out on its short line where they leave it no room: a radius of 5 has its line whole to the rim and the arrowhead outside, and with DIMTOFL off no line and the centre marked. What a tight radius does with its words is decided by the room their box takes along the line, grown by DIMGAP: its width and a gap each side along a level line ("R6" of Arial 2.5 high, 4.03 wide, takes 5.28), its height and a gap each side along an upright one (3.80), and, where DIMTIH keeps the words level across a slanting line, the length the box reaches along the line (6.47 at 30 degrees; the chord of the line through the box's middle, 6.10, for the larger decisions below). Words that stand on the line (DIMTAD 0, and DIMTAD 1 and 4 kept level on a slanting line) need the chord and an arrowhead and two gaps to stay in with the arrowhead out, and three arrowheads past the chord to keep the arrowhead in as well: "R15" of Arial 2.5 high with DIMASZ 2.5 and DIMGAP 0.625 keeps its words in from a radius of 10.5 and its arrowhead in from 14.74, so a radius of 12 has the arrowhead outside on its short line and its words in the middle of the line it would have left, 4.114 out at 30 degrees. DIMATFIT 0 moves both out below the first radius, 1 keeps the words in from the box alone (5.28 for "R6") and moves the arrowhead out until the second, 2 moves the words out and keeps the arrowhead in from DIMASZ and two gaps, 3.75, putting the line on from the rim. Words off the line (DIMTAD 1, level on an exactly level line) need the box alone and take the arrowhead in with them. Level words moved out stand on a landing from the rim and two arrowheads, no more. A diameter's words on its line (DIMTAD 0) take a gap each side and, with the arrowheads inside, the arrowheads' room too, two arrowheads and two gaps past their chord: "%%c6" 4.357 wide fits a diameter of 6 under DIMATFIT 1, and needs 11.86 with its arrowheads in, the line through the circle broken a gap clear of it. An angle's extension lines run from DIMEXO off its points to DIMEXE past the arc wherever that is any length: points 20 out and the arc 20.3 out give lines from 20.625 to 21.55. An angle of 60 degrees with its arc 30 from the vertex has its arc from the back of one arrowhead to the back of the other, 4.78 to 55.22 degrees, the arrowheads set along their chords; an angle of 8 degrees has its words and arrowheads outside past its first ray, the arc run on and a line along it to the words, or under DIMTMOVE 1 and 2 over the arc, out along the middle of its sweep: under 1 past a leader from the arc to two arrowheads beyond it (beyond the farthest point where that is further), under 2 their middle there, or where the points lie beyond the arc where the words first fit between the extension lines. DIMJUST 1 puts an angle's words next to its second ray, 2 next to its first. Words of an angle moved by DIMTEDIT stand on the arc, which then runs through the point given, under DIMTMOVE 0 ("60°" moved 50 out at 30 degrees stands 51.9 out, above the arc as it reads), level past a leader from the middle of the arc under 1, and turned along the arc under 2. The arc point of an angle's words put by hand (group 10 of three points, 16 of two lines) is written two thirds of the way round from its first ray where the point stands nearer that ray than the second as seen from the vertex (the short way round), and a third where nearer the second: an angle of 60 degrees from 0 with its words put at 215 degrees or at 22.7 has it at 40 degrees, put at 100 or at 35 at 20; the arc through the point itself under 0, the arc it was on under 1 and 2, and exactly between the rays AutoCAD's choice is its own rounding. Probed with 648 pictures of angles of three points and of two lines under DIMTMOVE 0, 1 and 2 and 576 with the rays given the other way round and an angle past a half turn: 326 and 151 differing before, 4 and 17 now; the e3 ring of 13 968 pictures at 240 out went from 3 479 differing to 40, 26 of them the words put at 210 degrees, exactly between the rays. Those of a radius or a diameter slide along its line, which stays, to where the point falls on it under 0 and 1, and stand at the point under 2, but under DIMTMOVE 0 and DIMATFIT 0 to 2 DIMTEDIT turns the line toward the point: "R20" of a circle of 20 put 35 out at 30 degrees, moved to 15 out at 120 degrees, has its line at 120 degrees, its words 15 out on it with the line whole to the arrowhead; moved 25 out they stand 28.6 out, the arrowhead outside (inside under DIMATFIT 2, the words then 26.25 out). Under DIMATFIT 3 words moved within the room next to the rim are pushed out and written 36, those inside held back from the rim as they are put there (15 out stands 11.25 out), group 11 the point of the line they stand by. A radius made under 1 or 2 keeps its line through the point the circle was picked at. Words of an angle moved under DIMTMOVE 1 or 2 onto the arc break it about them, as words in the middle of it do, and under 0 send the arrowheads outside with the arc drawn whole where they cut into an arrowhead's room ("60°" put 6 degrees from the first ray of an angle of 60 at 35 out); under 1 their leader is drawn only past a band round the arc, whose two edges follow the direction the point lies in from the vertex (c is the cosine of that direction: 1 level with the vertex, 0 straight above or below it) and the landing (half the words, the gap and an arrowhead): out, the edge is a length of 1.0 to 1.3 plus 0.53 landings (c 0) rising to 1.07 (c 0.95) and 0.98 (c 1); in, it is 0.94 plus up to 2.0 more as c falls (2.0 times (1 - c) to the power 2.1) plus the landing times c. Words 2.5 high of Arial with a gap of 0.625 ("60°" 4.92 wide, a landing of 5.58) have their edges 6.7 out and 6.5 in level with the vertex, 4.2 out and 2.9 in just off straight above it, and 6.5 out and 5.8 in at 30 degrees (the leader appears from 6.6 there); a longer landing moves the outside edge a unit for a unit level with the vertex and half a unit above it (DIMASZ 4 puts it 8.2 out beside the vertex), and the inside edge above it not at all; taller words narrow the inside by 0.2 a unit of height. Fitted to what AutoCAD 2021 draws over 30 000 probes of "60°" put every 0.25 to 0.5 round an angle of 60 degrees at the origin, its arc 30 out, at 20 directions or 72, in SHX and Arial with DIMASZ 1.5 to 4, DIMTXT 1.8 to 4, DIMGAP 0.3 to 1.5 and DIMADEC 0 and 4 (a7 of 5 832 probes 101 differing down to 71, a6 21 to 11, a5 49 to 33, a4 13 to 4; the probes of other sizes about a quarter fewer). It is a fit, not a rule: no box of the words against the arc, the rays or the arrowheads follows both edges (an ellipse about the point, grown to the landing, differed 420 of 11 400 probes, a box 590). The band jumps where the point crosses the height of the arc's middle (15 for an arc of 30 at 30 degrees: probed every 0.1 either side of it, the leader came and went at exactly 15), and between the height of the vertex and that height it narrows as the point rises: out by 0.18 landings, in on the left of the vertex by 0.23 and on the right wider by 0.18. Not followed: words straight above or below the vertex get a landing under them. The fit is of DIMEXE 1.25 and DIMSCALE 1, and the band follows both: its lengths grow with DIMSCALE, and each unit of DIMEXE past 1.25 (times the scale) moves both edges by 1.0 level with the vertex, 1.3 at 45 degrees from it and 1.7 straight above it (a little less on the left of the vertex): DIMEXE 2.5 puts the edges of "60°" 7.75 out and 7.75 in level with the vertex, 6.0 out and 5.0 in at 85 degrees, where 1.25 gives 6.5, 4.0 and 3.0 (6 984 probes of Arial at the arc of 30: 80 differing of 582 with DIMEXE 2.5 before, 6 now; DIMSCALE 2 69 to 25 and 0.5 37 to 7). Words exactly above or below the vertex have their band from the room of the words and a gap (0.48 a unit), of DIMASZ and DIMEXE together (1.13 a unit) and of their height (0.09), in place of one landing: DIMASZ 4 puts its outer edge 7.75 out (6.0 with 2.5), DIMEXE 2.5 7.5 (88 of 1 552 probes differing before, 30 now). What the rule is, found on arcs of 240 out where the curve is nearly straight: the words stay on the arc where some point of the circle has the sum of its distances to two opposite corners of the box of the words and their landing (half the words, a gap and an arrowhead each side of the point, half their height up and down; the diagonal that rises to the right where the point lies right of and above the arc's middle, or left of and below it, else the one that falls) no more than twice that half width and DIMEXE. The curve of the arc is in it as AutoCAD 2021 draws it: a corner is as far from a point of the circle as its distance from the circle (its distance from the vertex less the radius) and the chord at the radius between their directions make it, as if the circle were unrolled (the straight distance between them is what the first form of the rule took, and it is up to 1.5 off on the side of the arc away from the middle at 30 out, as much as 1 over the radius times the landing squared), and the diagonal is flatter by 0.7 of the sagitta of a landing, the landing squared over the radius, up or down. AutoCAD 2021's band of "60°" is centred out of the circle by about half that sagitta (0.6 out at 30 out, 0.37 at 45, 0.2 at 90) where the words stand above the vertex, and on it where they stand beside it, which the straight distances had centred on it all round. The rule reads arcs of 1.3 landings out or more (7 out for "60°" of 2.5-high Arial with a gap of 0.625 and arrowheads of 2.5, a landing of 5.58; the nearest arcs probed are 8 out, 1.4 landings of SHX's 5.83); the probes where the leader presence differed, at an angle of 60 degrees with its words put every 0.25 round it at 5 degrees' steps, the five exact directions 30, 90, 150, 270 and 330 degrees left out: 94 of 6 499 at an arc of 38 out by the fit or the straight rule and 19 now, 165 of 6 984 at 45 (12 styles of DIMASZ, DIMTXT, DIMGAP, DIMADEC, DIMEXE, DIMEXO and DIMSCALE) and 19 now (Arial 162 and 24), 164 and 21 at 60, 73 and 6 at 90, 28 and 6 at 240 (12 styles 47 and 10; Arial 16 and 7, 12 styles 43 and 14); along the arc of 240 at heights from -60 to 180 the straight rule had none wrong of 3 492 and this has 1. At an arc of 30 out, where the rule had been worse than the fit (142 wrong of 6 984, 104 of 5 670 and 183 of 6 860 against 106, 58 and 135), what was left is the landing's sagitta (the landing squared over the radius) again, by the direction of the point: inside the circle the band is up to 0.35 of it wider than the rule near 40 and 200 degrees and up to 0.5 narrower near 100 and 260, outside it up to 0.5 wider or 0.25 narrower, which the rule takes at every 10 degrees (read between them); the band narrows as the point rises from the vertex's level to the height of the arc's middle, by 1.6 sagittas on the left inside, 0.7 on the left outside and 0.9 on the right outside, wider by 1.0 on the right inside, times the rise over the middle's rise; and the diagonal of the box turns over at that height, the height itself included. Both are one over the radius times the landing squared, so they move the band 0.06 at 240 out; at 30 out the leader presence differs in 63 of 6 984 (106 by the fit; Arial 57 and 103), 29 of 5 670 (58; Arial 17 and 82) and 93 of 6 860 (130; Arial 75 and 108), and in every style of the 12 no more than by the fit (the wide words of DIMSCALE 2, which put 2.6 landings out, 14 against 23). Words exactly above or below the vertex keep their landing under them, and the words of an arc length dimension and arcs nearer than 1.3 landings keep the fit. The correction is in full up to 16 landings out and falls off as one over the radius beyond (the table fitted at 30 out over-corrected at 240, 43 landings out: it is 0.37 of it there), which takes the probes at 240 out from 6 to 4 differing of 6 499 (Arial 7 to 4), from 10 to 6 of 6 984 (Arial 14 to 10) and from 1 to 2 of 3 492 along it; the jump of the band at the height of the arc's middle, in AutoCAD's pictures of an angle at 30 out, is 70 of 558 pictures differing before and 11 now (SHX; Arial 64 and 2), the rest having been the arc point of the words (see above). On arcs under 5.1 landings out a second table by direction, in the same units times how far the landing is over the radius past 1/5.14, and four narrowing scalars more (NearCorrections, NearNarrowing) were fitted to AutoCAD's pictures of an angle from 0 with its arc 8, 10, 12, 14, 16 and 20 out, "60°" put every 0.25 at 36 directions (17 612 probes, 1.4 to 3.4 landings of SHX's 5.83): the rule with the first table alone had 1 238 wrong, the fit of the nearer arcs 1 060 (293, 276, 199 and 146 at 8 to 14 out) and this 415 (154, 92, 61, 44, 39 and 25). It reaches the arcs of 30 out whose landing is longer too (DIMASZ 4, DIMGAP 1.5, DIMSCALE 2): e8 63 to 48 of 6 984 differing, aq 93 to 75 and taq 75 to 63 of 6 860. That fit saw one landing, and lost on others (te11 24 to 26), so the second table and its scalars are fitted again across landings: the rings of 8 to 20 out, rings 1.5 to 4.5 landings out with DIMASZ 4, DIMTXT 4 and 1.8 and DIMSCALE 2 (SHX) and with Arial 2.5 and 4 high and at DIMSCALE 2 (114 000 probes), and the arcs of 30 and 45 out. Leader presence differing from AutoCAD's pictures, before and now: e8 48 to 37 of 6 984 (Arial 50 to 38), e11 18 to 14 (Arial 26 to 22), taq 63 to 61 of 6 860, SHX's other landings 1 590 to 1 486 and Arial's 1 029 to 951; worse: aq 75 to 78 and the rings of 8 to 20 out 413 to 432 of 17 612. The rings of DIMTXT 4 (words 4 high, arrowheads 2.5) stay about 7 per cent wrong at 1.5 landings out: no table of this form follows them. The jump of the band at the height of an arc's middle keeps 11 of 558 pictures differing (Arial 2): a profile of the narrowing, a power of the rise, a distance in landings instead of the share of the middle's height and a landing power each traded against aq and taq, and no rule was found. An angle whose first ray stands elsewhere than at 0 degrees has another band: AutoCAD 2021 draws the leader of "60°" round an angle from 30 to 90 degrees up to 2.5 sooner or later than round one from 0 on the same directions (inside the circle near the arc's middle and mirrored, 1 to 2.5 wider on some directions, 0.5 to 1.75 narrower on others, in blocks that are the same over several first rays and change between 15 degrees' steps). OrientedCorrections holds the table of ArcCorrections for the first ray at every 15 degrees from 15 to 345, fitted to 79 000 probes of "60°" put every 0.25 at 36 directions round angles of 60 degrees at 30 out; the rows are read linearly between the first rays, and the first ray of an angle of 60 degrees is the one it is read by. The probes wrong: 709 of 36 278 (first rays at 30 to 330 degrees) are 27 now; 741 of 42 874 (first rays at 15 degrees' steps from 0) are 43; read from the first rays of 30 degrees' steps only, the 15 between them had 731 of 39 576 and have 275, so a first ray between two of 15 is read about that well; and at 60 out (first rays at 30, 120, 210 and 300), 161 of 13 192 and 81. An angle of another size is read as the angle of 60 degrees with the same middle, that is by the direction of its middle less 30 degrees (the first ray itself where it is 60 wide): "30°", "90°", "120°" and "150°" put every 0.25 at 36 directions round angles of those sizes from 0, 45, 90, ... 315 degrees, their arc 30 out (26 384 probes of each size), had 188, 208, 722 and 848 probes wrong read by the first ray and have 13, 25, 349 and 380 read by the middle (by the second ray 192, 187, 616 and 838; an index moved a twentieth of the sweep's excess over 60 degrees from the middle leaves 44 to 59 wrong at 30 and 90 degrees, so the middle is the index, not near it). The 1.4 per cent left at 120 and 150 degrees is the words' width, not the angle: "120°" (7.08 wide, 4 characters) put round an angle of 60 degrees has 371 of 25 481 wrong where "60°" has 27 of 36 278, so the band of words of other widths than "60°" was still the table of the narrow words (see the next paragraph). The pictures differing from AutoCAD's of the angles of two lines and three points given the other way round and reflex (p2) are 17 of 576 before and 6 now. Words wider or narrower than "60°" have another band: AutoCAD 2021's edges for "120°" lie 0.5 to 1.0 farther out and 0 to 1.0 farther in than for "60°" on the same directions and the same first rays (the same on every first ray outside the circle, in blocks of first rays inside), and the rule's own scaling by the words' width (the landing's sagitta, room squared over the radius) over-corrected some directions so far that words 8 wide had a leader on the circle itself. The sagitta is now the landing of "60°" in the same style times the words' landing over the radius, which is the same where the words are "60°", and WidthCorrections adds a table by direction (inside and outside the circle, 36 directions, the same for every first ray) at nodes of how far the words' landing is over that of "60°" as a share of it: "6°" 0.18 under it, and "120°", "60.0°", "60.00°", "60.000°", "60.0000°" and "60.000000°" 0.14, 0.29, 0.46, 0.64, 0.82 and 1.18 over it, read linearly between the nodes and held beyond them, fitted together for SHX and Arial to 270 000 probes of an angle of 60 degrees from 0, 45, ... 315 degrees with its arc 30 out (words put every 0.25 at 36 directions, from 7 in to 16 out) and to the "60.0000°" probes of the arcs of 30, 45, 60 and 240 out. The probes wrong before and now (SHX, then Arial): "6°" 141 and 182 to 94 and 70, "120°" 373 and 255 to 217 and 168, "60.0°" 666 and 469 to 309 and 245, "60.00°" 858 and 767 to 411 and 362, "60.000°" 1 218 and 998 to 560 and 469, "60.0000°" 2 127 and 1 491 to 788 and 606, "60.000000°" (first rays 0, 90, 180 and 270) 1 771 and 1 379 to 505 and 445. A table fitted to four first rays took the other four from 138 to 84 of 13 192, so a first ray between those probed is read about as well; a table by the direction from the arc's middle, or one for each first ray, took what it was fitted to lower and the first rays held out back up (106 of 13 192). The sum is held to 0.04 less than twice the half width and DIMEXE, which is where AutoCAD's edges lay between probes 0.25 apart. A radius or a diameter put inside under 1 keeps its words as DIMATFIT 3 does, whatever DIMATFIT; under 2, words on its line over a radius's centre or over the rim, from inside or out (a diameter's from the back of its arrowhead in), put the arrowheads outside, pointing in, each on a line an arrowhead long, and DIMTOFL runs the line whole from the centre, or the far rim, to the rim, else DIMCEN marks the centre: "R20" put 1 out under ISO-25, and in acad.dwt's Standard "R20" put 19.4 to 20.6 out. Put 8 out they leave the arrowhead inside and the line broken about them. DIMTIH keeps words put under 2 level, inside the circle or out, whatever DIMTOH says, and the line is broken where it runs through their box grown by DIMGAP: "R20" of Arial 0.18 high put 10 out at 30 degrees breaks it from 9.636 to 10.364. Level words stand on a slanting line wherever it runs through that box, further off it than half their height, and the break is centred on the middle of what the line takes of the box, not on the foot of their middle: "%%c40" of Arial put at (-1.5, 2.598), 3 off a diameter picked at 30 degrees through the centre, breaks it from -2 to 5.88 along it (middle 1.94), and the same put 4 off leaves it whole. Words behind the centre of a radius leave the arrowhead inside and the line whole unless their box takes the line to the centre or past it and the stretch it takes starts within an arrowhead and a half of the centre, or the point of the words is within two arrowheads of the centre (the box taking the line to the centre at least): "R8" put at (-3.531, -0.884) of a circle picked at 30 degrees (3.5 behind the centre along the line, 1 off it) stays inside, put 2 behind and 1 off it pushes the arrowhead out; "R20" put 4 behind it on its line (the box takes the line to 0.25 short of the centre) stays inside, put 2.5 behind and 3 across it (0.066 short) too, and put 4 along and 3 across it (5.0 from the centre, the box taking the line from 5.4) pushes it out, which put 5 along and 3 across (5.83) does not (r6 8 differing down to 0, d3 7 and td3 6 of 760 down to 0). Words outside kept level on a line within 15 degrees of level stand on no landing of their own, a gap past the end of the line, as on a linear dimension. Level words under DIMTAD 1 and 4 put past the rim stand on their landing of an arrowhead, the words on it, as they do under DIMTAD 0, or above a landing of their own, by how they fit the line (the radius, or the diameter) as DIMATFIT 3 fits them: they stand on the landing where the line is longer than the room their box reaches along it, but the arrowheads do not take their place (the line is not longer than an arrowhead and two gaps for a radius, two arrowheads and two gaps for a diameter) and the words and the arrowheads do not both fit (the line is not longer than the chord through the box and those); where the arrowheads fit and are the larger of the two, a tie going to them, the words stand above their own landing, as they do where both fit. A line within 15 degrees of upright is no exception, and a diameter is decided like a radius: "R8" put 10.4 out at 30 degrees under DIMATFIT 3 stands on a landing from 13 out, 16.402 along; with Arial 2.5 high, DIMASZ 2.5 and DIMGAP 0.625 "R8" at 60 degrees stands on its landing and "R10" at 45 above one 6.59 long, "R5" at 85 on its landing, "%%c6" at 90 on it and "%%c7" above one 4.98 long, "%%c10" at 45 on it and "%%c12" above one 6.9 long (of these sizes a diameter of 14 or more never stands on it; td2, 924 diameters and radii by 21 angles, 166 differing down to 8, and 0 with the points rounded to six decimals as AutoCAD was given them; with the SHX font 156 down to 12 and 8, the ties of "R6" and "R7" straight up falling either way); a radius picked at 30 degrees under DIMTMOVE 1 with level words, the point put 150 degrees round, has its line run on through the centre to the height of the point and the words stand level there, group 11 the end of the line. Level words under DIMTAD 1 and 4 put inside a radius or a diameter under DIMATFIT 3 keep to the line, level with a landing an arrowhead long, only where it has the room: two arrowheads, 0.3 of an arrowhead more as the line leans from upright (over its first 22 degrees), 1.125 of the words' height on a line that runs down and, as the line leans, the width of the words times the cosine of its angle from level (0.3 plus 0.65 of the cosine more, 0.4 on a line that runs down) and a gap times the cosine and a quarter; a diameter has its whole length. Else they stand above (DIMTAD 4: below) a landing an arrowhead, a gap and the words long, at the same place along it: "R8" put 4 out at 30 degrees has its landing from 2.598 to -4.563 (7.161) and the words 1.9 above it at -2.545, at 60 degrees the landing 2.5 long and the words on it. Within 15 degrees of level only the arrowheads and the height count, and the landing is the words and a gap long. Under DIMTMOVE 1 words put behind the centre of a radius (or outside the circle and behind it, for a diameter) stand above a landing of the words and a gap, as past the rim. Fitted over the 17 000 pictures of "R5" to "R55.5555" put at half the radius, with DIMASZ 1.5 to 4, DIMGAP 0.3 to 1.5 and DIMTXT 1.8 to 3.5, at 20 to 340 degrees (those that differed from AutoCAD's: 34 of 1 292 before, 19 now; 216 of 6 438 and 80; 554 of 9 460 and 140; the width and a gap times the cosine had asked wide words on steep lines too much room). A line of exactly two arrowheads does not keep them (a radius of 5 under DIMASZ 2.5 or of 8 under DIMASZ 4 put at half the radius 10, 170, 190 and 350 degrees left them off 14 times of 16; the other two are float noise in AutoCAD). Not followed: a diameter of 6 put out at 1.6 times its radius keeps its words on the line at steep angles (80 to 100, 260 to 280), as diameters of 4 to 12 do in windows of angle that no one rule fits (d2 of 924 probes: 156 differing). Words of a jogged radius whose box (grown by the gap) straddles the rim leave the line a box all on their own side of their point, not about it: "R20" of a circle of 20 with its centre drawn 100 below, put 32 out at 30 degrees, stands 21.795 out and has the line gone from 21.795 to 29.295, not from 18.045 to 25.545; put inside, 18.2 out, the line is gone from 10.7 to 18.2. Words exactly on the rim count as inside it: they stay at their point and the box goes to the inside (j2 16 of 16). Words put past the rim but within the room of the arrowhead stand where the fit would put them: of a radius or a diameter under DIMATFIT 3 (and 0 to 2 for a diameter, as for a radius) they stand no nearer the rim than two arrowheads, the gap and half their width, or two arrowheads where DIMTOH keeps them level on a landing: "R20.0000" of Arial put 20.2 out from a circle of 20 in acad.dwt's Standard stands 20.979 out whether it was put 20.2, 20.5 or 20.9 out, and put 21 out stands at the point. A point on the rim is outside it. Under DIMTMOVE 2 words on a radius's line put over its centre push the arrowheads out when their near end is within an arrowhead of the centre. On a line exactly level the words DIMTOH or DIMTIH keep level are the words that stand along it, with no landing; on an exactly upright line the landing runs left where the line runs down and right where it runs up, outside the rim and in: "R20" put 25 out straight down has its landing from (-0.18, -25) to (0, -25) and its words' middle at (-0.7994, -25). A linear or aligned dimension whose points run straight down does the same for level words outside its line. A radius or a diameter records its words (group 11) as AutoCAD 2021 does: under DIMTMOVE 1 and 2 by the point they were put at, under 0 by the point of the line or landing they stand by, their middle without DIMTAD's lift: "R20" put 40 out at 30 degrees under DIMTAD 1 writes (34.641, 20), its middle 0.18 above the line. A radius or a diameter is written with a leader of nought (group 40) and, where its words stand at the point it was put at, as one put by hand: group 70 of 164 for a radius and 163 for a diameter (flag 128), group 11 the point they were put at. Where the fit or the room next to the rim put them, group 70 is 36 and 35 and group 11 the middle of the words as laid out. That is DIMATFIT 0 to 2 under DIMTMOVE 0, DIMTIX, and a point put past the rim within the room of an arrowhead (DIMTMOVE 0 or 1): in acad.dwt's Standard with DIMTAD 1, "R20" of a circle of 20 about the origin put at (35, 12) writes 164 and (35, 12) under DIMATFIT 3, 36 and (9.3153, 3.3861) under DIMATFIT 0, and put at (20.3, 0.1) writes 36 and (20.9782, 0.2852). AutoCAD's own regeneration of such a file keeps the words where they stand, as the presenter draws them. DIMTEDIT's Home on a radius or a diameter writes 36 and a leader of nought, and sets the words as DIMRADIUS does for a point on the rim. Level words (DIMTAD 1 or 4) off a line that runs down keep the room of one more line of words, their height, past two arrowheads, outside the rim and in: "R20" of Arial 0.18 high, a circle of 20, put 20.3 out straight down has its landing 20.5438 out, not 20.36, and put 19.6 out 19.4562. Level words on a line within 15 degrees of level (but not exactly 15 or exactly level), inside as outside, have no landing: "R20" put 14 out at 3 degrees in a circle of 20 about the origin, DIMTIH on, DIMTAD 0, has its line end at the point itself, (13.9808, 0.7327), which is group 11, and its words' middle (13.3614, 0.7327), a gap and half their width past it. The words are measured in the font of the dimension's text style, laid out as the canvas lays out an MTEXT, as AutoCAD measures them: "R20" of arial.ttf 2.5 high is 5.965 wide and 2.553 high, "100" of opencad2d 4.5 wide and widened 1.5 times 6.75. A TrueType font is read from the Fonts folders of Windows, an SHX font where the fonts set on the document find it, the canvas's own opencad2d wherever fonts are on; the style's width factor and oblique angle count. An SHX letter is measured as AutoCAD measures its ink: an arc of less than a half circle reaches the rectangle of its chord and of the line along it touching the arc, a longer one the square about its circle, so that isocp.shx's 3 is 0.441421 of the height wide where its strokes are 0.4; where the pen is put down counts though it moves no further (monotxt.shx's 1, half the height wide); ink left of the pen, as italic.shx's f, does not count. Words whose ink has no width, as "I" of isocp.shx, are nought wide; words of a font not found take 0.7 of their height a letter. DIMARC (DAR) dimensions the length of an arc: below 90 degrees of sweep its extension lines run along the middle of the arc, from 90 up from the centre; the arc symbol stands before the words (DIMARCSYM 0), over them (1) or nowhere (2); Partial measures between two points of the arc, and Leader, offered past 90 degrees, draws a leader from the words' arc to the arc measured. A point in the sector the arc does not sweep dimensions the rest of its circle. The arc segment of a polyline is dimensioned as an arc, picked on the segment (a straight one, or one with no pick on an arc, is "Object selected is not an arc or polyline arc segment."). The dimension's arc point (group 10) is a third of the way along where the arc measured is from the centre out, and two thirds where the words do not fit between the extension lines (the same for an angle of three points or of two lines): the arc of 50 from 10 to 40 degrees put 70 out, below 90 degrees, has it a third of the way between where its extension lines meet its arc, at 21.45 degrees, not at 20; an angle of 20 degrees at radius 1 in text 0.18 high, its arc put 1.2 out, has its words outside and its arc point at 13.33 degrees, where one of 40 degrees has it at 13.33 too, a third of 40. An arc length dimension has it on the far side from its words: two thirds of the way for words nearer its first end than its middle (outside past the first end, DIMJUST 0 and 2; beside the first ray, DIMJUST 2), a third for words in the middle or nearer the second end (outside past the second end, DIMJUST 1; beside the second ray, DIMJUST 1). The arc of 3 through 10 degrees put 3.6 out has it at 3.61 degrees for DIMJUST 1 and at 6.39 for DIMJUST 0 and 2. Words kept level (DIMTIH) fit by what they take of the arc where it runs through their middle: their width (with the arc symbol and two gaps) times the sine of the direction of the arc's middle, plus their height (and two gaps) times its cosine, plus a gap at either end of the arc; the arc of 10 put 12 out takes its level words from a chord of 0.57 at 1.6 degrees to 1.43 at 92 (to 0.01 where AutoCAD stops at 0.02), so the arc of 3 through 20 degrees from 10 (a chord of 1.04) keeps its words "1.0472" between its extension lines, an arrowhead outside each end. An angle of three points fits its level words so too (rays 10 long, the arc 12 out, chords of 0.2 to 1.6: every one of 432 pictures as AutoCAD draws it), and the arc symbol over the words (DIMARCSYM 1) adds 0.3 of their height, the arc taken out above them as far as the symbol stands. What they are fitted against is the chord and a third of what the arc has beyond it, which counts from wide sweeps on; with both arrowheads it is what is left of the sweep once each arrowhead has taken its turn of the arc: the arc of 1 through 135 degrees from 10 (no symbol) keeps its words and both arrowheads between its extension lines when dimensioned from 0.695 out, the words alone, the arrowheads outside, from 0.58 to there. Where words and arrowheads each fit but not both, the ones that take more stay between the rays: arcs of 10 put 12 out under DIMASZ 0.5 keep the arrowheads between the rays for chords of 1.0 to 1.8 (the words "2" outside), the words alone from 1.85, and both from 1.95; and with the arc symbol before them, aligned words need 0.15 more than the room both take (0.85 of their height; level words the same, but only where the arc's middle points within a window about the vertical, 75 to 102 degrees or 259 to 288 for "1.0472" and its symbol, 64 to 114 for a single digit and its symbol, the symbol then lying along the chord: arcs of 10 put 12 out, DIMASZ 0.36, take words and both arrowheads from a chord of 2.35 from 70 degrees, 2.22 from 66 and from 96; the same window holds for DIMDEC 2, 3 and 6, the symbol and a box of 1.01, 1.13 and 1.51). On sweeps from 90 to 115 degrees it is still wanted, the window moved down to smaller directions of the arc's middle by 0.214 degrees for each degree of sweep from 13, 0.2475 of the words' height at 100 degrees and less as the sweep widens, the whole 0.45 within 5 degrees of the window's edges (0.45, fitted with the put distance by 0.02, was too much for the middle of it; by 0.01 the arc of 1 from 25 degrees through 98 puts both arrowheads between the rays from 1.16 and through 100 from 1.14): the arc of 1 through 100 degrees from 10 put 1.12 out (DIMARCSYM 0) has its arrowheads outside, from 1.14 between the rays, where the words alone gave 1.09. On sweeps from 100 to 165 degrees the symbol takes more room as the sweep widens, by the words' height (0.09 of it at 100 degrees, 0.24 at 150, 0.32 at 165, scaling with the text) and the sine of the direction of the arc's middle (the arc of 1 through 150 degrees from 10 keeps "2.6180" with the symbol between its rays from 0.70 out, not from 0.68); the height counts for more by 4.3 units for each unit DIMGAP is short of half the text's height (and for less for each unit past it), DIMASZ taking no part: the arc of 1 through 120 degrees from 10 keeps its words in from 1.34 out for text 0.36 and DIMGAP 0.045, from 1.01 out for text 0.18 and DIMGAP 0.18. Level words outside stand past the first end of the arc (the second for DIMJUST 1), to the right where the arc, a third of the way round, stands above the horizontal and to the left where it stands below it, the room of the arc symbol between the landing and them whichever side (the arc of 1 through 179.99 degrees put 0.45 out has its words to the left from 170 degrees, where the end points up but the arc a third along has dropped, and to the right from 350); the words of an angle run right where its arc point, two thirds round, stands more than 0.05 above the vertex, else left. Words between the extension lines under DIMJUST 1 and 2 of an arc length dimension stand an arrowhead and a gap from their ray, then half of what the fit asked for (aligned words above or below the arc leave no gaps round them), along the arc, past the middle where the arc is short: level words of 2.0944 and the symbol, on the arc of 3 through 40 degrees from 10 put 3.6 out, stand 3.0088 from the centre across and 1.9766 up for DIMJUST 1, to 0.001 as AutoCAD (before, 0.013 off). AutoCAD lays the arrowhead and the half of the words next to it by chords, not arcs, so the words stand a cube of each over 24 radii squared further along (0.00125 for the arc of 3 through 40 degrees put 2.4 out, DIMJUST 1, aligned words with the symbol: 0.63 for their half, 0.18 for the arrowhead): 76 of 216 and 280 of 384 such pictures differed, now 18 and 4. Where the break of the arc about such words reaches an arrowhead's room, both arrowheads go outside and the arc is not drawn: "4.1888" level by the second ray of the arc of 3 through 80 degrees from 10 put 1.8 out, DIMJUST 1, has them outside, as at 85 and 90, but between the rays at 75, the break ending 2.9 degrees short of the arrowhead's back. Aligned, such words read as the middle of the arc reads, not by their own tangent: the arc of 3 through 70 degrees from 135 put 1.8 out has "3.6652" by the second ray turned 96 degrees, where the tangent there at 276 would read upright. A dimension put on its arc has its extension lines run in from the ends where two arrowheads fit between them, out where they do not, and one scaled until its arc point is nearer the centre than the arc is, as AutoCAD 2021 keeps the arc moved in, is measured on that arc (the arc of 1 through 20 degrees put 1.2 out and scaled by 5 reads 1.7453, not the rest of the circle). A sweep counts as 90 degrees, and its extension lines run from the centre, from a millionth of a radian short of it (an arc of 1 from 0 to 1.570796 radians, put 0.8 out, has its arc point at 30 degrees on the circle of 0.8, the point (0.6928, 0.4); one to 1.5707952268, a tenth of a millionth further short, moves its arc in along the middle and has it at (0.7246, 0.3586)). An arc of more than half a circle (from a thousandth of a millionth of a radian short of 180 degrees; one that starts at 0 degrees, from 5 millionths over, as AutoCAD keeps that as under half a circle until then) is laid out another way. Level words outside still stand past the first end, but run out the other way, to the right where the arc a third of the way round stands below the horizontal and to the left where it stands above, and the arc point is a third of the way round, never two thirds: the arc of 1 through 180.0001 degrees put 0.45 out, no symbol, has from 140 degrees its words at (0.4397, 0.4012) and its arc point at (-0.4229, -0.1539), from 20 degrees its words at (-0.1942, -0.0241), where one of 179.99 degrees has them the other way. The words stay in, between the rays or not, once the arc beyond the half circle is two gaps long, whatever they, the arrowheads or the symbol take (radius times the sweep past 180 degrees, 2.005 DIMGAP: the arc of 1 from 0 through 210 degrees has "3.6652" outside at 0.3 and in the middle of the arc from 0.35, where 0.35 times 30 degrees is 0.18; DIMGAP 0.18 moves it to 0.7, text 0.36 and DIMASZ 0.36 leave it), and both arrowheads with them once it is two gaps and two arrowheads long (through 270 degrees from 0.35 out, where the room between the rays gave 0.42). Level words outside take the arrowheads out with them where the box of the words (the symbol before them counted, no gap) comes within 0.9 gaps of an arrowhead that would stand in, and the arc's middle, to the half turn, points from a direction on: 101.5 degrees for a box (the words, the symbol and two gaps) 0.93 wide, 30 degrees less for each unit wider and 40 more for each unit the radius is past 0.3 (in text heights, scaled with the text; not below 100.2 up to 185 degrees of sweep): the arc of 1 through 181 degrees put 0.45 out has its arrowheads outside from 20 to 30 degrees from the horizontal, in at 10 and 40, with the symbol from 10 to 30. The landing is then as with them in, an arrowhead along the arc from the first end, not two: from 20 degrees put 0.3 out, no symbol, the words stand at (-0.353, -0.0772). Not as AutoCAD yet: the arc point of aligned words outside such an arc, which is a third of the way round near the arc and two thirds a few hundredths further out (from 0.32 at 181 degrees to 0.37 at 200). Aligned words past the half circle fit what they take against the room a little differently from the arc, by the width of the words and DIMGAP (and with the symbol, DIMASZ): the arc of 1 from 0 through 200 degrees with the symbol before the words (DIMARCSYM 0) takes its arrowheads in with them from 0.65 out, not from 0.67, and without the symbol it takes its words in from 0.47, not from 0.45, and its arrowheads from 0.50 (sweeps to 230 degrees, text 0.18 and 0.36, DIMASZ 0.18 and 0.36, DIMGAP 0.09 and 0.18; one step of 0.01 in the put distance off now and then). The words by a ray (DIMJUST 1 and 2) on arcs of 90 to 140 degrees take their arrowheads in as much sooner: aligned from 0.93 out on the arc of 1 from 10 through 130 degrees, level ones (DIMJUST 1) from 0.95, where they took 0.94 and 0.96. Not as AutoCAD yet: where the arrowheads go outside with level words outside (the lower edge of the window, which the text, the gap, the arrowhead and the sweep all move by a few degrees), the words in by the room of level words on arcs of 90 to 140 degrees by a step, and the words by a ray at 210 degrees and more standing a few thousandths off. Level words off the arc (DIMTAD 2 and 3) fit by the same box without the gap at either end of the arc: their width, the symbol before them and two gaps times the sine of the direction of the arc's middle, plus their height, the symbol over them and two gaps times its cosine (an arc of 10 from 15 degrees put 12 out, DIMTAD 2, takes its words "0.6400" between its extension lines from a chord of 0.64, not 0.6); they stand with the symbol clear of the arc too, half the room of the symbol before them further out along the sine and half of what is over them along the cosine, 0.165 further out at 4 degrees for the symbol before them. An angle of three points fits them so too. A dimension moved in along the middle of its arc and followed through a scale reads its distance from the arc point it holds and the radius the arc has come to: the arc of 1 through 80 degrees from 10 put 0.8 out has its arc point 0.8264 from the centre after a scale by 1.5 (0.8346 on the first radius) and 0.8067 after one by 0.1, the radius of the point it held, not 0.8. DIMORDINATE (DOR) measures a point from the origin of the UCS along X where its leader runs up or down, along Y where it runs aside: (300, 40) with its leader ending at (310, 80) is an X datum of 300, the leader jogged two arrowheads before its end. Under DIMFXLON its first leg runs DIMFXL up to the jog, no nearer the point than DIMEXO: a jog at 30 and DIMFXL 10 start it at 20. DIMCONTINUE, DIMBASELINE and QDIM's Ordinate go on from an ordinate dimension, each leader ending level with the last. DIMJOGLINE (DJL) puts a jog in the line of a linear dimension, kept as AutoCAD keeps it (ACAD_DSTYLE_DIMJAG_POSITION) and drawn 1.5 times the height of the words; Remove takes it out. DIMEDIT Oblique slants the extension lines of a linear or an aligned dimension to the angle typed, from the x axis, and keeps it as AutoCAD 2021 keeps it, from the dimension line (group 52, Oblique): 60 typed for a dimension rotated 30 is kept as 30, for an aligned one from (0, 100) to (100, 150) as 33.435, and -30 for a level one as 330. DIMBREAK keeps its breaks as AutoCAD 2021 keeps them, a BREAKDATA under ACAD_BREAKDATA in the dimension's extension dictionary: Auto one break for each object whose box meets the dimension's, whether it crosses a line of it or not, the newest first, naming it (the object naming the BREAKDATA among its reactors), Manual the two points picked and the line they break (0 and 1 the extension lines, 3 the dimension line); Remove takes it out. Where the style keeps no break size, a break is 0.125 wide, or 3.75 in a drawing of MEASUREMENT 1, times DIMSCALE (0.25 at a scale of 2, 0.0625 at 0.5), as AutoCAD 2021 breaks it. Auto breaks at lines, polylines, circles, arcs, ellipses, splines, xlines and rays, the lines followed as straight pieces where they are curves, and at TEXT and MTEXT over the whole box the words are drawn in, the break size beyond it each side (words turned 45 degrees at (-3, -21), 15.83 by 2.5, break a vertical line at x = 0 from -18.0625 to -14.4020, the stretch inside the turned box, not that of the box they would fill upright), and at each shape of a block reference in its place, as AutoCAD 2021 does, not over the block's box (a rectangle block 6 by 4 held at (-3, -12) breaks the line at -12 and at -8, one scaled by 2 at -12 and -4, one turned 30 degrees at -10.2679 and -5.6491); a hatch is no cutter, only its boundary where that is drawn; a line that only touches a dimension line with its end breaks it as well, and one lying along it does not. A dimension drawn anew, by DIMEDIT, a change of its style or a grip, is broken again where it keeps breaks, whether DIMBREAK here or AutoCAD broke it, and AutoCAD 2021 opening the drawing breaks it again from what the presenter kept: a dimension broken here by hand from (20, -130) to (30, -130), given new words in AutoCAD, has its line from 0.18 to 20 and from 30 on. Manual breaks the line nearest the first point picked (the extension lines 0 and 1, then the dimension line or the arc of an angular dimension, 3; a tie going to the lesser number), carrying both points along it and leaving out the stretch between them where at least one of them falls on what the dimension draws of that line, the other held at its end where it falls beyond: a level dimension from (0, 0) to (100, 0), its line at y 20, broken from (40, 20) to (120, 20) has its line out from 40 on, and from (0, 10) to (100, 10) its first extension line cut at y 10 and no more; both points off the drawn stretch break nothing, and on an arc both must fall within it. An angular dimension's rays are 0 and 1 as AutoCAD numbers them, a radius's or a diameter's centre mark no line to break. DIMBREAK takes a multileader at its first prompt too: Auto breaks each leader line where an object crosses it, a gap of the multileader style's break size times its scale, 0.125 at 1 and 0.25 at 2, half either side of the crossing (a line from (0, 0) to (100, -1.25) crossed at x 40 is broken from (39.9375, -0.499219) to (40.0625, -0.500781)), none in the arrow or the dogleg, an object that crosses only the dogleg named in the BREAKDATA all the same; Manual breaks the leader line and the segment nearest the first point from the foot of the first point to the foot of the second, held at the ends of the line where one falls beyond and nothing broken where it falls past a vertex between two segments; breaks that meet are one; Remove takes them out. The breaks are kept in the leader line as AutoCAD 2021 keeps them (90, 11 and 12 of its LEADER_LINE) and drawn from there. The breaks of an Auto follow what they were made at, as AutoCAD 2021 draws a dimension or a multileader again from its BREAKDATA after an edit: a line at x 30 across a level dimension from (0, 0) to (100, 0), its line at y 20, moved 10 to the right breaks the dimension line at x 40 and no longer at 30; moved off it, the line is whole and the BREAKDATA still names it; erased, it is taken out of the BREAKDATA, which goes with the last; the dimension itself moved, turned or scaled is broken again where the lines named cross it now (moved 10 up, at x 30 on its line at y 30; moved 50 to the right, away from the line, whole). An object the BREAKDATA does not name breaks nothing, wherever it is drawn or moved to later; Auto names every object whose box meets the dimension's (a line from (10, 0.5) to (20, 15) inside the box of the level dimension above crosses nothing, is named all the same, and breaks the dimension line from 16.489 to 16.614 where it is moved 10 up), AutoCAD taking about a pixel of its view beyond the box where the presenter, with no view, takes none. Another dimension breaks one at the lines of its picture. A break by hand goes with the dimension, its points carried where it is moved or turned (from (60, 20) to (70, 20), moved 10 to the right, kept from (70, 20) to (80, 20)); a multileader keeps the points as picked and takes their feet on its leader line again where it is moved. Auto breaks the arc of an angular dimension and of an arc length one as it breaks a line, a gap of the break size along the arc (0.125 on an arc of 84.85 at 45 degrees leaves arcs from 0.002121 to 0.784662 and from 0.786135 to 1.568675 radians), and the leader of an ordinate dimension where a line crosses it. Manual on an ordinate or an arc length dimension breaks the line nearest the first point as it does on a level one, numbered as AutoCAD 2021 numbers them: the leader of an ordinate 0 (a leader jogged to the side has three legs, 0 the leg from the point, 1 the jog, 2 the last leg), the rays of an arc length dimension 0 at the first end of the length and 1 at the second, its arc 3. The X ordinate of (20, 30) with its leader to (20, 200), broken from (60, 70) to (60, 90), has its leader from 30.0625 to 70 and from 90 up; an arc length dimension of an arc of 50 from 0 to 90 degrees put 250 out, broken from (100, 25) to (140, 35), has its first ray from 50.0625 to 100 and from 140 to 250.18. AutoCAD, picking in a view, moves a point within some 15 units of a window 700 across of such a line to its middle or its end before it breaks (a break of the leader above from (20, 70) to (20, 90) is kept as one point at its middle, 115.076, and cuts nothing), which the presenter, with no view, does not copy. A dimension that keeps a break by hand and is scaled is drawn again, as AutoCAD 2021 draws it, its offsets and arrowheads as the style sets them, not scaled with it (a level dimension from (0, 0) to (100, 0) scaled by 2 has its extension lines from 0.0625 to 40.18, not from 0.125 to 40.36), the points of the break carried by the scale. A dimension copied has a BREAKDATA of its own naming the same objects, the points of a break by hand carried by the move, and is drawn again where it keeps a break at an object: copied 100 to the right, away from the line it was broken at, it is whole, the line still named; copied 10 up, across the line, it is broken there. An arc length dimension of words of no height draws no arc symbol, which was an arc of no radius. DIMBREAK Multiple takes dimensions and multileaders both, then asks Select object to break dimensions or [Auto/Remove] <Auto>:. DIMJOGGED (DJO, JOG) draws a jogged radius of an arc or a circle, its line from a centre put in place of one off the drawing: along the radius's parallel, across at DIMJOGANG and on to the rim, the jog half way between the two lines. A circle of 50 about the origin, its centre drawn at (0, -100), its words put at (30, 0) and its jog at (15, -50) has its lines from (0, -100) to (65, -100), on to (-35, 0) and on to the arrowhead at the rim. Words put on the other side of the rim from the foot of the centre drawn go three quarters of the way from that centre to the rim, as AutoCAD 2021 puts them: put 80 out at 14 degrees they stand at (36.38, -15.905). Under DIMTIH the words stay level, on the line whatever DIMTAD says where it is not level, and the line is broken where it runs through their box grown by the gap; where that box reaches past the back of the arrowhead the line is still drawn from the back to the box's far end, over the arrowhead, as AutoCAD 2021 draws it: "R8" put 4 along a radius of 8 at 30 degrees has a line from 5.5 to 6.708. Its grips are the chord point, the centre drawn, the jog and the words. DIM dimensions what is clicked: a line, then where its dimension goes or a second line for the angle; a circle's diameter, an arc's radius; a click on nothing starts a linear dimension. Angular on an arc asks "Specify angular dimension location or [Radius/Diameter/Mtext/Text/text aNgle/Undo]", and Radius or Diameter there go back to the arc's own prompt, the words given on the way kept. Its options run the commands of their names, and Layer puts the dimensions made next on a layer. DIM asks as AutoCAD 2021's own DIM does: a circle offers Radius or Diameter and no angle ("Specify diameter dimension location or [Radius/Mtext/Text/text aNgle/Undo]"), an arc also Angular; Continue asks "Select extension line origin to continue or [Baseline]" and Baseline "Select extension line origin as baseline or [Continue]" (each turns into the other), then "Specify second extension line origin or [Select/Undo]

A dimension made with DIMASSOC 2 (the default) whose points were picked with an object snap is associative, as in AutoCAD 2021: DIMLINEAR, DIMALIGNED and DIM tie each origin snapped with ENDpoint, MIDpoint, CENter, QUAdrant, NODe or NEArest to its line, arc, circle, polyline segment or point (both ends where a line is selected), and one snapped with INTersection to the two lines, arcs, circles or polyline segments that cross there. An end where several lines, arcs or polylines meet is tied to the one drawn last, wherever the cursor stood, as AutoCAD 2021 ties it: the corner (0, 0) of a line to (100, 0) and a line drawn after it up to (0, 100) is the start of the second. A point snapped with PERpendicular (to a line, an arc, a circle or a polyline segment; on a line or a straight segment the foot may lie past its end, on the line run on, as AutoCAD 2021's snap gives it, while an arc gives none off its run) or TANgent (to an arc, a circle or an arc of a polyline) is tied with the point it was drawn from, as AutoCAD writes it: from (20, 120) square to (100, -20)-(100, 60) the first origin is (100, 120), tied at parameter 1.75; past the end of a polyline's segment the foot is tied to that segment. The second origin is drawn from the first, the ends of an angle of three points from its vertex, and the first origin, the vertex and an ordinate's feature from the last point given (LASTPOINT), which CadPrompt.SnapFrom hands the window's snap. An ordinate's feature keeps no last point, as AutoCAD keeps none. A segment of a polyline is named by its marker, 1 for the first, and a point on an arc of a polyline by its angle counted on from the arc's start: a polyline from (0, 200) to (100, 200) and round a half circle to (100, 300) has the end of the half circle at marker 2 and 7.85398, its center at 4.71239. When the object moves, a tangent is drawn again from its point, and so is a perpendicular whose point is tied to an object; one drawn from a point tied to nothing keeps its parameter on the object, or, where that runs past the end of its line, goes to the foot from the origin of the world, as AutoCAD 2021 moves it: DIMALIGNED from (0, 0) perpendicular to (100, -20)-(100, 60) measures 100, and 120 once that line is moved 20 to the right; a first origin drawn from (37, 123) square to that line, at parameter 1.7875, goes to (120, 0) when it moves by (20, 7). DIMRADIUS and DIMDIAMETER tie the center of the circle or arc, DIMANGULAR of an arc its two ends and center, of two lines the four ends (the line selected second written first, groups 13 and 14, as AutoCAD writes it), of three points those snapped, DIMARC the ends of the length (the arc's start and end, its first and second points even where it measures the rest of the circle, or the points of a Partial length as nearest points at their angles) and the arc's center, DIMORDINATE its feature. DIMARC writes the point of a Partial length that lies further along the arc as its first (groups 13 and 14), and its parameters (40 and 41) in the order the points were given, counted on from the arc's start past a turn where the arc crosses 0 degrees: the part from 20 to 60 degrees of the arc from 300 to 100 degrees writes 6.632251 and 7.330383. The ties of an arc from 300 to 100 degrees are a StartPoint at 5.235988, an Endpoint at 8.028514 (the end counted on past the turn) and the center at 5.235988, the arc's start; those of the arc segment of a polyline carry its marker, the segment's path start vertex the StartPoint and its end vertex the Endpoint whichever way the arc turns. Three points of an angle along one ray measure nothing, the arc's point on the ray as far out as the point given wherever that was put, as AutoCAD measures them; an angle whose legs come to lie along one ray with its arc on them measures nothing too, and the whole turn where its arc lies off them. DIMANGULAR of a circle measures from the point the circle was picked at, about its center, to a second point (Specify second angle endpoint:), both brought onto the circle, and ties them as AutoCAD 2021 does: the first and the center to the circle, the second as a nearest point of what it was snapped to, a line at the parameter of the point on the circle run on, another arc or circle, an arc of a polyline (its segment the marker) or a POINT at nought, the circle itself or nothing at its angle on the circle. A circle of 25 about (200, 0) picked at (225, 0), with the second point the end (300, 40) of a line from (260, 40), measures 21.8 degrees to (223.212, 9.285), the second point tied at -0.9197 along the line. When the objects move, a second point so tied past the end of its line, or to a POINT, is dropped and stays where it is, as AutoCAD drops it; one within its line goes to its point on the line. The arc of any angle goes through a point a third of the way round from the leg it starts at, as far out as the point given, as AutoCAD writes it (put at (50, 550) in the right angle at (0, 500), it passes (61.237, 535.355)), and an angle of three points that follows its objects keeps its arc that far out at the same share of the angle, inside the legs where it measured less than half a turn and outside where it measured more; DIMCONTINUE and DIMBASELINE tie their first point to what the last dimension's second (or the base's first) was tied to, and QDIM the ends of lines, the vertices of polylines and the centers of circles, all kept in a DIMASSOC as AutoCAD keeps it. Every edit that changes those objects, whatever command or grip makes it, carries the dimension with it in the same undo step: a line from (0, 0) to (100, 0) moved by (10, 5) takes its dimension, 20 above, whole to (10, 5), (110, 5) and a line at 25; its end stretched to (120, 30) moves the second origin there and measures 120, the dimension line staying 20 up, as STRETCH moves the origins and the line point of a linear dimension inside its window as AutoCAD's does; the same end dragged by its grip, the dimension not stretched with it, leaves the dimension line 20 beyond the origin nearer it, at 50, as AutoCAD 2021 leaves it (30 for an end at (120, 10), 20 for one at (120, -30)). Where that would put the line nearer the other origin than it keeps from the nearer one, it goes as far from the other instead, the same way, as AutoCAD 2021 puts it: origins (0, 0) and (60, 40) with the line between them at 20, the first moved up to (0, 5), put the line at 60; of two origins as far from a line between them, the one it lies across from counts as the nearer, else the first. STRETCH of a polyline's vertex keeps the height of an arc off its chord, as AutoCAD's does: the half circle from (100, 200) to (100, 300) whose end goes to (100, 320) takes a bulge of 100 / 120, its center at (89, 260); a circle of 25 scaled twice about its center gives its radius 50 drawn out the same way, its words where they stood, as AutoCAD keeps them; words that grow or shrink by a digit keep their end on the leader's side, "R9.0000" outside to the right of its circle becoming "R13.5000" moving its middle 0.07 to the right, as AutoCAD moves group 11. An arc length dimension keeps its arc as far out, a third of the way along the arc measured, its words in the middle, as AutoCAD moves it with its arc moved, turned, scaled or lengthened; the ends of its leader (16 and 17) and its angles (40 and 41) stay as AutoCAD leaves them. Each dimension that follows writes the middle of its words (group 11) and its measurement (42) anew, as AutoCAD writes them when it updates one. An aligned dimension keeps its line as far from the line measured, square to it: 20 above (0, 0)-(100, 0), the end stretched to (120, 30), its line point goes to (115.149, 49.403). TRIM, EXTEND and LENGTHEN carry the end they move; an ordinate's leader end follows its point along the axis measured alone, (100, -40) to (110, -40) for a point moved by (10, 5); an angle of two lines keeps its arc as far from the vertex and at the same share of the angle. Erasing the object, or moving the dimension without it, unties the dimension, which keeps its points. DIMREASSOCIATE asks each selected dimension for its points again, Specify first extension line origin or [Select object] <next>:, and ties those snapped; DIMDISASSOCIATE (and -DIMDISASSOCIATE) unties those selected, 1 disassociated.. A copy of a dimension alone is tied to nothing; copied with its objects, it is tied to their copies, as AutoCAD's COPY ties it. Each copy of a dimension (COPY, ARRAY, a grip's Copy) gets a picture block of its own, and a dimension made here is written with flag 32 of group 70, so a plain MOVE takes its picture with it. The window hands the snap with its point through CadCommandSession.Feed(CadSnapResult, bool); a point typed or fed with Feed(GeoPoint2) ties nothing.

PEDIT (PE) asks AutoCAD 2021's prompts and stores what AutoCAD stores, checked against AutoCAD's own console. A line or an arc picked is made a LWPOLYLINE after Do you want to turn it into one? <Y>, an arc's from its start counter-clockwise: the arc through (100, 0), (150, 50) and (200, 0) is the vertex (200, 0) of bulge 1, then (100, 0). Fit and Spline make the LWPOLYLINE the POLYLINE AutoCAD makes, its handle kept: Spline of (0, 0), (100, 0), (100, 50), (0, 80) at SPLINETYPE 6 and SPLINESEGS 8 is the first vertex of the frame (flag 16), the 9 of the curve (flag 8) from (0, 0) through (75, 28.75) to (0, 80), then the rest of the frame. A POLYLINE left straight when it is edited alone is a LWPOLYLINE again, as AutoCAD's PLINETYPE 1 and 2 make it; Multiple leaves it a POLYLINE, as AutoCAD does. PEDITACCEPT 1 turns a line or an arc into a polyline without the question, and Multiple's Convert Lines, Arcs and Splines to polylines [Yes/No]? is not asked. PLINETYPE 0 makes PLINE, POLYGON, DONUT and PEDIT's lines and arcs old-style POLYLINEs and leaves a POLYLINE edited alone one, as AutoCAD 2021 does at 0: PLINE from (0, 100) to (100, 100) and, 2 to 4 wide, to (100, 200) is a POLYLINE whose second vertex has widths 2 and 4. RECTANG and REVCLOUD make LWPOLYLINEs whatever it is, as AutoCAD's do. JOIN takes a POLYLINE as it takes a LWPOLYLINE, and what it does to one is what AutoCAD 2021's console did: a line joined into the POLYLINE PLINE drew at PLINETYPE 0 leaves it a POLYLINE at 0 and makes it a LWPOLYLINE of its handle at 1 and 2, and a LWPOLYLINE stays one at 0. Objects picked at once are joined into a LWPOLYLINE at every PLINETYPE, as AutoCAD's console made them when it ran interactively (14 November): four lines, a line and an arc, a POLYLINE and a line, two POLYLINEs, and a POLYLINE, an arc and a line each gave one, 2 objects converted to 1 polyline for a POLYLINE and a line. The one -BOUNDARY makes of a loop is a POLYLINE at 0 as PLINE's is: AutoCAD's console stops -BOUNDARY with no word, so that one follows PLINE. A spline picked is made a polyline of lines within a precision, Specify a precision <10>: (0 to 99, the last one used the default; Specify a precision for spline conversion <10>: in Multiple, asked once where a spline is among the objects), as AutoCAD 2021 makes it: the spline through (0, 0), (100, 50), (200, 0) and (300, 80) at 2 is the 8 vertices (0, 0), (44.653, 34.646), (100, 50), (135.471, 34.364), (200, 0), (222.784, 3.048), (262.139, 33.007) and (300, 80), the knots of a spline of fit points, here the fit points, among them. A precision that would give more than 10 000 vertices asks Using a precision value greater than 81 may cause performance problems. Do you want to continue? [Yes/No]: <N>:, 81 the largest that gives no more, and No asks the precision again with that one as the default. The counts of vertices are those of DxfSpline.ToPolylineWithPrecision, which AutoCAD's PEDIT gave exactly for every spline of control points probed (48 counts of four splines of degree 2 to 5, and the vertices of two of them) and for 96 of 119 counts of seven cubics through fit points; in the 23 others the presenter makes 1 to 24 vertices more than AutoCAD, up to 2.4 per cent, at precision 8 and over. Probed again on 14 splines at 17 precisions (238 counts, 52 of them off, 1 to 22 more), the fault is not the fit points' (the same NURBS made of control points alone gives AutoCAD's own counts to the vertex, and PEDIT's equal ToPolylineWithPrecision's in all 238): AutoCAD halves the parameter range to a tolerance c over (precision + 1) squared, where the vertices of each of its polylines separate the pieces halved from those kept to 0.03 per cent, and c is one over the largest second derivative M only where that is at an end of the spline (the cubics of one span, and the cubics of two spans whose largest is at an end, to 1E-4); where it stands at a knot inside, c is 0.06 to 3.9 per cent above 1/M (1.0102 for a cubic of two spans of knots 0, 1, 2, 1.0385 for the zig-zag through (0, 0), (30, 40), (60, 0), (90, 40), (120, 0)), so that the library, which takes M at the knot, halves a little more. What AutoCAD takes M at there is not found: not a point of a grid of the parameter or of the length, not a second difference of the polyline, and not one point beside the knot (the distance differs from spline to spline). Both are kept by the session, PEDITACCEPT 0 and PLINETYPE 2 until set. Edit vertex marks the vertex with a cross, the first one the view shows (No visible vertices where it shows none); Next and Previous stop at the ends, Insert puts a vertex after the marked one as wide as its segment ends and marks it, Break between two vertices of a closed polyline leaves two open ones, and Straighten at one vertex straightens the segment that leaves it. Multiple joins within a fuzz distance by Extend, Add or Both: the lines (0, 0) to (100, 0), (103, 0) to (103, 50) and (100, 50) to (0, 52) joined at 4 by Both are one polyline through (103, 0) and (103, 49.94), "2 segments added to polyline". Extend runs an arc at an end round its circle, on or back, to where the other end segment meets it, of two crossings the one nearer the two ends together: the arc about (0, 0) of radius 100 from 0 to 80 degrees and the line from (10, 130) to (10, 200) meet at (10, 99.4987), the arc's bulge 0.38517039, as AutoCAD 2021 joins them; an arc whose circle nothing crosses is not extended, and Both adds a segment there. Extend joins two ends where they meet within the fuzz of both, however far apart the ends are: (100, 0) and (130, 30), 42.4 apart, meet at (130, 0) at a fuzz of 35. A run is one undo step, and Undo takes back its last option.

A 3D polyline picked is edited with AutoCAD 2021's options for one, Enter an option [Close/Join/Edit vertex/Spline curve/Decurve/Reverse/Undo]: (Open where it is closed), and its vertex options [Next/Previous/Break/Insert/Move/Regen/Straighten/eXit] <N>. Spline curve fits it as SPLINETYPE and SPLINESEGS ask: the 3DPOLY (0, 0, 0), (100, 0, 10), (100, 100, 20), (0, 100, 30) is the first vertex of the frame, the 9 of the curve through (75, 50, 15), then the rest of the frame, and closed it is fitted again round the frame, 32 vertices of the curve, as AutoCAD stores them. Reverse turns the frame round, the first vertex of a closed one too, and fits it again; Decurve straightens it; a vertex moved or put in lies at nought, and a fitted polyline is fitted again on its frame. Join asks the objects and adds none, as AutoCAD 2021's console did for lines and 3D polylines meeting an end. Multiple takes 3D polylines in, as AutoCAD 2021 does (probed in its console): a 3D polyline selected alone asks no question about lines, arcs and splines and offers the options of a 2D one, [Close/Open/Join/Width/Fit/Spline/Decurve/Ltype gen/Reverse/Undo]; Close, Open, Spline, Decurve and Reverse do to it what they do alone, Width and Ltype gen ask their questions and leave it as it is, Fit leaves it, and Join asks the fuzz distance and adds no segment to it (0 segments added to polyline).

REVCLOUD draws a cloud round a rectangle (Rectangular, the type it starts with), a polygon (Polygonal), the cursor's path (Freehand), or an object picked, which it replaces (Object: a line, arc, circle, ellipse, polyline or spline). The cloud is a LWPOLYLINE of arcs of 110 degrees (bulge 0.52056705) bulging out, their vertices an arc length apart along the path, the corners not kept; a last arc shorter than half an arc length is taken into the one before. A circle of radius 20 at an arc length of 5 is the 25 vertices AutoCAD 2021 makes, to 8 places, and the outline 60 by 40 at 7 is 29, from (0, 0) to (0, 4). Arc length asks AutoCAD 2021's one approximate length, Specify approximate length of arc <15.0000>:, kept by the session as REVCLOUDAPPROXARCLEN and not scaled by DIMSCALE, as in 2021, which has no REVCLOUDSCALEMODE. At REVCLOUDARCVARIANCE 1, as AutoCAD starts, each arc is drawn between two thirds of it and four thirds, and the first prompt says so, Minimum arc length: 4.0000 Maximum arc length: 8.0000 for 6; at 0 each arc is the length, as the clouds above were checked. REVCLOUDARCVARIANCE is an on-off switch, Enter new value for REVCLOUDARCVARIANCE <ON>:. REVCLOUDCREATEMODE sets the type it starts with. Calligraphy widens each arc from nought to a tenth of the longest arc.

The shapes shorter than their arcs and the variables beside these were read from AutoCAD 2021's console, run through standard input (15 November). A path shorter than the longest arc (the approximate length at REVCLOUDARCVARIANCE 0, four thirds of it at 1) is a cloud of two vertices, its start and the point halfway along it, bulging the positive way whatever the shape: a line 15 long at arcs of 20 is (0, 0) and (7.5, 0), a rectangle 10 by 10 (0, 0) and (10, 10), a circle of radius 3 (3, 0) and (-3, 0); from one arc long on the vertices lie an arc length apart as before (a line 20 long is (0, 0) and (20, 0)). A shape that gives only one vertex is too small: Object says Unable to convert object, object is too small for the cloud's arcs. and asks again, Rectangular and Polygonal say Invalid shape to create revision cloud. and draw nothing (a rectangle 5 by 5 at arcs of 20). Below six vertices Rectangular says it all the same and draws what it has (25 by 25, five vertices), and Polygonal draws nothing (the square of 25 gives none, the square of 28 six). The first cloud drawn while REVCLOUDAPPROXARCLEN is nought sets it to the length it was drawn with, and the next clouds keep that length whatever the view shows; a command ended before it drew anything, and Modify, leave it. REVCLOUDMINARCLENGTH and REVCLOUDMAXARCLENGTH (0.5 to begin with, and kept in the settings file from one session to the next, as AutoCAD keeps them in its profile; the approximate length is not kept) are written by Arc length and by REVCLOUDPROPERTIES, to two thirds and four thirds of the length at REVCLOUDARCVARIANCE 1 and to the length itself at 0 (30 gives 20 and 40, or 30 and 30), and nothing else changes them; the command goes by the approximate length, not by them. Run by a routine's command ((command "_.revcloud" "_A" 10 "" "_O" (entlast) "")) REVCLOUD asks as AutoCAD 2021 does then: Minimum arc length: 0.5000 Maximum arc length: 0.5000 Style: Normal Type: Freehand, Specify start point or [Arc length/Object/Style] <Object>:, and Arc length asks Specify minimum length of arc <0.5000>: and Specify maximum length of arc <10.0000>:, which offers the longer of the new minimum and the maximum it had; both are kept as REVCLOUDMINARCLENGTH and REVCLOUDMAXARCLENGTH and read back at the next start (15 for both in a metric drawing that has none set). An underscore in front of an option, _A, is taken off at every prompt. REVCLOUDARCSTYLE is a text, "Normal" or "Calligraphy" as the Style option sets it, which SETVAR takes whatever it says; only exactly "Calligraphy" draws calligraphy. REVCLOUDGRIPS is a switch, ON to begin with, kept by the document: ON shows the few grips of the shape a cloud goes round (below), OFF a grip at each vertex and each arc as for any polyline. At REVCLOUDARCVARIANCE 1 AutoCAD's arcs vary at random from one cloud to the next (three rectangles of the same corners gave three sequences, each arc between two thirds and four thirds of the length, evenly spread), where the presenter's are one fixed sequence of the same kind. A Freehand cloud typed point by point in the console takes every point typed as a vertex, so the rule of the arc length along the cursor's path is the window's alone and was not probed.

AutoCAD 2021's console, run interactively (14 November, its commands read from standard input; a script file runs the older REVCLOUD), fixed these. The line Minimum arc length: ... Style: ... Type: ... is said when the command starts and when the type is changed, not after Arc length or Style. Rectangular's first prompt is Specify first corner point, Polygonal's Specify start point and Freehand's Specify first point. Rectangular runs from the first corner along the side of its X to the Y of the second, so that the corners (0, 0) and (100, 60) at arcs of 10 give 32 vertices up the left side, along the top and down the right, clockwise, the bulge -0.52056705, and (0, 60) and (100, 0) go down the left side, counter-clockwise, the bulge positive. Rectangular and Polygonal end with no message; Object and Freehand say Revision cloud finished. Every cloud carries the data RevcloudProps, a 1070 of 0 and a 1040 of its approximate arc length, which REVCLOUDPROPERTIES looks for. While REVCLOUDAPPROXARCLEN is nought the first cloud takes a twentieth of the diagonal of the view in the drawing's units (a view 100 high and 942 by 534 pixels: 10.1389, AutoCAD's own 10.1277, a tenth of a per cent less for the pixels its window leaves out), whatever DIMSCALE and the units are; with no view, as in a test, 15 in millimetres and 0.5 in inches. AutoCAD measures a viewport that is not the whole window by a rule that is not found (for a 942 by 534 window, the height counted is twice the smaller of the distances of the viewport's top and bottom from the window's middle line, and the viewport's width as it is), so a layout's viewport worked in does not give AutoCAD's length.

Modify asks Select polyline to modify:, Specify next point or [First point]: (First point: Specify a start point:), Specify next point or [Undo]: until a point on the cloud, within the pick box, ends the path (Enter ends the command with nothing changed), Pick a side to erase: and Reverse direction [Yes/No] <No>:, and says nothing at the end. The cloud is cut where the path starts and ends and the side picked goes; the new arcs are laid from the start of the path, an arc length apart, the last one shorter, and the cloud begins at the end of the path, as AutoCAD writes it: with the corners (0, 0) and (100, 60) at arcs of 10, the path from (50, 0) down to (50, -23), across to (80, -23) and up to (80, 0), 76 long, and the bottom between 50 and 80 picked, the 37 vertices are (80, 0), (80, -6), (80, -16), (77, -23), (67, -23), (57, -23), (50, -20), (50, -10), (50, 0), (40, 0) and on round the old cloud to (90, 0). Picked at (45, 0) the path starts on the arc there, at (45, -2.6028), and the arcs cut at its ends keep their shape, bulges -0.24469844 and -0.11067678. Every arc of the result bulges the way those of the old cloud do, the other way where Reverse direction is Yes, even where that is into the shape the cloud now bounds. The cloud picked is erased and a new one takes its place, of a handle of its own, on the layer of the old and with its RevcloudProps, as AutoCAD 2021 does (the cloud of REVCLOUDPROPERTIES keeps its handle).

REVCLOUDPROPERTIES asks Select objects: (only revision clouds, those with the data above, count), Select property to change [Arc length]: and Specify approximate length of arc <10.0000>:, the length the first cloud was drawn with, and sets REVCLOUDAPPROXARCLEN to the answer. Each cloud selected is drawn again in place from its first vertex along the polygon of its own vertices, with arcs of the new length, bulging the way its own do: a rectangle of arcs 10 long given 20 is the cloud REVCLOUD draws with 20, a polygon cloud is drawn along the chords of its arcs, which cut its corners, so that the polygon (0, 0), (73, 0), (80, 41), (20, 52) drawn at 10 and given 15 has its sixth vertex at (72.5898, 4.2770) and not (73.3366, 1.9715), as AutoCAD's console draws it. A cloud that is no cloud (no data) ends the command with nothing changed.

A first point of Modify's path nearer the start than a little over an arc (1.1825 arcs, which AutoCAD's console puts between 1.18 and 1.185: at arcs of 20 a point 23.6 from the start ends the command and one 23.7 from it goes on; at 100, 118 and 118.5; at 50, 59 and 59.5; at 7, 8.2 and 8.3) ends the command at once, nothing said and nothing changed. The first arc counts, which varies at random in AutoCAD at REVCLOUDARCVARIANCE 1; the points after the first go on whatever their distance.

Grips of a revision cloud, while REVCLOUDGRIPS is ON, are the few grips of the shape the cloud goes round, as AutoCAD 2021's GetGripPoints gives them (run in its console through a plugin). A closed cloud of six vertices or more with the REVCLOUD data whose vertices all lie on one circle has the grips of the circle: the centre, then the quadrants to the right, to the left, above and below. Any other has a vertex grip at each corner of its path, from its first vertex, and a middle grip at each side that follows: the corners are the vertices where the direction changes (the first vertex always), and a corner the arcs cut off, a vertex before it and one after it with the chord between them leaving the lines of both sides, is the point where the two lines meet, so that the cloud round the rectangle (0, 0) to (60, 40) with arcs 10 long has 8 grips, (0, 0), (0, 20), (0, 40), (30, 40), (60, 40), (60, 20), (60, 0), (30, 0), and the cloud round the polygon (100, 0), (160, 0), (160, 40), (130, 60), (100, 40) has 10, (130, 60) among them, which is no vertex of it. An open cloud, one of fewer than six vertices and a polyline with no cloud data keep the grips of a polyline; so does every cloud with REVCLOUDGRIPS OFF. A grip dragged draws the cloud again along the new shape, in place and as one undo step: a corner is moved to the point, a side by as much as its middle grip was, the centre of a circle likewise, and a quadrant gives the circle the radius that reaches the point. The arcs are 1.1 times the mean chord of the cloud before (a cloud of 20 arcs 10 long, its top middle dragged up 5 on a rectangle 60 by 40, is 19 vertices 11 apart; one of arcs 40 long round a rectangle 120 by 100 is drawn again with arcs of 41.657), laid from the first vertex, the last arc taking what is left, bulging the way they did, the data of the cloud kept. A cloud too small for two arcs is refused. The grips of a cloud with few grips have no grip menu. Left as it is: AutoCAD's own rule for which polyline is a cloud (it ignores the data, and takes a polyline whose arcs are 110 degrees) and the ellipse it fits to some clouds, whose axes it finds from the vertices only roughly.

TABLE (TB) shows the Insert Table dialog (CadInsertTableRequest), asks Specify insertion point: (or two corners for Specify window) and opens the title for typing in the MTEXT editor: Tab goes to the next cell, Shift+Tab to the one before, Enter to the one below and Esc ends. Tab in the last cell adds a row under it, as AutoCAD's table editor does, of the cell styles and the height of the last row and empty, and goes to its first cell; the row is an undo step of its own. While a cell is typed in, its row grows to hold the lines as they come and shrinks back as they are taken out, never below the height it stood at, and the rows under it move down with it, as AutoCAD's in-place editor shows them: in AutoCAD's Standard style a data cell typed with two lines makes its row 15.07 high instead of 9, with three lines 22.57, and the editor stands where the cell now is. The table is drawn anew from a preview of the words (CadTableLive) only while a row differs from what it stood at, and costs one cell's layout a key (1.4 ms in a table of 50 rows by 20 columns, against 89 ms to lay the whole table out); nothing is written to the drawing until the editor closes, which is one undo step with the rows the preview showed, and Esc leaves the table as it was. Five columns 63.5 wide and four rows of data of AutoCAD's Standard make a table 317.5 wide and 56 high, its title 11 high and its other rows 9. A table is drawn with its first row in the Title cell style of its table style, its second in the Header and the rest in the Data, each look a cell does not give of its own; where the table or its style leaves the title out, the first row is the header, and where the header is left out too, every row is data, as AutoCAD 2021 reads such a table. -TABLE asks the columns, the rows of data and the point (Style, Width, Height) on the command line, and TABLEDIT a cell to type in; a double click or F2 on a cell runs it. TABLESTYLE (TS) shows the Table Style dialog (CadTableStyleEditor); a style changed draws its tables anew. A double click on a style in the list of the Table Style dialog, as in the Text Style, Dimension Style, Multileader Style and Multiline Style dialogs, makes it current, as Set Current does; Modify… is its own button. The Format of a cell style in the Modify Table Style dialog opens the Table Cell Format dialog and keeps the kind of data, its unit and the format string in the style (DxfTableStyle.DataType, SetDataType, Format and SetFormat, groups 90, 91 and 1 of each cell style, written by a file of AutoCAD 2007 or later); the starting table and the type of a cell style stay grey. A click in a cell selects it with the Table Cell tab (CadTableEditor): rows and columns put in and taken out, cells merged and unmerged, their alignment, fill and borders, the arrows moving the cell and Delete emptying it, each one undo step that draws the table anew in its block. A number typed in a cell is kept as a number, as AutoCAD 2021 reads a text it parses: 1 is the whole number 1 and 007 the whole number 7, 1.5 a number shown in the drawing's units (1.5000 at LUNITS 2 and LUPREC 4, 1.50 at LUPREC 2), 1e3 one shown 1.0000E+03, and 1/2 one of 0.5 shown 1/2 (1-1/2 and 1 1/2 shown 1 1/2, 1/3 shown 5/16 at LUPREC 4), each set top right where the cell has no alignment of its own; 1,5 is the point (1, 5, 0), shown 1.0000, 5.0000, 0.0000. The autofill counts each on in its format, 1.5 to 2.5000, 3.5000 and 4.5000 and 1/2 to 1 1/2, 2 1/2 and 3 1/2, and copies a point. A number typed over a number keeps the cell's kind and format, as AutoCAD keeps them: 12 over 1.25 is shown 12.0000, and 1.5 over the whole number 12 is the whole number 1. Thousands typed with commas, 1,500, are a number of the thousands format (the whole number 1500 of %th[\,] shown 1,500; 1,500.5 shown 1,500.5000; a comma before other than three figures, as 1,50, is a point), and a length in feet and inches, 12'6", 12'-6", 12'6-1/2" or 6 1/2", is a number of inches (12'6" the number 150 shown 12'-6"; 6.5" and 12.5' a number of the engineering units, shown 0'-6.5000" and 12'-6.0000"), each set top right; a length with a space before its figures, 12ft and 12"6 are not read as lengths and stay text. A date or a time, in the order of the culture of the machine, is a date of the kind 8 (the 16 bytes of a SYSTEMTIME in the groups 92 and 310) of the format AutoCAD 2021 gives it: 1/1/2020 of %x, shown 1/1/2020; 12:30 of %X, shown 12:30:00 PM, a time of the day being on 30 December 1899; and 1/1/2020 12:30 of %c, shown 1/1/2020 12:30:00 PM. A month in words (Jan 1 2020, 1 January 2020), a year of two figures (1/1/49 is 2049 and 1/1/50 is 1950), no year (the present one), 12:30 PM and 1:5 are read as well; a day or a time that does not exist (2/30/2020, 24:00), a fraction of a second (12:30:45.5), a weekday, a zone and a point as the mark (3.4.2020 in en-US) stay text. A date typed over a date keeps the cell's format and shows in it (%d/%m/%Y shows 3/7/2020 as 07/03/2020), and the editor opens a date as 1/1/2020, 12:30:00 PM or 1/1/2020 12:30:00 PM whatever the format. The editor opens a number as AutoCAD 2021's GetTextString(FormatOption.ForEditing) writes it (DxfTable.TextStringForEditing), the number as it is to 16 figures with its zeros and the places of its units left off: a cell that shows 1.5000 opens as 1.5, a third as 0.333333333333333, 1e3 as 1.000000000000000E+03, 1/3 as 10923/32768, 12.5 in feet and inches as 1'-0 1/2" and a point as 1.5, 2.25, -0.1; the words that opened are kept when they are given back. A text typed over a cell of a number or a point is refused, the message "Cell C3 holds a number, and "abc" is not a number." and the cell left as it was, as AutoCAD 2021's SetValue of it throws eInvalidInput (12mm, 1/1/2020 and 12:30 too, and a number over a point or a point over a number); so is anything that is no date or time over a cell of a date ("Cell A3 holds a date, and "abc" is not a date.", a number too); empty words still clear the cell. In a cell that holds no number, b1 and 12mm stay text, as does a number in a cell made to hold text. Drawn anew, each row grows to hold its cells, as AutoCAD lays a table out: a cell's words wrap at the cell's width less its margins, as an MTEXT of that width, and need their actual height and the margins above and below; a row is as high as its tallest cell needs and is never made lower, and never lower than one line, four thirds of the text height, of its first cell: in a table whose data is 8 high a first cell given a height of 6 makes its row 11, not the 13.67 the cells beside it at 8 would (a second cell of 12 holding one word makes 15, its word and the margins, and an empty cell beside the first adds nothing). In AutoCAD's Standard, "HEA300 S355 with end plates both sides" in opencad2d in a column 30 wide takes four lines (HEA300, S355 with, end plates, both sides) and makes its row 30.41 high, as AutoCAD 2021 laid it out, and the row keeps 30.41 when the words are made short again. Cells merged across rows grow the rows they span together: the rows are first as high as their own cells need, then each block, taken in the order of its top left cell, row by row, shares its need among its rows in proportion to the heights they stand at, as AutoCAD 2021's GenerateLayout did (12 lines in two rows of 9 need 90.43 and make 45.21 each, not 9 and 81.43; in rows of 12 and 20 they make 33.91 and 56.51; a block over rows that already hold its words changes none). A row is laid out by the text height and the text style of the cell's own, else those its table keeps of its own for the kind of row, else its table style's: a table of its own data height of 8 makes an empty data row 13.67 high (8 times 4/3 and two margins of 1.5), where its style's 4.5 made it 9. A block cell whose block is not fitted to the cell asks the box its extents fill at the cell's scale and turn, and the margins: a block 10 by 40 at scale 1 makes its row 43 and, at scale 2, 83; across two merged rows of 8 it makes 21.5 each (41.5 at scale 2), shared as the words of a merged block are; one wider than its column widens the column, 100 wide making a column of 30 103, the columns laid out before the rows; turned 45 degrees it asks the 38.36 its turned box and the margins make in both. A block fitted to its cell asks nothing and is drawn at the scale that fits its box, turned, in the cell less its margins. The least a column is dragged to or set to (CadTableEditor.MinimumColumnWidth) is the 9 of two margins and the title's text of 6, or where a block cell not fitted to its cell starts in the column, the width its block asks and the margins if that is more: a block 30 wide makes 33, 63 at scale 2 and 31.28 turned 45 degrees, and a block across two columns asks the one it starts in alone. A block cell in the first column still stands its row at the one line, 4/3 of the text height and the margins, 9, fitted or not (a block 2 by 2 in rows of 3 makes them 9, not 5). The words of an attribute definition of the block are in its extents, as AutoCAD 2021 counts them: those the cell gives it, else its own, none where they are empty or the definition is invisible, a constant definition its own whatever the cell gives (a block 20 by 4 and a definition at x 22 of words 15.9 wide makes a column 40.9 wide at 2.5 high, 22 + 15.9 and the margins), measured in the fonts of the drawing, or of the document where the drawing names none; a definition whose font is not found is left out, as it was. AutoCAD lays a block out by two boxes where its definition is not constant. The room it takes, the least a column or row of an unfitted block may be and the box the block is aligned in its cell by, is the box of the words in Arial (arial.ttf, found in the fonts of the drawing, the document and Windows), whatever the font of the definition's style: 4.66, 6.79 and 15.91 wide for AB, M12 and DEFAULT at 2.5, where txt.shx makes 4.17, 5.83 and 16.67, a block 20 by 10 with AB at x 22 asking a column of 22 + 4.66 and the margins, 29.66. The scale that fits a block to its cell comes from the box of the words in the definition's own font, in one pass of AutoCAD's layout: the block with AB, in a cell 40 wide, is fitted at 37 over 26.17, 1.41401, and the column, which that scale gives 26.66 of Arial to hold, is widened to 40.69607, where the block fills it by its Arial box (a constant definition is the same box in both, and a block with none has one). The presenter does that pass, and draws a block fitted in a cell it has not widened at the scale that fits the wider of the two boxes, 1.38787, inside it; it asks nothing of the least a drag of the column goes to, as AutoCAD's MinimumColumnWidth does not. AutoCAD run twice (its GenerateLayout and RecomputeTableBlock both) goes on from the widened column, 1.44061 and 41.40525 for that block, and a third time further, 1.8 % a pass: the presenter does it once and keeps the scale in the cell's 144, as AutoCAD stores it, so that a table drawn again finds the block fitted to its widened cell and does not widen it again; a column set to another width is fitted anew. Each ATTRIB of the INSERT in the table's block is drawn at the scale and turn of the block. A cell written in a table of 100 rows of 20 columns is written and drawn in about 50 ms.

TABLEEXPORT (Export of a table's right-click menu) asks Select a table: (asked again, Object selected is not a table., for any other object), then the file, by the window's Export Data dialog of Comma Delimited (*.csv) or, with FILEDIA 0 or no window, Enter file name <file>:, and writes the table as comma separated values: a line for each row ended by a carriage return and a line feed, a field for each column holding the text of the cell as it shows, its formatting codes taken off ({\fArial|b1;Bold} plain is Bold plain, \S1/2; is 1/2), the fields of a block of merged cells but the first empty, a field with a comma, a double quote or a line break put in double quotes and its quotes doubled. A table of two rows holding Name, Qty, Nut, M8 and 12 gives Name,Qty and "Nut, M8",12. AutoCAD 2021's console says Select a table: and Object selected is not a table. just so, but ends the command after the pick with no file question (FILEDIA 0 too) and writes nothing, so the layout of its file is still the documentation's. The file is written in the system's ANSI code page (named outright, so the same on .NET Framework and .NET 8; UTF-8 where the system gives none), .csv added to a name with none; a file that cannot be written says Can't open file. (two spaces, as AutoCAD 2021 spells it), and nothing is said when it is written. The drawing is not changed, so there is no undo step. The table menu's Table Style items stay grey: Save as New Table Style and Set As Table in Current Table Style keep a starting table in the style, which the library's table style does not hold.

DATALINK opens the Data Link Manager (a drawing of AutoCAD 2007 or later; with no window it lists the links). A data link is a DATALINK object of the drawing's ACAD_DATALINK dictionary, made as AutoCAD 2021 makes the link of its Excel adapter (AcExcel, read from the Data Links sample drawing): its tooltip, its connection string (parts.xlsx!Sheet1!A1:C5; the sheet alone for the entire sheet, the name alone for a named range), its options, its update options (0x1C0001 as AutoCAD sets them: update row heights and column widths, allow writing to the source, the 0x20000 flag where the workbook's formatting is not used), when it was last updated, the objects it is tied to and its custom data (ACEXCEL_UPDATEOPTIONS, ACEXCEL_CONNECTION_STRING and ACEXCEL_SOURCEDATE, the date of the file as a SYSTEMTIME). The sources are an .xlsx workbook and a .csv file, read by code of the presenter's own (no Excel): shared and inline strings, numbers shown as their formats show them (percent, thousands, decimals, dates and times), booleans, the value last kept with a formula (nothing is evaluated), a cell's alignment, fill and text colour. A workbook of the older .xls kind is told so and not read. The manager's New Excel Data Link (name, file with its full, relative or no path, entire sheet, named range or range, a preview, Use Excel formatting and Allow writing to the source file), Edit, Rename, Delete (The data link is being used and cannot be deleted. while a table uses it) and Update are each one undo step; a name in use says Data link name in use.

A table is linked to a link by Link Cell (the Table Cell tab and the cell's Data Link..., which opens Select a Data Link), by TABLE's From a data link or by -TABLE's data Link option (Enter the name of a data link or [?]:). The data is put in from the cell, rows and columns added to hold it, a merged title in the way made single cells, and the block is linked as one range in the table's TABLECONTENT as AutoCAD links one. DATALINKUPDATE asks Select an option [Update data link/Write data link] <Update>: then Select objects or [Data link/all data linKs]: (tables, a link by name with ? to list, or all) and says n data link(s) updated successfully., could not be updated, written out successfully, could not be written out or do not allow their data to be written out, as AutoCAD 2021's string tables give them. An update reads the source again and makes each table's block the size of the data again, the rows and columns it adds or takes out moving the references of the table's formulas as Insert and Delete of a row or column do (a formula in B1 that reads A6, with two rows added in the block above it, reads A8 afterwards); Write puts the table's cells back in the workbook (a cell with a formula is left) or the CSV file, the other cells and parts as they were. The cell menu's Data Links (Edit Data Link, Update Table Data Links, Download Changes from Source File, Upload User Changes to Source File, Detach Data Link) and the ribbon's Link Cell, Download from Source and Upload to Source do the same.

DATAEXTRACTION (alias EATTEXT, the Extract Data button of the Insert tab's Linking & Extraction panel) is the Data Extraction wizard of eight pages: Begin (a new extraction, a .dxe as a template, or one to edit; Next asks where the .dxe is saved), Define Data Source (drawing files and folders, the current drawing, or the objects selected, which closes the wizard for the picking and shows it again at the page; extract from blocks, xrefs, model space only), Select Objects (the object types and block names with their counts, Display all, blocks only, non-blocks only, blocks with attributes only, in-use only), Select Properties (by category: Attribute, Dynamic Block, Drawing, General, Geometry, Misc), Refine Data (the columns in their order, renamed, combine identical rows with a Count, the Count and Name columns, a sort, a filter of AutoCAD's eleven conditions, a preview), Choose Output (a table in the drawing, a file of .xlsx, .csv or .txt) and Table Style (the style and the title). Finish saves the settings, writes the file and asks Specify insertion point: for the table. The table is made of a title row (merged), the header row and the data rows; its header and data cells are one range linked to a data link named Data Extraction - file.dxe, adapter Autodesk.AutoCAD.DataExtraction.DxDataLinkAdapter, options 5, update options 0x60000, connection string the .dxe's name, as AutoCAD 2021 wrote it in its Data Extraction sample. DATALINKUPDATE runs the extraction again from the .dxe on the drawing as it stands and makes the table's block the size of the result. -DATAEXTRACTION asks the same by the command line: Enter name of an existing data extraction file or [New] <New>:, what to extract from, the types and properties (names separated by commas, All, or ? to list), the combining and the Count and Name columns, a column to sort by, the table and its title, an output file, and the .dxe's name. The .dxe is XML of the presenter's own (OpenCAD2DDataExtraction): the .dxe AutoCAD writes is a serialised .NET object that only AutoCAD reads, and is refused in words, as the presenter's is not read by AutoCAD. A table of a drawing before AutoCAD 2007 is inserted with no link and the command line says so. Not built: sheet sets as a source, .xls and .mdb output, Link External Data, formula columns, totals footers, folder monitoring, an xref's own objects, the notifications of out-of-date tables.

While cells are selected the table is framed by its column letters (A, B ... Z, AA) and row numbers, those of the selection on amber, as AutoCAD 2021 draws them with TABLEINDICATOR 1; TABLEINDICATOR 0 hides them, and the variable is kept on the machine, as AutoCAD keeps it in the registry. Their fill is Table Indicator Color, on the right-click menu of a whole table and in Global settings › Appearance. A press in a cell dragged across others selects the range from it to the cell under the cursor, held at the table's edge off it and grown to every merged block it meets, so that a range touching the title takes every column. The cells carry a grip at the middle of each side and the autofill diamond at their bottom right corner. An edge grip moves that line of the table: the column left of it (or the row above it) changes alone and the table grows or shrinks with it; no column goes narrower than AutoCAD's minimum, its two margins and its tallest text (9 in Standard), nor a row lower than its text needs. The autofill diamond dragged down, up, right or left fills the cells passed over from the selection (CadTableDrag), showing their coming values and the last one in a tip: a 1 dragged three cells down gives 2, 3 and 4, and dragged up counts back, as AutoCAD 2021 fills them; a right click while dragging chooses Fill Series, Fill Series Without Formatting, Copy Cells, Copy Cells Without Formatting or Fill Formatting Only. A whole table selected has its move grip at the top left, a column grip at each line between columns, which moves the line with the table's width kept (with Ctrl the column left of it alone changes and the table follows), stretch grips for its width, its height and both, and the table breaking grip, drawn grey and not offered. A line dragged shows the new line dashed and "C width = 38.0000" or "Row 3 height = 15.0000", or with dynamic input a field over the table (left of it for a row) that takes the size typed; Esc drops it, and each drag is one undo step (Autofill, Column Width, Row Height, Table Size). The drags follow the object snaps, ORTHO and polar tracking from the grip, as the other grip drags do: with Endpoint on, a column's line dragged near the end of a line at 53 goes to 53, and with ORTHO the corner's stretch grip dragged right and a little down stretches the width alone. A table whose rows flow up is worked the same way from its first row at the bottom: the line over its fourth row dragged up 6 makes that row 6 higher, and a 1 dragged up three cells gives 2, 3 and 4. The right-click menu of cells is AutoCAD's: Cut, Copy, Paste, Cell Style, Background Fill…, Alignment, Borders…, Locking, Data Format…, Match Cell, Remove All Property Overrides, Insert (Block…, Field…, Formula), Edit Text, Delete All Contents, Columns and Rows (Insert, Delete, Size Equally, Resize), Merge, Unmerge and Properties work; Data Link…, Manage Content… and Quick Properties are grey. Columns › Resize and Rows › Resize start the drag of the selection's right (or bottom) line as though its edge grip had been clicked: the line follows the cursor, and a click, Enter or a size typed makes it.

Table cells: Cut, Copy, Paste, Match Cell, Locking, Data Format, Cell Styles, Borders, Block, Field and Formula. The Table Cell tab and the right-click menu of cells do the rest of what AutoCAD 2021's do to a cell, each one undo step. Ctrl+C and Ctrl+X on cells selected take them as a snapshot (CadTableCellClip, held by the window for any of its drawings): each cell with its words as they were typed (or its number with its kind, unit and format, its block with its scale, turn and attribute values, its field or formula) and its own look (alignment, text height, style and colour, fill, the four borders), and the blocks of merged cells within them. Cut then takes the contents out as Delete does and keeps the look. Ctrl+V gives the cells to the range selected from its top left cell; a range of whole multiples of the cells copied is filled with them side by side (A3:B3 pasted into A5:D7 makes three rows of two pairs), what falls past the table is left out, the merges the paste meets are taken out, and the references of a formula pasted move by the rows and columns it moved (=Sum(A1:A3) of A4 pasted into B5 is =Sum(B2:B4); $ holds one). Paste with nothing held is left to PASTECLIP. MATCHCELL (Match Cell) asks Select source cell: (the cell selected when the button is pressed) and Select destination cell: until Enter, giving each the source's look and its data format, the words kept. Cell Locking sets Unlocked, Content Locked, Format Locked or Content and Format Locked in the TABLECONTENT of the table (DxfTable.SetCellState), which a table of none is given first; a cell locked in its content refuses typing, Delete, Cut, Paste, Autofill and a block, field or formula, one locked in its format refuses its alignment, fill, borders, data format, cell style and Paste, each said as The cell A3 is locked: its content is not changed.; the locks of a file AutoCAD wrote are kept and honoured, and reach a DXF and a DWG of R2007 or later. Data Format opens the Table Cell Format dialog (Custom Table Cell Format…) on the kind, unit and format of the first cell, or a kind chosen in its menu gives its usual format at once: Angle (%au), Currency (%lu2%pr2%ps[$,]%th44), Date (%x, %X, %c), Decimal Number, General, Percentage (%lu2%pr0%ps[,%]%ct8[100], 0.5 shown 50%), Point, Text and Whole Number, with a sample of 1234.5678 written so; a cell of a number shows its format as the library writes it, the prefix and suffix (%ps) and the factor (%ct8) included. Cell Borders… opens the Cell Border Properties dialog: the lines chosen (All, Outside, Inside, Bottom, Left, Top, Right, or No Border to hide them all) are given the lineweight and colour chosen; the linetype, double line and its spacing are greyed, as the DXF of R2000 to R2018 holds no group for them. The Cell Styles box lists the table style's cell styles, Title, Header and Data and those made with Create New Cell Style… (a name and the cell style it starts with, kept in the table style's CELLSTYLEMAP, id 101 on: DxfTableStyle.AddCellStyle), and Manage Cell Styles… (New, Rename, Delete; Title, Header and Data stay; the cells that had a cell style deleted go back to the style of their row, keeping the look written into them, so that a cell style made later does not take them over). A cell given a cell style takes its look as its own overrides and its id in its TABLECONTENT (DxfTable.SetCellStyleId); the user's cell styles stay in a DXF, a DWG keeps the three and the looks the cells were given. Insert › Block… puts a block of the drawing in the cell as a block cell (AutoFit, or a scale, and a turn; the cell's block attributes take their definitions' text: DxfTable.SetBlockTableRecord). Insert › Field… opens the Field dialog and shows the words the field comes to, the field kept in the cell (DxfTable.SetFieldCode). Insert › Formula (Sum, Average, Count, Cell, Equation) runs EDITTABLECELL, which asks Select a table cell:, the kind, and the corners of the range (Select first corner of table cell range:, Select second corner of table cell range:) or the cell or the words of the equation, and writes =Sum(A3:B4), =B2 or =A1*B1+2 as AutoCAD 2021 writes a formula (a field of the evaluator AcExpr). The cell shows what the formula comes to (a whole number where every number in it is whole, as =2*3+1 is 7), and every formula and field of the table is worked out again after each edit of it (in passes, until none changes a cell, so a formula that reads another's result follows it; the cells of a loop are found first), in the same undo step, and when the drawing is opened or saved by FIELDEVAL; a cell of words in a formula, or a division by nought, shows #####, and so does a formula that reads its own cell, directly or through other formulas (AutoCAD 2021 does not go round again, so it is the same at every update). Sum, Average and Count take ranges and cells (Sum(A1:A3, C1)); an empty cell counts nought in a sum and is left out of an average and a count; a range typed past the table is cut to it. Rows and columns put in or taken out of the table move the references of its formulas as AutoCAD 2021 moves them: with a row put in above row 4, =Sum(A3:A5) becomes =Sum(A3:A6), with row 4 taken out =Sum(A3:A4), a $ anchor going along, and a reference to a cell taken out becoming #ERR (#####). A number may be written in scientific form, 3e9, 1.5E-3*2, 2E+2 (with digits after the e), in a formula of a cell and in a field's \AcExpr: it is a real number, never a whole one. In a field a whole number past 32 bits shows #### (3000000000, 2147483647+1) and 3e9 or 3000000000.0 does not; a cell shows 3000000000 as that number.

MLEADERSTYLE (MLS), and the last item of the multileader style box of the Annotate tab, show the Multileader Style Manager (CadMLeaderStyleEditor): Set Current, New…, Modify… and Delete, which is refused for Standard, the current style and a style a multileader is drawn in. A double click on a style makes it current. A drawing of no multileader style is given Standard first, metric: arrows 2.5, a break of 3.75, a landing of 8, text 2.5 high and a landing gap of 2. Modify writes the Leader Format, Leader Structure and Content tabs into the drawing's MLEADERSTYLE and gives every multileader of the style its values, those it has of its own kept: a style's text made 2.5 high leaves a multileader whose words were set 6 high at 6. The Symbol list of Leader Format shows each arrowhead with its picture, as AutoCAD's list shows it and as the First, Second and Leader lists of the Dimension Style dialog show theirs, a user arrow drawn from its block. MLEADER asks Specify leader arrowhead location or [leader Landing first/Content first/Options] <Options>: as AutoCAD 2021 does; a point starts the leader arrowhead first, and a keyword (or Enter, which takes Options) says that the other orders and the options are not offered yet and ends the command. MLEADER draws in the current style (CMLEADERSTYLE, else Standard): a multileader of a style of words and arrows 4 high has words and arrows 4 high. The second point is where the leader lands, as in AutoCAD 2021: the leader line runs from the arrow to it, the dogleg goes on from it away from the arrow, and the words stand past the dogleg and the gap, held at their left for a landing on the right of the arrow and at their right for one on its left, their first line's middle level with the landing (an arrow at (100, 100), a landing at (150, 150), a dogleg of 0.36 and a gap of 0.09 give words 0.18 high held at (150.45, 150.09); at 1:50 the dogleg is 18, the gap 4.5 and the words held at (172.5, 154.5)); the first line's middle is half the words' height and the depth of their ink below the baseline, measured in the font of their text style where the presenter reads it, as AutoCAD 2021 holds them: "HELLO" of arial.ttf 0.18 high, whose O hangs 0.00307 below the baseline, is held 0.09153 above the landing (154.5767 at 1:50), "B-12", "x" and "TEXT" 0.09, "gjpqy" 0.11646 and "Default_Text" 0.11499 (txt.shx 0.12 and 0.105); a font that is not read leaves half the height. The groups are those of AutoCAD's command, where the library's template (ezdxf's) writes others: the flow of the words by the style (172 of 5), a background colour of -1073741824, a background scale of 0, no automatic column height (295 of 0), the overrides of the content type and of 14 and 18 alone (90 of 279552, no override of the text colour), and in an annotative multileader the scale in its context alone (40 of 50 at 1:50) with the record's own scale the style's (45 of 1, its override clear). Each change is one undo step. In a drawing of R2007 or later with no style to draw in, MLEADER first makes Standard current, metric as above, or in an imperial drawing (MEASUREMENT 0) AutoCAD 2021's own: text and arrows 0.18, a landing of 0.36, a gap of 0.09 and a break of 0.125, in the same undo step. A style of no content draws the leader alone, asking no text, its dogleg from the landing away from the arrow, as AutoCAD 2021 draws it. A style of block content (Type Block on the Content tab: Source block, one of the drawing's own blocks, Attachment Center extents or Insertion point, Color and Scale) asks "Enter attribute values" and each attribute's prompt with its default, "Enter tag number :", and places the block past the end of the dogleg, its box met on the side towards the arrow: the circle of radius 5 of TAG, landed at (20, 10) with a dogleg of 0.36, stands at (25.36, 10), as AutoCAD 2021 placed it. AutoCAD's own blocks of the list (Detail callout, Slot, Circle, Box, Hexagon, Triangle) are not offered. Scale multileaders to layout and Specify scale are greyed while Annotative is ticked.

MLEADERSCALE is the scale of the multileaders drawn next, as in AutoCAD 2021: making a style current, by Set Current or CMLEADERSTYLE, gives it the style's scale (nought for an annotative style), even for the style already current; set by itself it leaves the style alone, so that with a style of scale 5 current, MLEADERSCALE 2 draws words 4 high at 8 while the style keeps 5. Nought draws at 1, or through a viewport of 1:10 at 10; a value below nought says Cannot set MLEADERSCALE to that value., and a name of no style at CMLEADERSTYLE Cannot set CMLEADERSTYLE to that value.. A scale other than the style's is the multileader's own, as AutoCAD writes it. The variable is kept in the drawing's DICTIONARYVAR MLEADERSCALE, which AutoCAD 2021 reads (a $MLEADERSCALE of the header it ignores), and reads 1 in a drawing that has none, whatever its current style's scale.

LEADER (LEAD) asks as AutoCAD 2021 does, on the command line: Specify leader start point:, Specify next point:, then Specify next point or [Annotation/Format/Undo] <Annotation>:. Format makes the leader a spline or straight, with an arrow or none; Undo takes the last point back. The words are typed line by line at Enter first line of annotation text or <options>: and Enter next line of annotation text:, or Enter gives Enter an annotation option [Tolerance/Copy/Block/None/Mtext] <Mtext>:: Copy makes an MTEXT of a text or an MTEXT picked, or copies an INSERT picked to the leader's end, its scale kept and turned to the X axis of the UCS, with no hook (an INSERT at (500, 500) scaled 1.5 by 2.5 and turned 0.3 is copied to (10, 320) scaled 1.5 by 2.5 and turned 0, as AutoCAD 2021 copies it); a TOLERANCE is copied there along the UCS's X, its insertion point on the end where the leader runs right and set back its first row's width where it runs left, so that its right side meets the end: {\Fgdt;j}%%v0.1 at DIMTXT 0.18 in Arial copied to a leader ending at (90, 105) stands at (89.07704, 105), as AutoCAD 2021 puts it, and a leader steeper than 15 degrees takes a hook as words do: copied to a leader from (200, 40) to (210, 45), the frame stands at (210, 45) and the leader runs through (209.82, 45), DIMASZ short of the end. Block places an INSERT as INSERT does, None leaves the leader pointing to nothing, and Mtext opens the MTEXT editor; Tolerance shows the Geometric Tolerance dialog and puts its frame at the leader's end as Copy puts a copied one, Cancel or an empty dialog leaving the leader pointing to nothing (with no window to show the dialog, the option is asked again). While the points are picked the leader is previewed at the cursor, its arrowhead and its line or spline as the leader made there draws them. The leader is drawn by the current dimension style and DIMSCALE: its MTEXT stands DIMGAP past the last point, to the right where the last segment runs right or straight up or down, and a hook DIMASZ long runs on to it where that segment is steeper than 15 degrees: a leader from (0, 0) to (10, 10) with DIMASZ 2.5 ends (7.5, 10), (10, 10), its words middle-left at (10.625, 10) with DIMGAP 0.625, or bottom-left at (10.625, 10.625) with DIMTAD 1, as ISO-25 has it. Every dimension variable other than the style's is written as the leader's override, as AutoCAD writes them, in the order of their groups: DIMSCALE 2 gives 1070 40, 1040 2 and words twice DIMTXT high, and DIMEXO 0.5, DIMCLRD 1, DIMCLRT 2, the arrow _Dot and DIMLWD 0.30 give 42, 176, 178, 341 and 371 in that order. Words typed take DIMCLRT, the current colour where it is BYBLOCK. In a UCS other than the world's, a moved one too, the last segment is measured along the UCS's axes, as AutoCAD 2021 measures it: the words run along its X, DIMGAP along it from the end (and DIMGAP up its Y with DIMTAD 1), and a leader steeper than 15 degrees to that X takes its hook along that X, the hook's vertex DIMASZ short of the end; in a UCS turned 30 degrees a leader from the UCS's (0, 0) to (10, 10) ends at the world's (3.66, 13.66), its hook's vertex at (3.50, 13.57) with DIMASZ 0.18, its words 0.625 along the UCS's X from there. A frame on a leader to the left there is set back its width along the world's X and the leader's end moved to the frame's right side, as AutoCAD 2021 does: from the UCS's (0, 400) to (-10, 400), the end picked at the world's (-208.660, 341.410) moves to (-208.784, 341.872). QLEADER (LE) draws by the drawing's Leader Settings, which Settings or Enter at Specify first leader point, or [Settings] <Settings>: shows where there is a window (with none, the command line says so and QLEADER draws by the settings the drawing has). AutoCAD 2021 keeps them per drawing, in an XRECORD under the key AcadDim of the named object dictionary with group 90 of 990106, and CadQLeaderSettings reads and writes that record as AutoCAD's QLEADER reads it (checked in its console): 60 the annotation type, 61 the reuse (2 is Reuse Current, 340 the words kept), 62 the text on the right side and 63 on the left, 64 Underline bottom line, 65 Spline, 66 No Limit, 67 the Maximum points, 68 Prompt for width, 69 Always left justify, 70 and 71 the angle constraints, 72 Frame text, 170 the tab shown. QLEADER never writes it itself; the dialog's OK writes it, and the arrowhead as DIMLDRBLK, an override of the current dimension style, in one undo step. With the defaults it takes three points, asks Specify text width <0.0000>: and sets the middle of the words' top line at the end on the right and of their bottom line on the left; DIMGAP and DIMTAD 0 are written as overrides on every leader, as AutoCAD 2021 writes them. Each setting is followed as AutoCAD 2021 follows it: a row of the Attachment tab hangs the words from their top, middle or bottom, Middle of top line half DIMTXT above the end; Underline bottom line writes DIMTAD 1 and stands them DIMGAP above it; Frame text writes DIMGAP below nought; Always left justify asks no width and sets the words' right edge DIMGAP short of an end on their right; a segment held to an angle takes the point square onto the nearest ray, (100, 30) held level from the origin being (100, 0), and the preview at the cursor runs to the point held, so that the cursor at (100, 30) previews the segment to (100, 0); Copy an Object stands the copy of words by its middle and copies an INSERT or a TOLERANCE as LEADER's Copy does; Block Reference asks the block and INSERT's prompts; Tolerance shows the Geometric Tolerance dialog after the points and puts its frame at the end as LEADER does; None ends the leader with no annotation, and so do Tolerance's Cancel and an empty dialog; Reuse Next keeps the next words or frame, the settings then turned to Reuse Current, which copies them to each later leader with nothing asked, and copies an INSERT or a TOLERANCE kept to the leader's end as Copy does. In a turned UCS QLEADER raises its words up the world's Y, as AutoCAD 2021 does: Middle of top line half DIMTXT above the end whatever the UCS. How far the words' point is raised the leader writes as group 213, DIMGAP left out, as AutoCAD 2021 writes it in any UCS: (0, -0.09, 0) for Middle of top line at DIMTXT 0.18, (0, 0.09, 0) for Middle of bottom line, their width along X as well where Always left justify sets them back on the left, and none for the other rows, Underline bottom line and LEADER. Its angle constraints are held there as AutoCAD 2021 holds them, the way the point was picked read along the UCS's axes but the point laid off along the world's: in a UCS turned 30 degrees, the UCS's (310, 503) from its (300, 500) held level is 10 along the world's X, and its (305, 510) held to 45 degrees is (7.5, 7.5) on in the world. A leader to words, a frame or a block made in a UCS other than the world's writes the UCS's X as its horizontal direction (group 211, (0.866, 0.5, 0) in a UCS turned 30 degrees), one of no annotation the world's X. A leader arrow other than the style's is written as the leader's DIMLDRBLK override, 1070 341, 1005 and the handle of _Dot. The Arrowhead list of Leader Settings shows each arrowhead with its picture, drawn as a leader draws it, and ends with User Arrow..., which opens AutoCAD's Select Custom Arrow Block over the dialog, Leader Settings dimmed and blocked until it closes: an editable list of the drawing's blocks (all but layouts, anonymous blocks and external references), A to Z whatever their case, the block in use as the arrow chosen when it opens, else the user arrow kept, else the first. OK takes a name typed in either case: the block becomes the arrow, joins the list just above User Arrow... and is written on OK of Leader Settings as DIMLDRBLK and as group 3 of the settings; a name the drawing has not leaves the dialog open, its box framed orange and the line under it saying The drawing has no block TAGX.. In a drawing of no block the dialog still opens, its list greyed, OK greyed while its box is empty, and the line says The drawing has no block to use as an arrow. Make one with BLOCK first, or Cancel.; Cancel, Esc and the close button leave the arrow as it was. LEADER and QLEADER are each one undo step.

TOLERANCE (TOL) shows the Geometric Tolerance dialog, every box empty, then asks Enter tolerance location:, the frame following the cursor by its insertion point until the point is picked; it is put along the X axis of the UCS in the current layer and dimension style, each current dimension variable other than the style's written as an override, as dimensions and leaders write them (DIMTXT 5 typed over ISO-25 gives 1070 140, 1040 5 and rows 10 high), one undo step. The dialog has two rows of a symbol (the Sym box opens the Symbol dialog of the fourteen symbols and the blank), two tolerances (the box before a value toggles the diameter sign, the box after it opens the Material Condition dialog of M, L, S and the blank) and three datums (a letter and its material condition), then the height of a projected zone with its P and the datum identifier; OK writes them as AutoCAD writes a TOLERANCE's group 1, a row of nothing left out, a cell left empty kept between its neighbours: the position of a diameter 0.1 at MMC to the datums A, B and C is {\Fgdt;j}%%v{\Fgdt;n}0.1{\Fgdt;m}%%v%%vA%%vB%%vC. Cancel, or OK with every box empty, makes no frame; with no window the command line says so. A frame is drawn as AutoCAD 2021 lays one out (measured in its console): every row twice DIMTXT times DIMSCALE high whatever DIMGAP, the insertion point the middle of the left side of the first row, each next row under the one before on that side with its own width, each cell as wide as its ink and DIMTXT, a cell of nothing taking no room. The words are measured in the dimension style's text style and the gdt symbols take the room AutoCAD's gdt font gives them, 2/21 of the height either side of most, 1.5/21 of the diameter and 2.25/21 right of the runouts, drawn with the presenter's own strokes (board GdtGlyphs); words inked past their pen, as Arial's A and f, set what follows on from their ink. {\Fgdt;j}%%v0.1 at DIMTXT 0.18 in Arial is 0.92296 wide and {\Fgdt;n}0.1{\Fgdt;m} 1.009563, as in AutoCAD. Lines are in DIMCLRD, words and symbols in DIMCLRT. The snaps End, Mid, Nearest, Perpendicular, Intersection and Extension take the sides of each row's rectangle alone, none of the walls between cells or of the symbols (a line through a frame meets the sides of its rows and no wall, and a wall meets no side), and Insertion the frame's insertion point, as AutoCAD 2021 gives them. Selected, a frame shows one grip, at its insertion point; MOVE, COPY, ROTATE and SCALE move it as AutoCAD does (SCALE writes DIMTXT and DIMGAP scaled as overrides), and MIRROR keeps it readable under MIRRTEXT 0, its normal kept, and turns it over under MIRRTEXT 1. EXPLODE refuses one with Cannot explode TOLERANCE, as AutoCAD 2021 does. TEXTEDIT (DDEDIT) and a double click open the Geometric Tolerance dialog filled from the frame's words, its rows, height with its P and datum identifier read back from group 1, and OK writes the words it ends with, one undo step. A row written by hand that leaves a box's cell out is read by what its cells hold: a first cell that is no symbol is the first tolerance, and letters alone where a tolerance would be are the first datum, so that {\Fgdt;j}%%v0.1%%vA%%vB opens as the position, 0.1, to A and B, and OK writes it in the dialog's layout, {\Fgdt;j}%%v0.1%%v%%vA%%vB, drawn the same, a cell of nothing taking no room (AutoCAD 2021 draws {\Fgdt;j}%%v0.1%%vA and {\Fgdt;j}%%v0.1%%v%%vA both 1.271051 wide in Arial). Properties shows a frame's Dim style (Misc), Dim line color (Lines & Arrows), Text color and Text height (Text), each variable as the frame reads it, and writes a value typed as an override of its style, as a dimension's rows are written. A frame on a leader to the left is set back the width of its widest row, and the leader holds that width and the height of all its rows (groups 40 and 41), as AutoCAD 2021 writes them.

QSELECT and FIND show the window's Quick Select and Find and Replace dialogs, whose logic is CadQuickSelect and CadFind. Quick Select compares the rows of the Properties panel: of a plan of 312 lines on layer WALLS among others, Line, Layer, = Equals, WALLS selects the 312 and says 312 item(s) selected.; numbers are compared within the tolerance of a point, so Length = 200 takes a line 200.0004 long. Its Select objects button, at the right of Apply to, hides the dialog while Select objects: asks on the command line; the objects picked become the selection and the dialog comes back with Apply to: Current selection, its types those of the objects picked, so a line of DOORS and a text picked offer Multiple, Line and Text. The button is greyed while Exclude or Append to current selection set is chosen. With Append ticked, Apply to: Current selection looks among every object of the space and not among the selection, as appended matches can only come from what the selection does not hold already: with one line selected, Line, Layer, WALLS and Append select it and the lines of WALLS; the types and values the dialog lists follow, and go back to those of the selection when Append is unticked. FIND searches TEXT, MTEXT by its words, attribute values, dimension text, multileader text and table cells, and replaces in MTEXT its words alone: {\fArial|b1;Bolts M20} with M20 replaced by M24 is {\fArial|b1;Bolts M24}. Replace and Replace All are one undo step each. Find says what it found under its list in the singular of AutoCAD's own strings: 1 match in 1 object, 2 matches in 1 object, 6 matches in 6 objects. Over 100 000 objects Quick Select by layer takes 0.25 s and FIND 0.04 s.

DRAWORDER and TEXTTOFRONT write the sort table AutoCAD writes, a SORTENTSTABLE under ACAD_SORTENTS in the extension dictionary of the space's block (DxfDrawOrderTable), and the display draws in its order: a line sent to the back with DR, Back is drawn under every other object. GROUP makes a GROUP of the ACAD_GROUP dictionary, named with Name, unnamed (*A1) without; with PICKSTYLE 1, the default, a pick of one member takes the whole of a selectable group, and Ctrl+Shift+A switches that off and on (<Group off>). -PURGE never deletes what AutoCAD keeps: layer 0 and Defpoints, the linetypes ByLayer, ByBlock and Continuous, the styles Standard and the current ones, the blocks of the spaces, the plot style Normal and every visual style; a group it deletes when the group holds nothing, named or unnamed (Deleting group "*A1".), whether it was never given a member or its members were all erased; with "Verify each name to be purged?" Yes ([Yes/No] <Y>:) it asks Purge layer "EMPTY1"? <N> of each. -PURGE says Nested items = Off Orphaned data = Off first, as AutoCAD 2021 does (it purges nested items all the same), and at the end each kind in AutoCAD's order says what it deleted or No unreferenced layers found.: blocks, layers, linetypes, text styles, shape files, dimension styles, mlinestyles, plotstyles, table styles, materials, visual styles, multileader styles, groups, Detail view styles, Section view styles; Orphaned data says No orphaned data found. The presenter purges none of the mlinestyles, materials, Detail view styles and Section view styles, which it says it found none of. It purges pass after pass until nothing more is unused, so that a block OUTER inserted nowhere, holding the only INSERT of INNER, takes INNER with it, and the layer only INNER's circle was on; a name answered No is not asked again. PURGE shows the Purge dialog where there is a window (the typed form otherwise): the named objects nothing uses by kind, with Confirm each item (which asks of each object in AutoCAD 2021's task dialog Purge - Confirm Purge, You are about to purge layer TMP. What do you want to do?, with Purge this item, Skip this item and Cancel), Purge nested items, the geometry of no length and the empty texts, and a preview of the item chosen: a block, or a text, dimension or multileader style drawn as its dialog draws it, white on black, or a table style drawn on white as the Table Style dialog draws it; and in Find Non-Purgeable Items the objects in use with the reasons, Layer WALLS is the current layer., Used by 2 objects in model space and 0 in layouts., Referenced by block GB.. Each purge is one undo step. CLASSICGROUP shows AutoCAD's Object Grouping dialog (GROUP being the command-line form in AutoCAD 2021): New, Add, Remove, Find Name and Highlight ask on the command line and bring the dialog back; Rename, Description, Explode, Selectable and Re-Order change the group at once; OK keeps every change as one undo step and Cancel takes them back. Re-Order… opens Order Group: the groups in a list, and Remove from position, Enter new position and Number of objects labelled with the ranges the group allows, so a group of twelve moved from 3 to 0 reads (0-11), (0-11) and (1-9). Its Highlight < hides both dialogs and steps through the members on the canvas one at a time, Object 0 of 11 [Next/Previous/eXit]:, Next and Previous going round; eXit or Enter brings Object Grouping back. LAYERSTATE shows the Layer States Manager and -LAYER State asks the same on the command line: a state is an XRECORD of ACAD_LAYERSTATES, written group for group as AutoCAD 2021 writes it (mask 2047 for every property, the layers last first by handle), restored in the properties its mask holds, and exported to a .las file AutoCAD 2021 writes to the byte; each run is one undo step. With "Apply properties as viewport overrides" ticked while a viewport of a layout is worked through, or is the one selected on the paper, Restore leaves the layers alone and writes the state into that viewport: a colour, linetype, lineweight or transparency of the state that is not the layer's own becomes its override there (one that is the layer's own takes the override off), a layer the state has off or frozen is frozen in the viewport and one it has on and thawed is thawed there, and with "Turn off layers not found in layer state" the layers the state does not name are frozen there too. Locking, plotting, the freeze in new viewports and the current layer have no form of one viewport and stay as they are. New… shows New Layer State to Save, its name (the drawing's states offered in its list) and an optional Description, which the manager's Description column shows; a name the drawing has is asked about first, and Yes replaces that state with the layers as they stand and the new description, the properties it restores kept. Edit… shows Edit Layer State over the state chosen: the layers it saved, by name, each with On, Freeze, Lock, Plot, Color (Select Color), Linetype (Select Linetype), Lineweight, Transparency (0 to 90), Plot Style (greyed) and New VP Freeze, changed in the state only; a layer that differs from the drawing's, in a property the state restores, is marked ●, one the drawing no longer has ○ (kept, passed over on restore); Add layers offers the drawing's layers the state does not name, Remove layers takes out those chosen, and Layer properties to restore greys the column of a property unticked. OK writes the state as an edit of LAYERSTATE's one undo step, the drawing's layers left as they are. VIEW shows the View Manager and its New View, -VIEW asks on the command line: a view is a record of the VIEW table (db.ViewTable), its layer snapshot the hidden state ACAD_VIEWS_ and its name, restored with it; Edit Boundaries and Define window ask two corners and bring the dialog back, Cancel takes the run back. UNITS shows Drawing Units and its Direction Control, writing LUNITS, LUPREC, AUNITS, AUPREC, ANGDIR, INSUNITS and ANGBASE on OK as one step; typed lengths and angles are read in those units, 1'3-1/2" in architectural units and 100 as grads where AUNITS is 2; a number past the largest double, or NaNg, is not read as one. A typed angle is counted as AutoCAD counts it. A direction (the angle of @100<30, a text's rotation, an xline's angle, a hatch pattern's, the new angle of ROTATE's Reference, DIMEDIT's Rotate and Oblique) is from ANGBASE and, with ANGDIR 1, clockwise: with ANGBASE 90 and ANGDIR 1, @100<30 ends at 50, 86.6, and DIMEDIT Oblique 30 slants the extension lines of a level dimension 60 degrees from the X axis. A turn (ROTATE's angle, an arc's included angle, a block's rotation, CHAMFER's and LENGTHEN's angles, the angles of a polar array, UCS Z) follows ANGDIR only, so 30 at ROTATE turns 30 degrees clockwise; a point picked there turns by its direction less ANGBASE. The obliquing angle of a text style (-STYLE) follows neither. << before the angle reads it in degrees from the X axis counter-clockwise whatever the settings (@100<<30 ends at 86.6, 50), and <<< the same in the drawing's angle units. The angles DIST, LIST, the Properties palette (with the text rotation of a dimension and the start and end angles of an ellipse, from its major axis), the tip by the cursor and the coordinate readout write are counted the same way, east as 90 there; MEASUREGEOM's Angle writes the angle it measures as AutoCAD 2021 does, as the direction of that many degrees is written, so 30 degrees between two lines reads 60 with ANGBASE 90 and ANGDIR 1. LIST writes an ellipse and a dimension line for line as AutoCAD 2021 does: an elliptical arc from 30 to 120 degrees "Start Angle: 60" and "End Angle: 330" with ANGBASE 90 and ANGDIR 1, the obliquing and text angles of a dimension as directions (30 reads 60), and the rotation of a rotated dimension as an amount turned, by ANGDIR alone (30 reads 330 clockwise, whatever ANGBASE is). In a UCS turned 30 degrees a dimension's points are the UCS's and its rotation and obliquing angle are counted from the UCS's X axis, so one turned 30 is horizontal and one turned 90 rotated by 60, its text angle left as it is; a jogged radius writes its centre, chord point, override centre and jog point. Each object's kind stands two places before its layer, as AutoCAD names it: "MULTILEADER Layer:", "LWPOLYLINE Layer:", "BLOCK REFERENCE Layer:" for an INSERT or a MINSERT, "ACAD_TABLE Layer:". What the drawing keeps stays counter-clockwise from the X axis. A dimension that overrides its style lists "dimension style overrides:" after its style, then each variable overridden by name in alphabetical order, the name set in twelve places after a space, as AutoCAD 2021 lists them for every type of dimension: " DIMASZ 5.0000", " DIMBLK Dot", " DIMCLRD 1 (red)", " DIMJOGANG 30", " DIMSE1 On", " DIMTXSTY GHSTYLE". Distances are written in the drawing's units, nought feet and nought inches after whole feet left out (5", 1', 1'-3 1/2" in architectural units); DIMSCALE, DIMALTF, DIMLFAC, DIMTVP and DIMTFAC as plain numbers to LUPREC places; a number that would be longer than twelve characters (the unit marks and the minus sign counted) is written in scientific form with six places, five for a negative one, as AutoCAD 2021 writes it (DIMASZ 1 000.5 at LUPREC 8 is 1.000500E+03, minus 100.5 is -1.00500E+02; architectural and fractional units are never cut); DIMJOGANG in the drawing's angle units; colours 1 to 7 with their names, others by number, BYBLOCK and BYLAYER; arrowheads by AutoCAD's names (ArchTick, ClosedFilled for none) and a user arrow by its block's name; DIMFXLEN and its switch as DIMFXL and DIMFXLON. A linetype override of none, or of the handle of an object that is no linetype, is BYBLOCK; an override whose handle no object has, a text style of none and a block of the handle of a layer are not listed at all. CadUnits.ToDirection and FromDirection are the two conversions, and session.CountAngle(radians) the second with the drawing's settings.

<30 typed at a prompt for a point that has a base point, as LINE's next point, is AutoCAD's angle override: the session writes "Specify next point or [Undo]: <30 Angle Override: 30", asks the same prompt again and keeps the direction in session.AngleOverride until the point is given. The angle is read as that of @100<30, from ANGBASE and clockwise with ANGDIR 1, and <<30 from east, counter-clockwise, written back as the drawing counts it ("<<30 Angle Override: 60" with ANGBASE 90 and ANGDIR 1). A distance typed then runs along the override, on the side of the base point the cursor is: from (0, 200), <30 and 100 end at (86.6, 250). The window holds the cursor on the line through the base point at that angle through ObjectSnap.AngleOverride, over the grid, ortho and polar; as AutoCAD 2021's help has it, "coordinates and object snaps take precedence over an angle override", so a point typed is taken as typed and an endpoint under the aperture still wins. With no base point, as LINE's first point, <30 is not a point. With SELECTIONCYCLING 2, AutoCAD's default, a click where two lines cross shows the list of both near the cursor, the one drawn on top first, Line · 0 and Line · WALLS, and the row chosen is taken as a click on that line alone; with 1 or 2, Shift+Space arms cycling, and each click at the crossing then takes the other line in place of the one before. A plain click there takes the line on top, as AutoCAD's does while SORTENTS holds its bit 1 (its default 127 does): of all the objects within the pickbox, the one last in the draw order wins, however much nearer the others lie, so a line sent to the back with DRAWORDER is no longer the one picked. Under SORTENTS without that bit the one drawn first wins. AutoCAD 2021's (ssget pt) on two level lines, one through the point and one drawn later 0.9 of the pickbox above it, picks the later one; 1.1 of the pickbox above, outside the box, the other; under SORTENTS 0, the one drawn first. Ctrl+W switches cycling between 0 and 2, as in AutoCAD.

XATTACH and -XREF Attach or Overlay attach a DXF as an external reference: a block flagged 4 (12 overlaid) naming the file, and an INSERT of it, one undo step. The presenter reads the file and draws its model space under the INSERT, its layers named after the reference (grid|GRID) and its layer 0 taking the INSERT's. Of the file, the drawing takes the records AutoCAD 2021 writes for it, as its -XREF Attach of x.dwg wrote them: for each linetype but ByBlock, ByLayer and Continuous, x|DASHED with its description and dashes; for each layer but 0, x|WALL with its colour, linetype (x|DASHED), lineweight, on, frozen, locked, plotted, transparency and description, and 1001 AcXRefLayerPropertyOverride, 1071 0; each flagged 48 (dependent, resolved), and its block 36. Its entities are not written. Its own attachments are followed, its overlays not. The file is looked for as AutoCAD looks: the path saved, from the folder of the drawing that names it, then the file's name there, in the drawing's folder and in the support folders. A grid of 1 000 by 1 attached at (100, 200) from D:\Plans\xref\grid.dxf into D:\Plans\plans\host.dxf is saved as ..\xref\grid.dxf (Relative path; Full path until the drawing is saved), draws its line from (100, 200) to (1 100, 200), and picks as the INSERT. document.Xrefs lists each reference and image with its status: Loaded, Unloaded, Not Found, Unresolved, Unreferenced, or Needs Reloading once its file changed on disk. Each reference the drawing places is followed by those its drawing attaches, nested, its overlays left out as AutoCAD leaves them: the External References palette lists a nested one once, of the type Nested, and its tree view shows it under its parent, 16 pixels further in, of its own type. One whose parent is unloaded, not found or unresolved is Orphaned. The record AutoCAD writes in the drawing for a nested reference is listed under its parent alone, not as Unreferenced. A nested one is opened from the palette but not unloaded, reloaded, detached or given a path there; typed, -XREF Unload and Reload name it as AutoCAD 2021's console does (below). The palette's Unload, Reload and Detach act on every row selected (Ctrl or Shift), the references in one -XREF and the images in one -IMAGE, so that grid and axes selected and unloaded are one undo step, and a selection of a reference and an image detached is one too; a nested row in the selection is left out of Unload and Reload, and Detach names it to -XREF, which refuses it as AutoCAD 2021 does ("Xref column has multiple references. Not detached." and the reference that places it, "plan", quoted). A selection of nested rows alone leaves all three greyed. The palette gives -XREF and -IMAGE each name with a back quote before every character AutoCAD reads as a wildcard (# @ . * ? ~ [ ] - and the back quote), as AutoCAD's own palette must: a#1 unloads only a#1 (typed as a#1 it matches nothing, "No matching xref names found.", and a.b also takes a-b), and ~t is the name and not "anything but t". The same back quote works typed (-XREF Unload a`#1,`~t). -XREF Unload, Reload and Detach answer "No matching xref names found." for a name that matches no reference, and Unload "No matching and loaded xref names found." where every reference it matches is unloaded already (one that is loaded among unloaded ones is the only one unloaded and written); -XREF Path and pathType say it too, before asking a path. A reference placed by another (plan places column, the host keeping a record of column) is unloaded and reloaded by its own name: -XREF Unload plan writes Xref "plan": path, "plan" is unloaded. and, for column, Xref "column": path, "column" is orphaned. ("column" is unloaded. where column was unloaded already), and Unload * says each of the two once, plan first; a reference orphaned counts as loaded for Unload. Reload of column while plan is unloaded writes only Xref "column": path and "column" is orphaned. and changes nothing; Reload of plan writes Reload Xref "plan": path, <full path> has not changed. or, where the file changed, "plan" loaded: <full path>, and "plan" has been restored. where it was unloaded or orphaned, then each reference it places that is unloaded, Xref "column": path and "column" is unloaded.. A reference no INSERT places, here or in a drawing it is nested in, is unloaded as any other; Reload says Xref "x": path, "x" is unreferenced. and clears its unloaded state, and Bind refuses it as it refuses a nested one. A nested reference unloaded is no longer drawn. -IMAGE of a drawing with no image definition answers No images in current drawing. at the option and asks no names (Attach excepted), and a name no image has No matching image names found. (the list prints its table with 0 definitions and 0 instances). A drawing with a reference bound is saved as a DXF or a DWG that AutoCAD 2021's AUDIT finds no error in (BINDTYPE 0 and 1, a reference nested in another bound with it, another left attached): no record of the reference is dependent any more. The window watches the folders of the files read; one changed on disk is said once on its drawing's command line, where AutoCAD 2021 shows a balloon over its status bar: "External Reference Files Have Changed: grid needs reloading. Reload it with -XREF Reload or in the External References palette." It is said again only once the reference was reloaded and its file changed anew. Unload flags the reference's layers and linetypes 16 and its block 4, as AutoCAD 2021 writes them unloaded, and Reload flags them 48 and 36 again and writes those of layers and linetypes the file has gained, each an undo step where anything changes; a record the drawing has keeps what it has. Detach takes them out with the block. No DXF says a reference is unloaded. One not found shows its path at its insertion point. -XREF ? prints AutoCAD 2021's table. -XREF Bind binds the references named, as AutoCAD 2021 binds them, by BINDTYPE (0 Bind, the default, 1 Insert, kept by the session): Bind brings the drawing's layers, linetypes, text and dimension styles and blocks under the reference's name, grid$0$GRID, the number raised past a name the drawing has; Insert merges them by name, the drawing's own kept, and says each block it has already ("Duplicate Block "TAG" ignored."). The reference's block becomes an ordinary block drawn where the reference was, and the references its drawing places are bound with it under their own names (column$0$GRID), its overlays left out; one undo step. A reference unloaded is refused ("Cannot bind unloaded xref(s). Reload them first:"), one whose file, or that of a reference it places, is not found too ("xref "column" is currently not found. Reload or detach before binding."), and a nested one alone "is nested and cannot be bound". The palette's Bind… shows Bind Xrefs/DGN Underlays for the drawings selected, Ctrl or Shift selecting several: its Bind Type, Bind or Insert, starts from BINDTYPE, and OK writes the choice back to BINDTYPE and binds them all as -XREF Bind binds them, in one undo step; Cancel changes nothing. Bind… is offered where the selection holds a drawing loaded, or one that Needs Reloading, a nested one too, and greyed for a selection of only drawings unloaded or not found, or of images. A bind refused binds none of the selection, and the lines -XREF Bind writes are shown in a box as well as on the command line: grid-base and annex selected, annex unloaded, are answered "Cannot bind unloaded xref(s). Reload them first:" and "Xref "annex" is unloaded.", with "Reload annex, then bind again."; a nested row selected alone is told to bind its parent. The "Duplicate Block" lines of Insert go to the command line alone. XOPEN asks "Select Xref:" and opens the drawing of the reference picked in a tab of its own; a line picked is answered "Object is not an Xref" and the question asked again, and Enter ends it, as AutoCAD 2021's console answers them. A layer of a reference the drawing keeps a record of, as AutoCAD writes grid|GRID (flags 48), is changed in the drawing as AutoCAD 2021 changes it: on, frozen, locked, colour, linetype and lineweight, from the Layer manager, the layer box or -LAYER, and transparency, plotting and description from -LAYER, each change marked in the 1071 of the record's AcXRefLayerPropertyOverride as AutoCAD marks it (1 Off, 2 Freeze, 4 Lock, 8 Plot, 16 and 256 Color, 32 Ltype, 64 LWeight, 128 TRansparency, 1024 Description). Under VISRETAIN 1 the record is drawn whole and kept on reload, as AutoCAD 2021 keeps it with VISRETAINMODE 0, its default, which syncs nothing: x|WALL green in the record stayed green when x.dwg made WALL blue, reloaded and opened anew alike. Under VISRETAIN 0 what is marked is drawn as the drawing keeps it and the rest as the file has it, and Reload writes the file's properties back with 1071 0, as AutoCAD 2021's reload wrote x|WALL made red back as the file's blue; Unload takes the records out. The presenter takes VISRETAINMODE as 0; it does not write the records again from the file when it opens a drawing of VISRETAIN 0, as AutoCAD does. The current layer, a new name with a | and deleting are refused in AutoCAD 2021's words: "Cannot set CLAYER to that value." (the layer box, the Layer manager, CLAYER), "Invalid layer name." (-LAYER Set) and "grid|X" is an invalid layer name. (-LAYER New). -LAYER Make asks Enter name for new layer (becomes the current layer) <0>: and makes the layer where the drawing has none, as a routine's (command "layer" "m" "T1" "c" "3" "" "") types it; Color asks New color [Truecolor/COlorbook] : (a space before the colon, as AutoCAD 2021 writes it) (a number 1 to 255 or a name from red to white, else A color number or standard color name is required. or Invalid color number. and the question again), then Enter name list of layer(s) for color 3 (green) <T1>:; Ltype asks Enter loaded linetype name or [?] <Continuous>:, loads one the presenter's own set has (HIDDEN, CENTER and the rest of OpenCAD2D.lin, whose names AutoCAD users type have AutoCAD's dash lengths: HIDDEN is 6.35, -3.175 in a metric drawing and 0.25, -0.125 in one whose MEASUREMENT is 0) and asks Enter name list of layer(s) for linetype "HIDDEN" <T1>:, one no set has being Linetype "zzz" not found. Use LINETYPE command to load it.; Set asks Enter layer name to make current or <select object>: and Enter picks an object whose layer it takes; a name that is not valid at Set, Make or Rename (it holds a back quote, *, ? or another character a layer name cannot) is Invalid layer name. and the same prompt again, and a valid name the drawing lacks is Cannot find layer "nosuch". and the prompt again. A name list (Freeze, Thaw, ON, OFF, LOck, Unlock, Color, Ltype, LWeight, TRansparency, Plot, PStyle and Description; not New, Make, Set or Rename, which take one name as typed) is a list of wcmatch patterns in any case, *, ?, #, @, ., ~ and [...], with a back quote before a character that makes it itself: -LAYER Thaw * thaws every layer and Unlock * unlocks them all, and a layer named Pl#1.b@[2]~ is Pl`#1`.b`@`[2]`~ in a list, as AutoCAD reads it (typed as it is, Pl#1.b@[2]~ is a pattern that matches nothing). A name that matches no layer is passed over, and No matching layer names found. is said once where none of them matches; the layer a prompt offers, the current one, is taken by its name as it is. Freeze, OFF, LOck and Unlock offer <select objects> (Enter name list of layer(s) to freeze or <select objects>:): Enter there asks Select objects: and takes the layers of the objects selected, each by its name; Thaw and ON do not. OFF of the current layer, by name or by its objects, first asks Really want layer "0" (the CURRENT layer) off? <N>, and N or Enter leaves it on. Rename asks Enter old layer name: and Enter new layer name:, each asked again for a name that is not valid or an old name the drawing lacks, LWeight Enter lineweight (0.0mm - 2.11mm): and Enter name list of layers(s) for lineweight 0.30mm <T1>:, with the "(s)" as AutoCAD spells it. The list offers all of AutoCAD 2021's words, and ?, MATerial, rEconcile and Xref say they are not available here (the Layer manager does them). -STYLE asks as AutoCAD 2021's console words it: Enter name of text style or [?] <Standard>:, New style. or Existing style. (Existing style. Full font name = Arial for a style with a TrueType font), Specify font name or font filename (for SHX) <txt>: (the same words for a TrueType default), Specify height of text or [Annotative] <0.0000>:, Specify width factor <1.0000>:, Specify obliquing angle <0>:, the two Yes/No questions for backwards and upside down and, for an SHX font, Vertical? [Yes/No] <No>: (Annotative is described below). IMAGEATTACH and -IMAGE Attach place a picture of any of AutoCAD 2021's raster types at its size: BMP, DIB, RLE, GIF, JPEG, PCX, PNG, TGA and TIFF (see Raster types below). 40 by 30 pixels saved at 3 779 pixels a metre are 10.584811 by 7.938608 mm, one of no resolution one unit wide. The picture is drawn by its pixels, decoded once off the window's thread, clipped by IMAGECLIP (Rectangular, Polygonal, Select polyline, Invert clip), its frame shown by IMAGEFRAME 1 or 2 (2 kept as frames shown and not plotted, 70 of 3, as AutoCAD 2021 writes it, the frame left out of a plot; a drawing with no image yet given its RASTERVARIABLES when IMAGEFRAME is first changed, 72 the unit of the drawing, 1 for millimetres), its transparent pixels showing what is under it with TRANSPARENCY ON; one not found is its frame with its file's name. A drawing of 100 000 entities shown as a reference is read and drawn in 0.90 s, where opening it alone takes 0.87 s (.NET Framework 4.8). AutoCAD 2021 reads no DXF as an external reference ("Unable to load"): it keeps the block and the INSERTs of a drawing the presenter saved, AUDIT finds no error, and its -XREF ? lists them.

Raster types. AutoCAD 2021 attached each of these in its console (a 40 by 30 picture of 254 dots an inch is 4 by 3 mm, a TGA, which has no resolution, one unit wide), and so does the presenter, from the file's own head: PNG, JPEG and GIF (the platform reads their pixels; a GIF is shown by its first frame), BMP (1, 2, 4, 8, 16, 24 and 32 bits, from the top or the bottom, with a palette or bit masks), DIB (the same with no file header) and RLE (a bitmap of 4 or 8 bits run-length coded), PCX (1 to 8 bits in one plane, 1 bit in three or four planes with the palette of the header, 8 bits in one plane with the palette at the end of the file, 8 bits in three planes as true colour, its dots an inch as the resolution), TGA (colour-mapped, true colour and grey, plain or run-length coded, 15, 16, 24 or 32 bits, from either corner), and TIFF, the first image of the file, in either byte order, stored plain, as PackBits, LZW or Deflate, or coded for fax (modified Huffman, Group 3 in one dimension or two, Group 4), in strips or in tiles, bilevel, 2 or 4 bits, 8 and 16 bits of grey or palette, RGB with or without alpha, and CMYK, chunky or planar, with the horizontal predictor, its resolution read from XResolution, YResolution and ResolutionUnit. The decoders are the presenter's own (CadTgaFile, CadPcxFile, CadTiffFile, CadCcitt, CadBmpFile), with no package behind them; the presenter's TIFF reader was checked against files Windows' own encoder wrote with LZW, Deflate, PackBits, Group 3 and Group 4, and a bilevel one of 2 700 pixels across with every run length of both tables. A TIFF coded as JPEG, a BigTIFF, floating point samples, a TIFF whose orientation is not the top left, and the rest of what Raster Design's object enabler adds are not read: such an image is attached but drawn as its frame alone. A picture of more than 16 million pixels is kept as the mean of squares of pixels, so that the thin line of a scanned drawing stays a grey line. Select Image File (IMAGEATTACH, Browse, Select New Path) lists All image files first, then BMP, RLE and DIB, GIF, JPEG, PCX, PNG, TGA and TIFF each by name. A file of another type is refused, Only BMP, DIB, GIF, JPEG, PCX, PNG, RLE, TGA and TIFF pictures are attached.

A bitonal picture (one bit a pixel and one plane: a scanned drawing; a 1-bit BMP, PNG, PCX or TIFF) is drawn as AutoCAD draws it: its dark pixels in the colour of the image object, which CHPROP or CECOLOR gives it, its light ones the background, what is under the image showing through only where TRANSPARENCY is ON. The pixels are laid over each other by their luminance, so a scan of 300 dots an inch shown smaller keeps its lines as greys, not as nothing. IMAGEQUALITY (Enter image quality setting [High/Draft] <High>:, the drawing's own setting offered, Enter keeping it) sets how every image is drawn: High blends the pixels where the picture is scaled, Draft draws each as a square, faster. AutoCAD 2021 keeps it in the drawing's RASTERVARIABLES (the library's DxfRasterVariables.ImageQuality, group 71: 0 draft, 1 high) and has no system variable of that name (getvar of it is nil); one undo step. A drawing of R12 has no object to keep it in, and says so. IMAGEFRAME 2 shows the frames and leaves them out of a plot and of a PDF, where 1 plots them. TRANSPARENCY applies to any image selected, as AutoCAD 2021's does, though only a bitonal one has a background to make transparent.

Whether a TIFF is bitonal is read from its header and its first directory only (the directory of a scan is often at the end of the file), a page of 4 KiB at a time, so that a drawing with a few scans of 200 MB shows at once: the answer for a file of 200 MB took 87 ms from the whole file and takes under 1 ms.

Selecting images (and nothing else; a wipeout is no image) shows the contextual Image tab (green, as the Array tab is): Adjust (Brightness, Contrast and Fade, each a slider and a box from 0 to 100, greyed where an image selected is bitonal), Clipping (Create Clipping Boundary, which runs IMAGECLIP, New boundary, on the one image, and Remove Clipping, which gives the images their whole pictures), Options (Show Image, Transparency and the Frame box with Hide Frames, Display and Plot Frames, Display but Not Plot Frames: the drawing's IMAGEFRAME) and Close Image, which lets go of the selection. A value written in it is one undo step named IMAGEADJUST, TRANSPARENCY, IMAGECLIP or Show image; an image on a locked layer is left as it is. The tab follows an undo.

PDF underlays (a page of a PDF placed in the drawing, DxfPdfUnderlay, R2010 and later) are attached, drawn and adjusted as AutoCAD 2021 does them, from the reader of the presenter itself: a PDF is read with no library (its cross-reference tables and streams, its object streams, and the Flate, LZW, ASCII85, ASCIIHex and run-length filters), and the content of a page is run for its paths, rectangles, curves, strokes and fills, its colours in DeviceGray, DeviceRGB, DeviceCMYK, CalGray, CalRGB, Lab, ICCBased, Indexed, Separation and DeviceN (tint functions of types 0, 2, 3 and 4), its clips, its forms and their matrices, its pictures (a JPEG as it is, other samples of 1 to 16 bits with their soft or stencil masks as PNGs), its optional content (the layers) and its text, drawn as the outlines of an embedded TrueType font (the fonts Skia, Word's PDF printer and most CAD plots embed) or, for a font of other kind, as the words in the font of that name on the machine. What it leaves out is said once in the log at Debug and not drawn: shadings (sh), tiling patterns, Type 3 fonts, the outlines of fonts of CFF or Type 1 programs, a JPEG in CMYK, fax (CCITT), JBIG2 and JPEG 2000 pictures, and PDFs with a password. A page is read once and kept (the last six PDFs are), and read again when its file changes.

PDFATTACH shows the Attach PDF Underlay dialog, after the file dialog (with FILEDIA 0, Path to PDF file to attach: on the command line): the file chosen, its pages in a list of thumbnails with their sizes in inches (one or more chosen, the first as it opens), the path type, the insertion point, the scale (with the Unit box) and the rotation, each given in the dialog or asked on the command line after OK, as for an image. -PDFATTACH asks Path to PDF file to attach:, Enter page number or [?] <1>: (? lists the pages as Page 1 - 2.777778 x 1.388889 inches, Enter page(s) to list <*>: taking wildcards and commas, No matching pages found.), Specify insertion point <0,0>:, Base image size: Width: 2.777778, Height: 1.388889, Millimeters, Specify scale factor or [Unit] <1>: and Specify rotation angle <0>:. A page is 1/72 of an inch to the point, so the scale is what makes it a size of the drawing: the scale 1 puts a page of 8.27 inches at 8.27 units, and the Unit option (Enter unit [MM/Centimeter/Meter/Kilometer/Inch/Foot/Yard/MILe/Unitless]) reads those inches as that unit, the scale 25.4 in a drawing of millimetres for Inch. Each page chosen is an underlay of its own at the one point, scale and rotation, under the definition of a file and a page the drawing has already. A drawing of R2007 or older says it cannot hold one. The External References palette lists each page as a row of Type PDF (Loaded, Unloaded, Not Found, Unresolved, Unreferenced), shows the page as its preview, and its Attach PDF… item runs PDFATTACH; Unload, Reload, Detach and Change Path run -PDFUNDERLAY (?, Detach, Path, Reload, Unload, each asking the names of the definitions with wildcards and commas, as -IMAGE does), which is the library's own form for the palette and not an AutoCAD command; an undo brings a detached underlay back.

An underlay is drawn at its place with the colours the PDF has: its fade (0 to 100) and contrast (0 to 100, 100 as it is) take the colours towards the background, Monochrome makes them grey, and "Adjust colors for background" (on for a new underlay) turns the lightness of every colour over on a dark background, black to white and white to black, its hue kept, so that a page of black on white shows white on black. PDFADJUST and -PDFADJUST ask Select PDF underlay:, Enter PDF underlay option [Fade/Contrast/Monochrome] <Fade>:, Enter fade value (0-100) <0>:, Enter contrast value (0-100) <100>: or Monochrome? [Yes/No] <No>:; a value outside 0 to 100 is refused. PDFCLIP asks Select PDF to clip:, Enter PDF clipping option [ON/OFF/Delete/New boundary] <New>:, then Specify clipping boundary or select invert option: [Select polyline/Polygonal/Rectangular/Invert clip] <Rectangular>: with Outside mode - Objects outside boundary will be hidden. or Inside mode ... and Delete old boundary? [Yes/No] <Yes>:, as IMAGECLIP; the boundary is kept in the page's inches (a rectangle along the page by two corners, the others as polygons), the frame follows it, and a polygon that crosses itself is refused (Self-intersecting clip boundaries are not acceptable.). PDFLAYERS asks Select PDF underlay: and shows the PDF Layers dialog, the layers of the PDF (the optional content groups, in the PDF's own order) each On or Off, with All on and All off; with no window the layers are listed and asked by name. A layer switched off leaves its lines out of the drawing. PDFFRAME (0 none, 1 shown and plotted, 2 shown and not plotted; 1 for a new document) draws the frame, the boundary or the page's rectangle, in the layer's colour; an underlay not found, unloaded or off is drawn as its frame alone, with the file's name in the corner of one not found. FRAME sets PDFFRAME and IMAGEFRAME together and reads 3 where they differ. PDFOSNAP (1 for a new document) lets the object snaps find the lines of a PDF, End, Mid and Int of its strokes; its filled shapes and its letters give none, and with PDFOSNAP 0 nothing does. PDFFRAME and PDFOSNAP last as long as the document is open: a DXF has no place for them.

Selecting PDF underlays (and nothing else) shows the contextual PDF Underlay tab, green as the Image tab is: Adjust (Fade and Contrast, each a slider and a box from 0 to 100, Monochrome and Adjust colors for background), Clipping (Create Clipping Boundary, which runs PDFCLIP, New boundary, on the one underlay, and Remove Clipping), Options (Show Underlay, the Frame box of PDFFRAME, and Underlay Layers, which runs PDFLAYERS) and Close PDF Underlay. A value written in it is one undo step named PDFADJUST, PDFCLIP or Show underlay. The Reference panel of the Insert tab has Attach PDF…, Adjust (PDFADJUST), Underlay Layers (PDFLAYERS) and Snap to Underlays (PDFOSNAP). Not built: PDFIMPORT (a PDF converted to polylines, hatches and text), the underlays of DWF and DGN files, and the layers of an underlay in AutoCAD's own form (the managed API has no way to write them, so they are kept in the underlay's extended data and AutoCAD does not see them).

BATTMAN shows the Block Attribute Manager of the block of an INSERT selected, else of the first block with attributes: its attribute definitions in the block's order, the modes as AutoCAD's letters (I invisible, C constant, V verify, P preset, L lock position, M multiple lines), a tag given twice in red. Move Up, Move Down, Edit (tag, prompt, default, modes, text options and properties) and Remove change the list; Apply and OK write it into the block, each one undo step, and the INSERTs keep their attributes until Sync runs ATTSYNC's logic on every one of them, or at once with "Apply changes to existing references" in its Settings. Found in drawing counts the INSERTs of the block everywhere (every space, layout and other block); the second count is that of the current space, as AutoCAD's: Found in model space on the Model tab, Found in current layout on a layout's, so that a block of 3 INSERTs with 2 in model space and 1 in Layout1 says 3 and 2 on the Model tab and 3 and 1 on Layout1. A block GB of GRID, LEVEL and REV with LEVEL moved up and synced gives each INSERT LEVEL then GRID, their values kept. A tag renamed and applied with the INSERTs left alone keeps its value on the Sync that follows, in the same dialog or after Select block (GRID renamed AXIS, applied, then Sync: each INSERT's value of GRID is the value of AXIS), the manager remembering the tags the INSERTs still carry until the block is synced. Move Up and Move Down are greyed on a constant attribute, as AutoCAD's are. Another block chosen in the list, or Select block, with changes not yet written asks first, as AutoCAD's manager does: The attributes in the current block have been changed. and Do you want to save these changes? (AutoCAD's Block Attribute Manager Alert), Yes writing them and No dropping them. AutoCAD has no command-line form of BATTMAN, and with no window it says so. ATTDIA 1 makes INSERT and -INSERT ask the values of the attributes in the Edit Attributes dialog, eight a page in the block's order, the constant ones left out and a value to be verified asked once; Cancel places the defaults. The % button beside the Default of the Attribute Definition dialog (ATTDEF), the Value of the Enhanced Attribute Editor (EATTEDIT) and the Default of the Edit Attribute dialog of the Block Attribute Manager shows the Field dialog and puts the field it ends with, in its markers (%<\AcVar Date \f "dd/MM/yyyy">%), at the caret of the box; the attribute or definition written holds it as a field of its text (CadFields), showing what the field comes to, and where the window shows no Field dialog the button is grey. Typing over the words of a text that holds a field takes the field away.

BEDIT (BE) opens a block in the Block Editor, as AutoCAD 2021's (the Open in block editor box of the Block Definition dialog opens it on the block once BLOCK has made it): the Edit Block Definition dialog lists <Current Drawing> (model space itself) and the named blocks, no layout, external reference or anonymous block, and a name not in it makes a new, empty block; -BEDIT asks Enter block name or [?]:. The block is shown alone in a space of its own (CadDocument.BlockEditor, CadSpace.IsBlockEditor), where every command draws into and modifies the block's own entities, each an undo step; undo stops where the block was opened or last saved. BSAVE (BS) redefines the block and draws every INSERT anew (their attributes are not synchronised, as ATTSYNC is not run), merging the session so far into one undo step, BEDIT. A dynamic block saved so has the anonymous *U blocks its INSERTs place worked out anew from the new definition at each INSERT's values, as AutoCAD 2021's UpdateAnonymousBlocks works them: a panel whose INSERTs of Width 150 and 200 placed *U1 and *U2, given a circle and saved, has them place *U3 and *U4, each stretched to its width with the circle, INSERTs that shared *U1 sharing *U3, and *U1 and *U2 left in the drawing placed by none, as AutoCAD leaves them. The INSERTs' attributes follow as AutoCAD 2021's UpdateAnonymousBlocks left them (probed in its console): an ATTRIB whose ATTDEF is locked in the block and held by an action is made anew from the ATTDEF as the new *U block holds it, its words kept and its place, height, rotation, colour and the rest the definition's again, whatever the user gave it (a TAG ATTRIB made 4 high, turned 1 radian and moved to (1100, 510) by the user is 5 high, turned 0.3 and at (1140, 515) once the TAG ATTDEF is made 5 high and 0.3 turned and moved to (90, 15)); the other ATTRIBs keep what they have, an ATTDEF added makes none and one erased takes none away. The same goes for every other action: a move, scale, rotate, flip, array, lookup, XY and polar stretch, and the visibility states, of a panel given a circle and saved, worked out the same *U blocks as AutoCAD 2021's UpdateAnonymousBlocks of the same panels, line for line (ten kinds of action, four INSERTs each, one of them turned and scaled by 2, a circle added and then lines moved: 80 of 80 pictures alike). A line an action holds that is erased in the Block Editor drops out of the action, which goes on with the rest and keeps every value of the INSERTs: the bottom of a panel whose Width moves it and the right edge, erased, leaves the right edge moved to 150 in the *U block of the INSERT set to 150 and no bottom; an action left holding nothing does nothing. An array that loses a line is not worked out: AutoCAD 2021 drew no copies of the rest, and for a panel of that one action reset its Width to 100, and the *U blocks stay as they were. BSAVEAS copies the content to a new block and goes on with it, the one opened left as it was. BCLOSE (BC) asks Save changes to DOOR? [Save/Discard/Cancel] <Save>: of a block with changes not saved; Discard reads the drawing back as it stood when the block was opened or last saved, so a new block never saved is not made. A door of one line given a second and saved shows both in every INSERT, and one undo after BCLOSE takes the session back. Commands that leave the block or work on another space (BEDIT, XREF, LAYOUT, PLOT, PREVIEW, PAGESETUP, MSPACE, PSPACE, MVIEW, QSAVE, SAVEAS) say Not allowed in the Block Editor.. BEDIT opens in the World UCS, and UCS and UCSMAN are refused inside it (** UCS command not allowed in block editor. **), as in AutoCAD 2021. BCLOSE, by Save, Discard or with nothing changed, gives model space its UCS back as it was before BEDIT, without its name; UCS Previous then gives the World UCS, and once more that UCS. The Geometric and Dimensional panels of the Block Editor tab start the constraint commands on the block's objects: Auto Constrain (AUTOCONSTRAIN), Linear (DCLINEAR), Delete (DELCONSTRAINT) and the Parameter Manager (PARAMETERS); the constraints are kept in the block and saved with it by BSAVE. Block Table (which needs the lookup table) and Construction are greyed, with the reason. The Visibility State box of the Block Editor tab is live for a block of visibility states (CadBlockEditor.VisibilityStates): the first is shown when the block opens, and another chosen (CadDocument.SetBlockEditorVisibilityState) hides what another state lists and it does not, which is then neither drawn nor picked; an object drawn in the editor joins every state. Choosing a state is a view of the block, no undo step. RESETBLOCK puts the dynamic block references selected back to their blocks' own values, one undo step, and says 2 blocks reset., counting every block reference selected as AutoCAD 2021 counts them.

The Block Editor authors dynamic blocks as AutoCAD 2021's does, through the library's own writers (Dynamic blocks), so the blocks it saves are the ones AutoCAD reads and sets. BPARAMETER asks Enter parameter type [Alignment/Base/pOint/Linear/Polar/Xy/Rotation/Flip/Visibility/looKup] <Linear>: and then the prompts of the kind: a Linear parameter asks Specify start point or [Name/Label/Chain/Description/Palette/Value set]:, the endpoint and the label location; Polar and XY the same; Rotation the base point, the radius of the parameter and the default rotation angle; Flip the base point and the endpoint of the reflection line; Point, Visibility and Base the one location; Alignment the base point and the direction. Name, Label, Description, Chain and Palette set the element's name, the label and description of its property, whether its actions chain and whether the property shows in an INSERT's Properties; Value set asks [None/List/Increment] and then the list, or the increment, minimum and maximum (angles in degrees). A Linear parameter from (0, 0) to (100, 0) with its label at (50, -20) is Linear, its property Distance1 (the labels number as AutoCAD's do: Distance1, Angle1, Position1), at 100. A Visibility parameter starts the block with one state, VisibilityState0, showing every object. Lookup is refused with its reason: its table is not in this version.

BACTION asks Enter action type [Array/Lookup/Flip/Move/Rotate/Scale/sTretch/Polar stretch] <Move>:, Select parameter: (a pick near the parameter's glyph; one the action cannot follow is refused in AutoCAD's words, Invalid selection. Action requires a Rotation parameter.), for a move, a stretch and an array Specify parameter point to associate with action or enter [sTart point/Second point] <Second point>:, then the objects (a stretch asks the frame's two corners first, a polar stretch the objects to turn only as well; an array the distance between rows for an XY parameter and between columns) and Specify action location or [Multiplier/Offset]:. The action is tied to the second point of its parameter, its end, as the library ties one; the start point, the corners of an XY parameter and a polygonal frame are not in this version. Each BPARAMETER and BACTION is one undo step; the INSERTs of the block work when it is saved with BSAVE.

A parameter is drawn on the canvas in blue (its dimension line with an arrowhead at each end, its grip a small square, its label by it, a rotation parameter a circle) and an action in yellow (a lightning bolt with its name), the ones selected in white. They are picked by a click on the glyph, in a selection (ERASE takes them out, with the grips of a parameter and the actions that follow it) and by Properties: the Misc group (Name, Show properties, Chain actions, Number of grips), the Geometry group read only, Property labels (the name and description of each property), Value set (type None, List or Increment, its minimum, maximum, increment or list, in degrees for an angle) and for an action its multiplier, angle offset, spacings and number of objects. A row set is one undo step and the graph is written in place: AutoCAD 2021 read a Linear parameter's name changed to Length, a list of 100, 150, 200 and 300, a description and a multiplier of 0.5 as set.

BVSTATE shows the Visibility States dialog (New with its options Hide all, Show all and Leave unchanged, Rename, Delete, Move Up, Move Down, Set Current), and with no window asks Enter an option [New/Set/Delete] <Set>: as -BVSTATE does. BVHIDE and BVSHOW ask Select objects to hide: and Hide for current state or all visibility states [Current/All] <Current>:; an object the parameter did not govern is governed by hiding it and stays shown in the other states, and one hidden in every state is kept invisible. A new state is added last and the current state is not changed; the first state is the one an INSERT shows until its property is set, and the block is kept in it. The current state cannot be deleted (Cannot delete the current visibility state.), nor the last one. BAUTHORPALETTE shows the Block Authoring Palettes, a small window with a Parameters and an Actions tab, each tool starting BPARAMETER or BACTION with its kind answered (BAUTHORPALETTECLOSE closes it); the Parameter and Action buttons of the Block Editor tab list the same kinds. BTESTBLOCK opens the block as it stands, saved or not, alone in a copy of the drawing, as the drawing Test Block Window - DOOR, to try its grips and properties; the block open is not changed.

REFEDIT edits a block reference in place, as AutoCAD 2021's: the objects of the reference's block are copied into the drawing where the reference draws them (the working set), every command works on them, and REFCLOSE writes them back into the block or throws them away. REFEDIT and -REFEDIT ask alike, on the command line: Select reference: (a reference selected before the command is taken instead; anything that is not a reference says Object is not a valid reference), and where the point picked reaches a block nested in the reference, Reference: A and Select nesting level [Ok/Next] :, Next (or Enter) stepping from A to A > B and round again; then Enter object selection method [All/Nested] :. All takes every object of the block; Nested asks Select nested objects or [All]: for points, one object a point (the one whose own line lies nearest the point, within the pick aperture: a point in the middle of a circle or in the box of a slanting line but far from it reaches neither; a text, a hatch or a reference by its box), 1 found or 0 found each, and ** At least one object must be selected to edit a reference ** for none. A point that reaches no object is the first corner of a window, Specify opposite corner: asking the other, which takes the objects whose box lies wholly inside when it is to the right and those the box meets when it is to the left (2 found); Enter in place of the corner ends the selection. A block that holds attribute definitions asks Display attribute definitions [Yes/No] : after it, the answer kept by CadDocument.RefEditAttributeDefinitions; whether the objects outside the working set are locked is RefEditLocksObjects, and whether an external reference's layers take names of their own is RefEditUniqueNames (both boxes of the Reference Edit dialog's Settings, which have no question on the command line; see below). A block BOX of a line from (0, 0) to (100, 0) and a circle of 10 about (50, 30), placed at (1 000, 0), opens as 2 Added to working set with the line at (1 000, 0)-(1 100, 0) and the circle about (1 050, 30); the references of the block draw it without those two objects while the edit lasts. The attribute definitions of the block stay in it unless they are displayed, and the attributes of the references are never touched (no ATTSYNC is run). A block placed with scale factors that differ in size (2, 3, 1) is refused, ** Cannot REFEDIT a non-uniformly scaled block **, as AutoCAD does (a mirror, -2, 2, 2, is not a difference); an anonymous block says ** Cannot REFEDIT anonymous block **, and a dimension's or a table's ** Cannot REFEDIT dimension or table blocks **.

While the edit lasts the objects of the drawing that are not in the working set are locked: a command's selection leaves them out and any other change of one is refused with The line 2F is not in the working set.; the window draws them faded, as XFADECTL says (0 to 90 per cent, 70 as AutoCAD 2021 gives it, Requires an integer between 0 and 90. for 95). Objects drawn after the edit opened are not locked, and are not in the working set either until REFSET adds them. REFSET says Transfer objects between the RefEdit working set and host drawing..., asks Enter an option [Add/Remove] : and Select objects: (the lock does not keep the selection from objects it holds): Add puts objects of the reference's space into the set and takes back those Remove took out; Remove leaves them in the drawing as its own objects, and the objects of the block they came from leave the block when the edit is saved and come back if it is discarded. It says 3 Added to working set (or 1 Removed from working set) for the objects it moved and ** 2 selected objects are already in the working set ** (or ** 1 selected object is not in the working set **) for those it had nothing to do with. REFCLOSE asks Enter option [Save/Discard reference changes] :. Save writes each object of the working set into the block as a new object (with a handle of its own), put through the reference's placing the other way, and erases the one it came from, so that an object erased in the drawing leaves the block; every reference of the block is drawn anew. It says 1 object added to BOX for the objects that came from the drawing, 1 object removed from BOX for the objects of the block that left it (each line only where there is one) and 2 block instances updated for the references drawn anew. The circle of the example moved 50 up in the drawing and saved is the circle about (50, 80) in the block. Discard erases the copies, says nothing and leaves the block as it was. What was drawn in the drawing and never added stays in it either way. REFEDITNAME holds the name of the block ("" with no edit, read only). Undo steps through the commands of the session and stops where it opened; once REFCLOSE has run the whole session is one undo step, REFEDIT, which one undo takes back. BEDIT says ** BEDIT command not allowed during reference editing **, REFEDIT again ** Command not allowed, BOX already checked out for editing **, QSAVE and SAVEAS ** Drawing save not allowed during reference editing ** (the window's Save button, Ctrl+S and the Save As dialog say the same and write nothing), REFSET and REFCLOSE with no edit open ** Command not allowed unless a reference is checked out with REFEDIT command **, and these commands say Not allowed in the Block Editor. inside it. An edit is kept in the drawing, in the XRECORD OPENCAD2D_REFEDIT of the named object dictionary, so that a drawing saved in the middle of one opens with the edit still open. The ribbon shows AutoCAD 2021's Edit Reference panel while an edit is open, at the right end of whichever tab is shown (Home, Insert or any other; the strip of the tab takes its steps in the width left): Save Changes and Discard Changes run REFCLOSE with Save or Discard, Add to Working Set and Remove from Working Set run REFSET with Add or Remove, and the panel goes at REFCLOSE (MainViewModel.IsRefEditOpen). AutoCAD's own menu-bar items for the working set (Tools, Xref and Block In-place Editing) and its Refedit toolbar are not built: the app has no menu bar and no toolbars, and the panel is the way in. A block array is refused (A block array cannot be edited in place.). The object menu of a block reference starts REFEDIT as Edit Block In-place, and that of one external reference as Edit Xref In-place. AutoCAD 2021's accoreconsole has no REFEDIT, REFSET or REFCLOSE, fed by a script or by standard input (Unknown command; ARXLOAD of AcRefEd.arx fails there, and a long transaction, which REFEDIT is made on, returns no transaction), so the prompts and messages are read from the string table of AcRefEdRes.dll, AutoCAD 2021's own resource file for it, and the order they come in is the presenter's guess; XFADECTL and REFEDITNAME were probed in the console.

An external reference edited in place. REFEDIT on an INSERT of an external reference works as it does on a block, on the objects of the model space of the drawing the reference names (the drawing is only read, and its file is not touched while the edit lasts): they are copied into the drawing where the reference draws them, the references of that file draw it without them, and REFCLOSE Save writes them back into the file itself, DWG or DXF, whole and in the version the file had (a DWG of AutoCAD 2013 stays AC1027), the objects that were not in the working set, its layers and its blocks as they were. The reference of a file with a reference of its own nested in it is edited through the one that names it: where the point picked reaches the nested reference the dialog and the command line list SITE and SITE > INNER, and the edit of the second writes the file of INNER. A block of the file is not edited that way (Selected Xref Block is NOT editable.), nor is a reference whose file is not found, unloaded or cannot be read (Selected Xref Block is NOT editable: .\site.dxf). With unique layer and symbol names on, as AutoCAD 2021's Reference Edit dialog has them by default (RefEditUniqueNames), the layer WALL of the file is the layer $0$WALL in the drawing while the edit lasts, a copy of it with its colour, linetype and switches (the number raised past a name the drawing has), and the drawing's own WALL is not touched; off, the objects keep WALL and share the drawing's layer of that name. When the edit is saved the file's own names come back: $0$WALL and SITE|WALL, the layers the reference brought into the drawing, are WALL in the file, a layer of the drawing the objects added with REFSET stand on (FOO) is added to the file with its look, and AutoCAD's list is said first: The following symbols will be added to Xref file: and Layers: FOO. After it come 1 object added to SITE, 1 xref instance updated and SITE redefined and reloaded.; the layers made for the edit are gone from the drawing, and the layers the reference brought are read from the file saved. A circle of 10 about (50, 30) in a file moved 50 up in the drawing and saved is the circle about (50, 80) in the file, and AutoCAD 2021 opens the file saved (a DWG of AC1027 and of AC1032, AUDIT 0 errors) and shows the circle there and the line added on its layer SITE|FOO. Where the file is of an older release than the drawing, REFEDIT says The Xref selected references a previous drawing file format. and that the edits saved back are in the release of the file. A file that changed on disk since it was read is reloaded first, Xref may have changed and must be reloaded: path and Reload the Xref [Ok/Cancel] <Ok>:; one another AutoCAD holds open (a .dwl or .dwl2 beside it) is not checked out (Xref cannot be checked out for editing:, the path and A file lock already exists on the drawing.). A file that is gone or read only, or that changed since the edit began, refuses the save, ** Failed to Saveback Xref file **, the edit still open to be saved again or discarded; a DWG the writer cannot write whole (it leaves out an object type it has none for) is refused the same way rather than losing those objects. Discard writes nothing: the file is byte for byte as it was. The file is written beside itself first and moved over the old one, so that a write that fails leaves the old file. Once a file is written the step cannot be taken back, so undo stops where the edit closed. The text styles, dimension styles and blocks of the file keep their own names in the drawing while the edit lasts, merged by name with the drawing's own, and go back as they are; the names $0$ and | of a text style, linetype, dimension style or block an object stands on are made the file's own when saved.

The Reference Edit dialog. REFEDIT (not -REFEDIT) shows AutoCAD 2021's Reference Edit dialog where the window has one: Identify Reference lists the references the point reaches (the name, Xref or Block, indented by how deep it is nested) with the path of the one chosen (the file of an external reference, Xref file not found, or Block definition) and Automatically select all nested objects or Prompt to select nested objects; Settings has Enable unique layer and symbol names (for an external reference), Display attribute definitions for editing (for a block that has some) and Lock objects not in working set. OK writes the settings to the document (CadDocument.RefEditUniqueNames, RefEditAttributeDefinitions, RefEditLocksObjects) and opens the edit with no question on the command line; Cancel and Esc open nothing. With no window, or as -REFEDIT, the command line asks as before. The request is CadRefEditRequest.

A prompt for a number refuses what it cannot take in the words AutoCAD 2021's console gives that prompt, probed with text, 2.5, nought, a negative number and one past the most, and asks it again: POLYGON's sides say Requires an integer between 3 and 1024. to all of them (the text and 2.5 too, where a prompt with no range of its own says Requires an integer value or option keyword.); -ARRAY's rows, columns and items Requires an integer between 1 and 32767.; the counts of ARRAYRECT and ARRAYPOLAR, and its levels, Requires a positive nonzero integer or option keyword. for text and 2.5, Value must be positive and nonzero. for nought and below and Requires an integer between 1 and 32767, or option keyword. for 32768 and more; DIVIDE's segments Requires an integer between 2 and 32767, or option keyword. (without , or option keyword once a block is chosen); MEASURE's length Requires numeric distance, two points, or option keyword. and Value must be positive and nonzero.; a chamfer distance or length, and a fillet radius, Requires numeric distance or two points. and Value must be positive. and are asked again. A line from (0, 0) to (100, 0) divided asks Enter the number of segments or [Block]: and a 1 there is refused the range, then 3 puts two points.

A circle's radius says Requires numeric radius, point on circumference, or "D". to text, and its diameter Requires numeric distance or second point.; nought or below at either is Value must be positive and nonzero. and the prompt is asked again, where the command ended with that line. DONUT's inside diameter takes nought (a filled ring) and says Value must be positive. below it, its outside diameter Value must be positive and nonzero. at nought and below, each asked again, and Requires numeric distance or two points. to text. UNDO writes Current settings: Auto = On, Control = All, Combine = No, Layer = No (Yes once Combine and Layer were answered Yes; AutoCAD 2021 on the machine measured says No and No, UNDOCTL 5, and 13 inside a group) and asks Enter the number of operations to undo or [Auto/Control/BEgin/End/Mark/Back] <1>:, saying Requires an integer between 1 and 32767, or option keyword. to text, 1.5, nought, a negative number and 32768 or more, and asking again; Mark puts a mark in the history of steps, marks stacking, and Back takes the steps back down to the latest mark and uses it up, Mark encountered, the next Back going to the mark before it; Back asks This will undo everything. OK? <Y> where no mark is left, as it does for a mark whose step an undo has taken back, which is gone. The names of the steps UNDO, U and Back take back stand on one line, LINE LINE for UNDO 2, and Everything has been undone follows where it ran out of steps. BEgin makes the commands that follow, to End, one group: U and REDO take it whole and write GROUP LINE CIRCLE LINE for the steps in the order they were made; U inside an open group takes one step of it, and a second BEgin closes the group open and starts a new one; End with no group open says nothing. Control asks Enter an UNDO control option [All/None/One/Combine/Layer] <All>:: None turns U off (U command disabled. Use UNDO command to turn it on) and REDO off (REDO command disabled. Use UNDO C to turn it on.), and UNDO then asks that option alone, Enter being All; One keeps the last command alone, UNDO asking Enter an option [Control] <1>: (Requires an integer value 1, or option keyword. to anything but 1 and Control), U writing Everything has been undone after it, and REDO putting a step just undone back (Everything has been redone), saying Nothing to redo for one undone before One was set, which setting One forgets; the steps made before None or One was set, and while None was on, cannot be undone once All is back. Neither keeps a copy of the drawing for each step: a session of 40 edits under None holds one drawing in memory, under One two, under All 41. None and One show Auto = Off and All Auto = On. Auto asks Enter UNDO Auto mode [ON/OFF] <On>: (the current setting is the default) and is kept and shown; the presenter has no menu macros that run several commands, which it groups. Combine and Layer ask Combine zoom and pan operations? [Yes/No] <Yes>: and Combine layer dialog operations? [Yes/No] <Yes>: (Yes or No, please. to anything else); Combine No makes each real-time zoom and pan of the wheel and the middle button a step of its own, and Layer is kept and shown. REDO says Nothing to redo with none, and Everything has been redone after the last step it brings back.

A prompt for one object answered with text says *Invalid selection* and then what AutoCAD 2021 lists for that prompt: Expects a single object. for most (DIVIDE, MEASURE, DIMRADIUS, DIMLINEAR's Select object, CENTERMARK), and Expects a point or with its options for BREAK (Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon), OFFSET (Exit), FILLET and CHAMFER, LENGTHEN (Last/Fence/DElta/Percent/Total), TRIM and EXTEND, PEDIT, SPLINEDIT, HATCHEDIT, TEXTEDIT, LAYOFF, LAYFRZ and LAYULK. The corner of a window, a crossing or a BOX that is no point, or Enter there, says Invalid window specification. and asks the first corner again (the opposite corner of the implied window asks itself again); a point of a fence or a polygon that is no point says Invalid response.: both said Point or option keyword required. before. ARRAYRECT and ARRAYPOLAR ask Enter the number of columns or [Expression] <4>: and Enter the number of rows or [Expression] <3>:, and Select grip to edit array or [...]<eXit>: with the default straight after the brackets, as AutoCAD writes it; their Type = Rectangular Associative = No line stays No until ASsociative answers Yes: the items are then one associative array (see below). SCALE asks Specify scale factor or [Copy/Reference]: with no default shown, and Enter takes the factor used last (1 at first).

DIVIDE and MEASURE put points, or a block with Block (turned along the curve unless Align block with object? [Yes/No] <Y>: is answered No), at equal lengths along a line, arc, circle, ellipse, polyline or spline, as AutoCAD 2021 does: DIVIDE asks for 2 to 32767 segments and puts one between each, and on a closed curve one at its start too, so a circle of 50 about (400, 0) divided in 4 has points at (450, 0), (400, 50), (350, 0) and (400, -50); MEASURE steps the length given from the end nearest the pick, a closed curve from its start, and says Object isn't that long. for a length past the curve: a line from (0, 0) to (100, 0) measured by 30 from its far end has points at 70, 40 and 10. DIMCENTER draws the centre mark of DIMCEN on a circle or an arc as lines of the current layer, colour, linetype and lineweight (AutoCAD 2021 gave its lines those of the drawing, and none of DIMCLRD, DIMLTYPE or DIMLWD): a cross DIMCEN long each way, and below nought centre lines from twice DIMCEN out to DIMCEN past the rim, only where the radius is over twice DIMCEN (a circle of 5.01 under -2.5 has them, one of 5 the cross alone; a radius dimension follows the same rule). CENTERMARK asks Select circle or arc to add center mark: until Enter and draws the centre mark of each as AutoCAD 2021 does: an INSERT of an anonymous block (*U) at the centre, its cross CENTERCROSSSIZE long (0.1x, a tenth of the diameter: 4 on a circle of radius 20) in ByBlock colour and Continuous, and four lines in the linetype of CENTERLTYPE (Center2) from CENTERCROSSGAP past the cross (0.05x, 2 more) to CENTEREXE (0.12) past the rim, so that a circle of radius 20 has lines from 4 to 20.12 either way; a number alone (6) is that many drawing units. CENTERMARKEXE 0 hides those four lines (group 60), CENTERLTSCALE scales them, CENTERLAYER (., the current layer, or a layer's name, made where the drawing has none) sets their layer, and the INSERT takes the current colour and lineweight. Each is associative as AutoCAD writes it (an ACDBASSOCACTION with its AcDbCenterMarkActionBody, a dependency on the INSERT and one on the circle, the action listed in the network of the space): moving the circle moves the mark, scaling it draws the mark again for the new radius with the sizes it was made with; a mark moved on its own is no longer tied (its action is taken out), and erasing it takes the action and the networks out. A circle erased leaves its mark. What is no circle or arc says Object selected is not a circle or arc.. CENTERLINE asks Select first line: and Select second line: (a line or a straight segment of a polyline; Object selected is not a line., and Invalid. Select another line. for the same line twice) and draws the centre line between them, an INSERT of an anonymous block holding one line in the linetype of CENTERLTYPE: along the bisector of their directions, from where it meets the line through their two start points to where it meets the one through their two end points, CENTEREXE longer at each end, so that lines of 100 and 120 starting 30 apart give a line of 110; where the two cross within that, it stops at the crossing. It follows its lines as a mark follows its circle. The variables are kept in the drawing, as the library's CenterExe, CenterMarkExe, CenterLtype, CenterLtScale, CenterCrossSize, CenterCrossGap and CenterLayer; a drawing of R2007 or older gets the picture without the action. COLOR shows the window's Select Color dialog for the colour of new objects, and -COLOR asks Enter default object color [Truecolor/COlorbook] <1 (red)>:; -LWEIGHT asks Enter default lineweight for new objects or [?]: and rounds a width to the nearest of AutoCAD's, 0.33 to 0.35 mm with a word saying so. LWEIGHT (LW, LINEWEIGHT) shows the window's Lineweight Settings dialog, as AutoCAD 2021's: the Lineweights list (ByLayer, ByBlock, Default and the 24 widths, each with its sample), whose line picked is the lineweight of new objects (CELWEIGHT, one undo step named LWEIGHT where it changed); Units for Listing in millimetres (0.25 mm) or inches (0.010"), Display Lineweight (LWDISPLAY), Default (the width a lineweight of Default is drawn with, AutoCAD's LWDEFAULT, 0.25 mm until set) and Adjust Display Scale (lines drawn from half to twice their width on screen, a 0.50 mm line about 2 pixels at the middle); the last three are kept in the global settings (GlobalSettings.LineweightsInInches, DefaultLineweight, LineweightDisplayScale) and every drawing open is drawn again with them. LWUNITS (0 inches, 1 millimetres) and LWDEFAULT (a width in hundredths of a millimetre, one of AutoCAD's 24; 33 says Cannot set LWDEFAULT to that value., as AutoCAD 2021 says it) are the dialog's two boxes as system variables: typed, they last for the drawing's session (LWDEFAULT 35 draws a Default line 0.35 mm at once) and the dialog starts from them. With no window LWEIGHT asks -LWEIGHT's question. REDRAW and REDRAWALL have nothing left to draw, and REGENALL regenerates as REGEN does. ISOLATEOBJECTS hides every other object of the space, HIDEOBJECTS those selected, as AutoCAD 2021 hides them (their Visible off). With OBJECTISOLATIONMODE 0, the default, they are hidden for the session only: a save writes them shown. With 1 they are saved hidden, each with the extended data AEC_ISOLATEDOBJECTS_XDATA (1070 of 100 and 1). Either way the drawing lists them in the record of AEC_ISOLATED_OBJECTS, and UNISOLATEOBJECTS shows them again from that list (of a drawing reopened too), saying 1 object(s) unisolated. or No objects to unisolate., empties the list and writes the record ACAD_OBJECTISOLATION (0 after an isolation, 1 after a hiding). Each is one undo step. CHANGE (-CH) asks Select objects: and then Specify change point or [Properties]:, as AutoCAD 2021 does. A point moves the end of each line nearest it, so a line from (0, 0) to (100, 0) given (110, 5) ends at (110, 5), and with ORTHOMODE on keeps the line horizontal or vertical in the current UCS (the other end fixed, along its x where the point is further along x than y, else along y: with the UCS turned 30 degrees, LINE (0, 0) to (10, 0) given the point (9, -4) of the UCS ends at (9, 0) of the UCS, (7.794, 4.5) in the world, as AutoCAD 2021 gives it; with SNAPANG 20 the axes are turned by it, and the same line given (9, -4) ends at (6.6616, 2.4246)); a lone circle takes the distance from its centre as its radius, a circle from (200, 0) of 10 given (215, 0) becomes 15. Among several objects the point is for the lines only, and each circle, text and block says Change point ignored and asks its own questions. Enter asks them too: Specify new circle radius <no change>:, and for a text Specify new text insertion point <no change>:, Enter new text style <Standard>:, Specify new height <5.0000>:, Specify new rotation angle <0>: and Enter new text <NOTE>: (a lone text given a point takes it as the insertion point and skips the first), for a block Specify new block insertion point <no change>: and Specify new block rotation angle <0>:, and for an attribute definition the tag, the prompt and the default value after the rotation. A height of 0 says Value must be positive and nonzero. and asks again; a style the drawing lacks says Style "NoSuch" not defined - use STYLE command. and goes on. An arc, a polyline or a point has no change point: No changeable object selected. Properties asks Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotative]: until Enter: Color (New color [Truecolor/COlorbook] <BYLAYER>:, with Invalid color number. for 0 or 256 or past 255), Elev (every point of a line, circle, arc, text, block or point given the level, a polyline its elevation), LAyer and LType (a name the drawing lacks is refused, Cannot find layer "X". asking again, Linetype "X" not found. Use LINETYPE command to load it. going back to the property), ltScale (nought is Value must be nonzero., a negative one is taken as its size), LWeight (0.33 rounds to 0.35 mm with a word), Thickness and TRansparency (0 to 90 or ByLayer or ByBlock, Requires an integer between 0 and 90.). Each prompt offers the value the run gave last, else the drawing's current one, and Enter takes it. Material and Annotative are asked and change nothing: the presenter holds no materials and CHANGE leaves annotation to Properties. One undo step.

CHPROP, REVERSE, SETBYLAYER, CHSPACE, BURST, TXTEXP and XLINE Offset. CHPROP asks Select objects: and then Enter property to change [Color/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotative]: until Enter, as AutoCAD 2021 does: the questions of CHANGE's Properties option less Elev, asked and applied by the same code, so a line given colour 1 by one is the line the other gives. In a drawing of named plot styles ($PSTYLEMODE 0) both offer PLotstyle before Annotative, Enter new plot style name or [?] <ByLayer>:, which names an entry of the drawing's plot styles (? lists them) or ByLayer, which takes the object's own out.

REVERSE asks Select line, polyline, spline or helix to reverse direction: and Select objects:, passes over what is not one of the four kinds without a word, and ends with Object direction has been reversed. once. A line runs from its end to its start; a polyline has its vertices in the other order, each bulge turned over and each segment's widths swapped, a closed one too: the square (0, 0), (10, 0), (10, 10) becomes (10, 10), (10, 0), (0, 0), as AutoCAD 2021's REVERSE and PEDIT Reverse made it (PEDIT Reverse of a closed polyline kept its first vertex before, as the library's ReverseCurve does; it does not now); a 3D polyline and a spline are turned the same way, and a linetype drawn along the object starts from its other end. A helix is not read by the presenter, so one is passed over. One undo step.

SETBYLAYER asks as AutoCAD 2021 does, in the words of its own string table. It writes Current active settings: Color Linetype Lineweight Transparency Material (PlotStyle too in a drawing of named plot styles), asks Select objects or [Settings]:, then Change ByBlock to ByLayer? [Yes/No] <Yes>: and Include blocks? [Yes/No] <Yes>:, and ends with 1 object modified, 2 objects did not need to be changed. (or All object properties already set to ByLayer; no objects modified., or No properties selected to change.). Each object has the properties that are on set to ByLayer; one that is ByBlock is left alone where ByBlock is not to be changed. With blocks included, the objects of the block definition of each reference selected, those of the blocks nested in it and the reference's attributes are changed too, so every other reference of the block shows them changed. Settings is the typed form of AutoCAD's dialog: Enter a property to toggle [Color/LType/LWeight/Transparency/Material/PStyle] <done>: switches one property on or off, again and again until Enter (PStyle says Plot style cannot be changed when PSTYLEMODE is 1. in a drawing of colour-dependent plot styles, whose objects have none). The variable SETBYLAYERMODE holds it: 1 colour, 2 linetype, 4 lineweight, 8 material, 16 plot style, 32 transparency, 64 change ByBlock, 128 include blocks, 255 at first; the answers to the two last questions are kept in it as the dialog's boxes are. A material or a plot style is a handle of the drawing, taken out of the object. One undo step.

CHSPACE moves objects between the paper and the model space a viewport shows, scaled to look the same, as AutoCAD 2021's does. On the Model tab it says ** Command not allowed in Model Tab **; on a layout with no viewport to work through, There are no active Model space viewports. Through a viewport (MSPACE) it asks Select objects: for objects of model space, then Set the SOURCE viewport active and press ENTER to continue.:; on the paper it asks for objects of the paper (Ignoring 3 selected viewport(s) for the viewports among them) and Set the TARGET viewport active and press ENTER to continue.:. Enter takes the viewport worked through, the one last worked through, or the first of the layout; a point picked inside another viewport takes that one. With a viewport 200 by 100 showing model space at 1:10 about (1 000, 500), the paper circle of radius 10 about the middle of the frame becomes the model circle of radius 100 about (1 000, 500), 1 object(s) changed from PAPER space to MODEL space. and Objects were scaled by a factor of 10 to maintain visual appearance.; the other way a model line from (100, 100) to (600, 300) is the paper line from (20, 20) to (70, 40). A twisted viewport turns the objects with its view. The command ends where the objects went: on the paper after a move to the paper, in the viewport after a move into model space. One undo step.

BURST (Express Tools) asks Select objects: for block references and explodes each as EXPLODE does, but its attributes come out as TEXTs of the values they show (an attribute of several lines as an MTEXT), placed, styled and on the layer they were, an invisible one too, and a constant attribute of the block's definition becomes a TEXT of its value where a variable one is left out. What comes out on layer 0 goes to the layer of the reference, and what is ByBlock takes the reference's colour and linetype. A block that may not be exploded is passed over (1 was not able to be exploded.). One undo step.

TXTEXP (Express Tools) writes Select text to be EXPLODED: , asks Select objects: for TEXT and MTEXT (not the text of a leader), replaces each with the lines of its letters and says 2 text object(s) have been exploded to lines. and The line objects have been placed on layer 0. AutoCAD sends the text through a metafile and takes it back in; the presenter makes the letters as it draws them: a letter of an SHX font is an open polyline for each stroke, a letter of a TrueType font a closed polyline for each outline of it (an O is its ring and its hole, an I the four corners of its stem), the curves cut into six pieces each, read from the font's file (the glyf outlines of a .ttf, composite letters included; an OpenType file of CFF outlines is not read). An MTEXT is broken into the TEXTs EXPLODE makes of it first. The polylines are on layer 0, ByLayer, in the space of the text. Text whose font file is not found or not read is left as it is, 1 text object(s) could not be exploded: their font has no outlines to read here. One undo step.

XLINE has an Offset option, Specify offset distance or [Through] <Through>:, as AutoCAD 2021 asks it: a distance (typed or by two points) or Through, then Select a line object: (a line, a ray, an xline, or the straight segment of a polyline nearest the pick; any other object, an arc segment too, says No usable object selected) and Specify side to offset: (or Specify through point:), an xline made at each, until Enter. A line from (0, 0) to (10, 5) offset 5 to its left gives the xline based at (-2.236, 4.472) along (0.894, 0.447), as AutoCAD lists it; a point on the line makes none. The distance (or Through) is the default of the next run. Ang has its Reference option, Enter angle of xline (0) or [Reference]:, Select a line object: and Enter angle of xline <0>:: the angle is counted from the object's own, so 45 from a segment running up is 135 degrees. -RENAME asks Enter object type to rename [Block/dEtailviewstyle/Dimstyle/LAyer/LType/Material/multileadeRstyle/seCtionviewstyle/Style/Tablestyle/Ucs/VIew/VPort]:, then Enter old block name: and Enter new block name: (dimension style, layer, linetype, multileader style, text style, table style, ucs, view or viewport configuration in the others' places). An old name that is empty, has a wildcard or a character no name has says Invalid block name. and asks again, as does one nothing has (Cannot find block "Nope"., with no full stop for a multileader or table style, and UCS in capitals for a UCS); a new name that is empty or has such a character is said and asked again too. A new name another object has says A block named "Crate" already exists. and *Invalid*, and ends the command; the same name, or the old one in other letters, is the rename itself. Every reference follows the new name: the INSERTs of a block, the entities, layers, multiline styles and the current linetype of a linetype, the texts, attributes and tables of a text style, the dimensions of a dimension style, and the current multileader or table style. Layer 0 and Continuous say Cannot rename layer "0". and *Invalid* and end the command; the Standard multileader and table styles say Cannot rename table style "Standard". and ask the old name again; ByLayer and ByBlock are no linetype names. The Standard text style and the Standard dimension style are renamed as any other, and so is Defpoints, as AutoCAD 2021's -RENAME renames them (its Rename dialog lists none of them). Material, dEtailviewstyle and seCtionviewstyle say the drawing holds none. One undo step (a UCS rename is made on the UCS manager and is a step named UCS, as the UCS command's are). A viewport configuration is renamed on the tiled viewports CadDocument.TiledViewports holds, so -VPORTS ? and the Viewports dialog show the new name at once and the saved DXF carries the configuration under it, however the rename was made. RENAME (REN) shows the window's Rename dialog, laid out as AutoCAD 2021's: the Named Objects list (Blocks, Dimension styles, Layers, Linetypes, Multileader styles, Table styles, Text styles, UCSs, Viewports, Views), the Items of the kind picked (those that can be renamed, sorted by their letters: no layer 0, no Standard style, no ByLayer, ByBlock or Continuous), Old Name, and Rename To with the name typed. Rename To renames the item in the list at once and refuses an empty name, one with any of < > / \ " : ; ? * | , = `` in it, or another item's name ("DOORS" already exists.). Old Name may be typed with the wildcards * and ?, as AutoCAD's Rename takes them: every item it matches is renamed, the letters each wildcard matched put in the place of the new name's wildcards in turn, so that Old Name S-* and Rename To A-* rename S-BEAM and S-COLUMN to A-BEAM and A-COLUMN, and *A* to *B* renames WALLS to WBLLS; none is renamed where one new name would be refused, and a pattern that matches nothing says No item matches X-*.. OK hands the renames to RENAME, which makes them in order as -RENAME would, all in one undo step, and writes any refusal on the command line; Cancel renames nothing. With no window RENAME asks -RENAME's questions. The request is a public CadRenameRequest of CadRenames. The helpers behind it are public: CadBlocks.Rename, CadLinetypes.Rename, CadMLeaderStyleEditor.Rename and CadTableStyleEditor.Rename join CadLayerEditor.Rename, CadDimStyleEditor.Rename and CadTextStyleEditor.Rename. PROPERTIES, OPTIONS and LAYER ask the window for its panel or dialog (UiRequested), and say "is shown by the window" where none is listening; QSAVE (of a drawing with no file), SAVEAS and DXFOUT ask it for its file dialog, and with none listening or FILEDIA 0 ask the file on the command line as AutoCAD does (see the application guide). The window adds CLOSE, QUIT, NEW, PROPERTIESCLOSE, RIBBON, RIBBONCLOSE, COMMANDLINE, COMMANDLINEHIDE, HIDEPALETTES, SHOWPALETTES, -OSNAP, GRID, SNAP, ORTHO, POLAR, OSNAP, ISOPLANE, LAYMCUR and LAYMCH, and the plugin commands. The inquiry commands print in AutoCAD's words: DIST from (0, 0) to (100, 100) says Distance = 141.4214, Angle in XY Plane = 45, Angle from XY Plane = 0; AREA by points or by an object says Area = 5000.0000, Perimeter = 300.0000. Each command is a CadCommand: a name and an iterator that yields each CadPrompt and reads the answer from CadCommandContext.Input, so it reads top to bottom as its prompts do, and a command plugin is written the same way.

RECTANG, WIPEOUT and OOPS

These were checked against AutoCAD 2021's console, driven through its standard input (probe draw1, 16 November).

RECTANG asks Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: and, after the first corner, Specify other corner point or [Area/Dimensions/Rotation]:. The modes are the session's: they stay for the next RECTANG, are listed when it starts where one is not nought (Current rectangle modes: Chamfer=1.0000 x 2.0000 Elevation=5.0000 Thickness=4.0000 Width=0.5000, in alphabetical order, Rotation among them as Rotation=30), and the prompts offer them (Specify first chamfer distance for rectangles <0.0000>:). A chamfer and a fillet shut each other out: setting one clears the other, and the first distance of a chamfer offers the radius of the fillet in force, as the radius offers the first distance of the chamfer. A chamfer of 1 and 2 on the rectangle from (10, 10) to (40, 30) is the eight vertices (10, 11), (12, 10), (39, 10), (40, 12), (40, 29), (38, 30), (11, 30) and (10, 28): at each corner the first distance back along the side that comes to it, the second forward along the side that leaves it. A fillet of 2 is the same points with the arcs between them, a bulge of the tangent of an eighth of a turn, turned the other way where the rectangle winds clockwise. Where the sides are too short (the two distances over the shorter side, twice the radius over it) the rectangle is the plain one of eight vertices, two at each corner, as AutoCAD draws it. A width is the width of every vertex, an elevation the LWPOLYLINE's elevation and a thickness its thickness; none of them is a setting of the drawing, so ELEVATION, THICKNESS and the like are left alone.

Area asks Enter area of rectangle in current units <100.0000>: (a value that is not above nought says Value must be positive and nonzero. and asks again), Calculate rectangle dimensions based on [Length/Width] <Length>: and the side, and draws at once: the other side is the area over it, with the corners' share added back, 2 times the two distances of a chamfer or the square on the radius less its quarter circle, four times, for a fillet (an area of 200 on a length of 20 gives a width of 10.6 with a chamfer of 2 and 3). The rectangle grows to the side of the first corner the cursor is on, up and to the right where there is no cursor. Dimensions asks Specify length for rectangles <10.0000>: and Specify width for rectangles <10.0000>: and then the other corner again, which gives the side the rectangle goes to and nothing else; the length and width of either are the next ones offered. Rotation asks Specify rotation angle or [Pick points] <0>:, Pick points by two points and their direction (counted from the UCS), and keeps the angle as a mode; a Rotation asked after Dimensions gives the dimensions up, as AutoCAD does.

WIPEOUT asks Specify first point or [Frames/Polyline] <Polyline>:. Points are asked as Specify next point:, then Specify next point or [Undo]: and from the fourth Specify next point or [Close/Undo]:; Close or Enter makes the wipeout (Enter before the third point makes none). Polyline asks Select a closed polyline: (a pick that is no polyline is asked again) and takes a lightweight or an old-style 2D polyline of straight segments, as AutoCAD 2021 does; it refuses a polyline not closed or of arcs with The polyline must be closed and made up of only line segments. and a 3D polyline, a polyface mesh or a polygon mesh with Invalid polyline type selected., each ending the command, and asks Erase polyline? [Yes/No] <No>:; the wipeout lies at the polyline's elevation (an elevation of 10 gives a wipeout at Z 10), and Yes erases the polyline in the same undo step. Frames asks Enter mode [ON/OFF/Display but not plot] <ON>: and sets WIPEOUTFRAME 1, 0 or 2, which is the variable of the same name, one undo step. The wipeout is written as AutoCAD's command writes it: the frame the square on the box of the points at their lowest corner (the rectangle from (10, 10) to (50, 40) has the frame of side 40 at (10, 10), where DxfWipeout.SetFrom lays it on the origin too), the points in it from -0.5 to 0.5 as written, the first again at the end, and the variables of wipeouts made with the first one (DxfWipeoutVariables, group 70 of 1). The frames of the wipeouts are drawn in the entity's colour over their mask while WIPEOUTFRAME is 1 or 2 and left out at 0; "Display but not plot" is written as 1, as AutoCAD 2021 writes it, and kept by the session, and the plot draws the frames as the screen does.

OOPS brings back the objects the last ERASE, BLOCK or WBLOCK took out, with no question and no message, in the space they were erased from, one undo step. Only the last set comes back: a second OOPS does nothing, and neither does one after an erase that UNDO took back. They come back as copies, so a handle they had is gone and so is a tie to an object that stayed (a hatch to its boundary); the polyline WIPEOUT erases is not among them, as in AutoCAD.

COPY's options, SELECTSIMILAR, ADDSELECTED and the text window

COPY asks as AutoCAD 2021 does: Current settings: Copy mode = Multiple, then Specify base point or [Displacement/mOde] <Displacement>:, then Specify second point or [Array] <use first point as displacement>:, and in Multiple mode, after each copy, Specify second point or [Array/Exit/Undo] <Exit>:. mOde (O or MO) asks Enter a copy mode option [Single/Multiple] and sets COPYMODE, 0 for Multiple, the default, and 1 for Single, where COPY makes one copy and ends; in Single mode the base point prompt also offers Multiple, which makes this run a multiple one and leaves COPYMODE as it was. COPYMODE is kept by the session, as ATTREQ is. Array asks Enter number of items to array: (2 to 32767, the original counted; one outside is Requires an integer between 2 and 32767. and asked again; asked a second time in the same run it offers the number last given), then Specify second point or [Fit]:: a plain point is the step from one copy to the next, so 4 items with the point 30 along make copies at 30, 60 and 90; with Fit the point is the place of the last copy and the others are spaced evenly between it and the base point (3 items to 7,10 from the origin put copies at 3.5,5 and 7,10), and Array goes back to the step. Enter at the number, with no default, or at the point, makes no copy and goes back to COPY's prompt. The whole array is one entry for Undo. A circle 10 in radius about (200, 0) copied with Array, 4 and the point (230, 0) has centres 200, 230, 260 and 290. A keyword that has lower-case letters before its capitals, as mOde and eXit, is taken by those letters and the capitals together at every prompt: MO, MOD, EX.

SELECTSIMILAR (no alias) asks Select objects or [SEttings]: until Enter, or takes the objects selected before it, and selects every object of the space shown that is like one of them: the same kind of object and the properties SELECTSIMILARMODE names. Its bits are 1 Color, 2 Layer, 4 Linetype, 8 Linetype scale, 16 Lineweight, 32 Plot style, 64 Object style (the text, dimension, multileader or table style) and 128 Name (the block of an insert, the pattern of a hatch); the default is 130, Layer and Name, and 0 matches the kind alone. A colour is compared as the object holds it, so an object BYLAYER is not like one of the layer's own colour, as in AutoCAD. Objects on a layer that is off or frozen, or hidden, are left out. In a drawing of lines A1 and A2 on layer Steel and A8 on layer Locked, picking A1 selects A1 and A2 under 130 and all three under 0. SEttings shows the Select Similar Settings dialog, eight check boxes that set SELECTSIMILARMODE; with no window the command says so. Plot style is ticked and kept but every object counts as alike, the presenter keeping no named plot style on an object. ADDSELECTED asks Select object: (an object selected alone before it is taken), echoes the command that draws an object of that kind (_.circle) and runs it with the layer, colour, linetype, linetype scale and lineweight of the object picked as the drawing's own, which come back when it ends or Esc ends it. It draws LINE, CIRCLE, ARC, ELLIPSE, PLINE, POINT, XLINE, RAY, SOLID, HATCH, SPLINE (where the drawing has the command), TOLERANCE, LEADER, MLEADER, MTEXT, TEXT, TABLE and the dimension types; a block reference, an attribute or any other object gets This kind of object cannot be added. A colour of true colour is drawn as its nearest index. The Edit menu's Select Similar and Add Selected run them on the selection. TEXTSCR (F2) shows the text window: the command history, one line to a row, in a resizable list that follows the command line while it is open, with Copy (Ctrl+C) for the rows chosen or for all of them; F2 or Esc inside it closes it. With no window TEXTSCR says The text window is shown by the window.

Associative arrays and ARRAYEDIT

These were checked against AutoCAD 2021 itself: its console ran the commands over a circle, a line and paths and the DXF it wrote was read here, and the DXF written here was loaded into it (its AssocArray API gave back each array's kind, counts, spacings and the origin and X axis of every item, and AUDIT found 0 errors in each of eight files).

ARRAYRECT, ARRAYPOLAR and ARRAYPATH (and the Rectangular, Polar and PAth types of ARRAY) make separate objects until ASsociative answers Yes (Create associative array [Yes/No] <No>:), then one associative array, as AutoCAD 2021 stores it. The objects selected are taken into it: model space holds one INSERT of an anonymous block (*U2) that holds an INSERT of the source block (*U1) for each item, and the source block holds the objects as they lie from the base point. A rectangular array of a circle of radius 5 at (10, 10), 3 columns 20 apart and 4 rows 30 apart, is one INSERT at (10, 10) over 12 item INSERTs, the second at (0, 30) and the last at (40, 90), and the circle in *U1 at (0, 0). The base point is the middle of the box of the objects (the INSERT of a rectangular array stands on it, a polar array's on its centre, a path array's at the origin of the drawing); the Base point option of the array's prompt names another. The parameters live in the drawing's associative network, in an ACDBASSOCACTION with an ACDBASSOCARRAYACTIONBODY (the parameters' class, each item's index, matrix and INSERT, and the INSERT's own matrix), the values of the parameters by name (Items, ItemSpacing, Rows, RowSpacing, RowElevation, Levels, LevelSpacing; AxesAngle for a rectangular array, FillAngle, Radius and StartAngle for a polar one, Direction and AlignItems where they are not the defaults; AlignItems, MaintainZ, Orientation, TangentOrientationAngle, PathDirection and Method for a path), dependencies on the two blocks, the INSERT and, for a path array, the path curve, and the vertex parameters BaseNormal, Origin and basePoint and the edge RowProfile (the path curve as a line, an arc, a circle or a chain of them for a polyline; for a rectangular array whose rows are turned, the line along its column axis). A path that is no line, arc, circle or polyline of lines and arcs in the plan (an ellipse, a spline) says so and makes separate objects; so does a drawing older than R2010, which holds no associations (Associative arrays need a drawing of R2010 or later: the items are made as separate objects.). Levels and the elevation between rows, which the separate copies leave out, are built in an associative array: two levels 7 apart and rows 4 higher put the item (0, 1, 1) of a rectangular array 25 along at (0, 25, 11).

An associative array AutoCAD wrote is read back: kind, parameters, items and their matrices (the arrays of 34 DXF files of AutoCAD 2021's own rectangular, polar and path arrays, with the row axis angle, clockwise and unrotated polar arrays with rows and levels, a path from its end, Divide, Align items off, the Vector and Normal tangents, and circle, arc and polyline paths, were read, and the items made again from the parameters were equal to AutoCAD's to a millionth). EXPLODE of an array breaks it into the source objects of each item, put where the item stands, and takes the objects out of the network; ERASE does the same; MOVE, ROTATE and SCALE of the INSERT keep the array (the matrix of the INSERT that the body keeps follows it; a path array moved on its own is made plain, as its items stand on the path, and one turned, scaled or mirrored together with its path too, while one moved together with its path by a translation stays an array, its items written again on the path where it is); the path curve moved or stretched writes the array again along it; COPY and MIRROR make an array of its own, with blocks of its own, so that a change of the one leaves the other (a copy of a path array keeps its picture but is no longer tied to the path).

ARRAYEDIT asks Select array: (any other object says Object selected is not an associative array. and 1 was filtered out, and it asks again), then offers the options of the array's kind until eXit or Enter, each change made at once (one undo step, the items made again, the INSERT keeping its handle): Enter an option [Source/REPlace/Base point/Rows/Columns/Levels/RESet/eXit] <eXit>: for a rectangular array, [Source/REPlace/Base point/Items/Angle between/Fill angle/Rows/Levels/ROTate items/RESet/eXit] for a polar one and [Source/REPlace/Method/Base point/Items/Rows/Levels/Align items/Z direction/RESet/eXit] for a path array. Columns asks Enter the number of columns or [Expression] <3>: and Specify the distance between columns or [Total/Expression] <20.0000>:; Rows adds Specify the incrementing elevation between rows or [Expresson] <0.0000>: (spelt so by AutoCAD); Items, Angle between, Fill angle, ROTate items, Method (Enter path method [Divide/Measure] <Measure>:), Align items and Z direction ask as the grip prompts of ARRAYPOLAR and ARRAYPATH do. 3 columns 20 apart edited to 5 columns 40 apart have their columns at 0, 40, 80, 120 and 160; 6 items of a polar array edited to 8 filling 120 degrees are 17.142857 apart. Base point re-anchors the array on the point and leaves the items where they are (a rectangular array's INSERT moves to the point and the circle in *U1 to (-40, -40) for the point (50, 50); a polar array's radius and start angle become the point's; a path array's source objects are held from the point, which the first item then puts on the path). REPlace asks Select replacement objects:, Select base point of replacement objects or [Key Point] <centroid>: and Select an item in the array to replace or [Source objects]:: Source objects puts the replacement in every item, held from the array's base point as the sources were, the replacement objects taken into the array. RESet makes the items again from the parameters. Source (editing the source objects in place, with ARRAYCLOSE), the replacement or erasure of a single item and the grips of an array are not built.

Selecting one associative array shows the contextual Array tab (green, as the Table Cell tab is): Type, Columns (Items), Rows, Levels and Properties, with the count, the distance between and the total of each, the elevation between rows, Base Point (it starts ARRAYEDIT), Reset Array, Rotate Items and Clockwise for a polar array, Align Items and Divide for a path array; Edit Source and Replace Item are greyed. A value written in a box is one undo step named ARRAYEDIT.

Written to DWG (DwgWriter), an array keeps its picture, the INSERT and its two blocks with every item, and loses its association, as a center mark does: the objects of the network (ACDBASSOCACTION, ACDBASSOCARRAYACTIONBODY, ACDBASSOCVERTEXACTIONPARAM, ACDBASSOCEDGEACTIONPARAM) have no DWG layout written yet, so AutoCAD opens the file (AUDIT 0 errors) with a plain block reference where the DXF has an array.

Parametric constraints

The Parametric tab of AutoCAD 2021, for the objects a small solver can move: lines, circles, arcs and the straight segments of light polylines, drawn in the plane of the world's XY. A constraint is applied by moving the objects to meet it, the one picked first held and the others moved to it, and is one undo step; where no place meets it with the constraints already there nothing changes and the history says Constraints cannot be satisfied., and a constraint the others already imply is refused as over- constraining (AutoCAD's console says nothing for these). The prompts were read from AutoCAD's console, and the files written here were loaded into it.

Geometric constraints. GCCOINCIDENT (Select first point or [Object/Autoconstrain] <Object>:, a point and a point, or a point and an object), GCCOLLINEAR and GCEQUAL (Select first object or [Multiple]:), GCCONCENTRIC, GCPARALLEL, GCPERPENDICULAR, GCTANGENT (Select first object:, Select second object:), GCFIX (Select point or [Object] <Object>:; an object is held by its ends, a circle by its centre), GCHORIZONTAL and GCVERTICAL (Select an object or [2Points] <2Points>:), GCSYMMETRIC (Select first object or [2Points] <2Points>:, then Select symmetry line:, which stays where it is), GCSMOOTH (the presenter has no splines to smooth: it asks and says so) and GEOMCONSTRAINT, which asks Enter constraint type [Horizontal/Vertical/ Perpendicular/PArallel/Tangent/SMooth/Coincident/CONcentric/COLlinear/Symmetric/Equal/Fix] <Coincident>:. A point is the end, the middle or the centre of the object picked nearest where it was picked. A line of 10 by 1 made horizontal keeps its start and becomes 10 along x (AutoCAD turns the line about its start and keeps its length, 10.05); two lines made parallel keep the first and turn the second about its start.

Constraint bars. A bar of small icons stands by each object whose bar is shown, one icon for each geometric constraint on it (CONSTRAINTBARDISPLAY: 1 the objects selected, 2 those a constraint was just made on, 3 both; CONSTRAINTBARMODE the types shown, 4095 for all twelve). CONSTRAINTBAR (Enter an option [Show/Hide/Reset] <Show>:) shows or hides the bars of objects for good, as the ribbon's Show All, Hide All and Show/Hide do; a right click on an icon opens Delete, Hide and Hide All. What is hidden is kept with the document for the session, as AutoCAD keeps it; no file holds it. DELCONSTRAINT (All constraints will be removed from selected objects) takes every constraint of the objects selected away and prints n constraint(s) removed; a constraint's dimension goes with it.

Dimensional constraints. DCLINEAR (a horizontal or vertical distance, by where the line is drawn), DCHORIZONTAL, DCVERTICAL, DCALIGNED, DCANGULAR (two lines, the angle from the first to the second), DCRADIUS and DCDIAMETER ask Specify first constraint point or [Object] <Object>: and the rest as AutoCAD does, then the place of the dimension line, then Enter name or value <d1=10>: (Enter keeps it; 50 makes the value 50, width=2*d2 names it and gives it an expression). The parameter is named d1, d2 ... for a distance, ang1, rad1 and dia1; the dimension that shows it carries d1=10.0000, on the hidden layer *ADSK_CONSTRAINTS in the dynamic form and on the current layer in the annotational form (CCONSTRAINTFORM 0 and 1, DCFORM), and is drawn by the style's variables; a value typed moves the objects at once. DIMCONSTRAINT shows Current settings: Constraint form = Dynamic and asks which. DCCONVERT turns associative dimensions (linear, aligned, radius, diameter) into constraints (1 associative dimensions converted). DCDISPLAY shows or hides the dynamic ones of the objects selected. The distance to a line (Point & line, 2Lines) and the angle of three points are not solved yet.

Parameters. -PARAMETERS is AutoCAD's: Enter a parameter option [New/Edit/Rename/Delete/?]:, with ? listing Parameter: d1 Expression: 10 Value: 10.0000. An expression may name other parameters (d1*2+3, Height/2) and use + - * / ^ %, brackets, pi and sin, cos, tan, asin, acos, atan (in degrees), sqrt, abs, exp, ln, log, floor, ceil, round, min, max and pow; changing one moves everything its constraints hold (d1 from 10 to 20 stretches the line from (0, 0) to (10, 0) to (20, 0), as AutoCAD 2021 does), and parameters that name one another in a ring are refused. PARAMETERS shows the Parameters Manager palette (name, expression and value of each parameter, edited in the row, New User Parameter and Delete; PARAMETERSCLOSE closes it); each edit is one undo step through CadParameters.

Editing. A constrained object edited by a grip, MOVE, STRETCH or Properties carries the others with it in the same undo step: what the edit placed is held, the rest moves the least way that keeps the constraints, so that the end of a line given a distance of 10 dragged to x = 15 comes back to x = 10 and stays at the cursor's y. Where the constraints cannot be kept the edit is taken back with Constraints cannot be satisfied.; an object erased takes its constraints and their dimensions with it.

AUTOCONSTRAIN (Select objects or [Settings]:) applies the constraints the objects nearly meet: Horizontal, Vertical, Perpendicular, Parallel, Tangent, Coincident, Concentric, Collinear, Equal and Fix, in the order of the AutoConstrain tab and as the boxes there allow, within a distance of 0.01 and an angle of 1 degree (the tolerances of the tab), the ones that conflict with the others left out; 3 constraint(s) applied. CONSTRAINTSETTINGS shows the dialog (Geometric, Dimensional, AutoConstrain tabs); CONSTRAINTINFER, CONSTRAINTNAMEFORMAT, DYNCONSTRAINTMODE, CONSTRAINTSOLVEMODE and PARAMETERCOPYMODE are kept as AutoCAD keeps them, PARAMETERSSTATUS and CONSTRAINTRELAX read only; the infer, solve mode and copy mode are not acted on yet. The name format is: a new dimensional constraint shows the words CONSTRAINTNAMEFORMAT asks, 0 the name (d1), 1 the value, 2 the name and the value (d1=10.0000), and the Dimension Name Format item of the dimension menu (Value, Name, Name and Expression) gives the ones selected another, one undo step; a drawing opened takes each constraint's format from the words its dimension shows, and a value or a name changed keeps it.

What is written. The constraints of a space live in the associative network of its block record, as AutoCAD 2021 keeps them (ACAD_ASSOCNETWORK of the block record's extension dictionary): an ACDBASSOC2DCONSTRAINTGROUP listing the nodes (the geometry, AcConstrainedBoundedLine, AcConstrainedCircle and AcConstrainedArc, each with the AcConstrainedImplicitPoint of its ends and centre and the AcPointCurveConstraint or AcCenterPointConstraint that holds the point to it, then each constraint: AcHorizontalConstraint with its datum line, AcParallelConstraint, AcPointCoincidenceConstraint, AcDistanceConstraint and the rest), an ACDBASSOCGEOMDEPENDENCY on each object or polyline edge (a persistent reactor of the object; an edge is named by the ids of its two vertices, group 91, which the presenter gives a polyline that has none), and for each dimensional constraint an ACDBASSOCVARIABLE, the ACDBASSOCVALUEDEPENDENCY that reads it and the ASSOCDIMDEPENDENCYBODY on its DIMENSION. A polyline's joints are held by coincident constraints AutoCAD marks as its own. AutoCAD 2021 loaded the files written for lines, circles, arcs, a polyline segment and every constraint above in DXF and in DWG (AUDIT 0), each listed with its constraints and a status of well defined, and re-solved a parameter set to 20 as the presenter does; it drops a group whose constraints the geometry does not meet to the last digits, so the solver brings every number to 1E-13 and puts back exactly what it did not move. A group the presenter does not work out (a spline, an ellipse, a smooth or three-point-angle constraint, a layout older than AutoCAD 2018's) is read as far as it goes and left untouched: nothing writes the space's constraints again.

ARRAYPATH and OVERKILL

These were checked against AutoCAD 2021's console, driven through its standard input (probe modify2, 17 November).

ARRAYPATH (and the PAth type of ARRAY) asks for the objects, then Select path curve: (a line, arc, circle, ellipse, polyline or spline; a pick that is none of them says 1 was filtered out and asks again, and one of the objects to array says Objects selected to be arrayed may not be selected as path curve.), writes Type = Path Associative = No and offers Select grip to edit array or [ASsociative/Method/Base point/Tangent direction/Items/Rows/Levels/Align items/Z direction/eXit]<eXit>:, the array drawn as a preview, until eXit or Enter makes it, one undo step. Every item is a separate object (unless ASsociative is answered Yes, see Associative arrays below), and the objects themselves stay the first item. The items follow the path from the end nearest the pick (a closed path from its start, a circle from angle nought, counter-clockwise). Measure, the default, asks Specify the distance between items along path or [Expression] <15.0000>: (one and a half times the width of the objects), says Maximum items = 4 and asks Specify number of items or [Fill entire path/Expression] <4>:: a path of 100 measured by 30 holds 4 items, at 0, 30, 60 and 90, and a circle of radius 50 measured by 100 holds 3. Divide asks Enter number of items along path or [Expression] <7>: and spreads them evenly, the last at the end of an open path: 7 items on a path of 100 are 16.6667 apart. Each item carries the place of the objects relative to the start of the path with it, so objects 100 below the path stay 100 below it all along; Base point (Specify base point or [Key point] <end of path curve>:) names the point of the objects that goes on the start of the path, which moves them there as the first item (a line from (0, 0) to (10, 0) with its middle (5, 0) as the base point lies from (-5, 100) to (5, 100) on a path that starts at (0, 100)). Align items (Align arrayed items to path? [Yes/No] <Yes>:, Yes until changed) turns each item by the angle the path has turned since its start: the same line on a path that runs along Y = 100 and then up X = 100, measured by 60, has its third item from (200, 120) to (200, 130), upright. Tangent direction (Specify first point of tangent direction vector or [Normal]:, then Specify second point of tangent direction vector:) says in which direction the objects face the path, so that a direction of 90 degrees turns the first item minus 90 degrees about the start; Normal stands the items up with the path along their Z axis. Rows (Enter the number of rows or [Expression] <1>:, the distance between them, Total and the incrementing elevation) lie to the left of the way the path runs, turned or not, and Levels above along Z; two rows 8 apart 5 higher and two levels 10 apart give copies at Z 0, 10, 5 and 15. Z direction asks Maintain Z direction for all items in the array? [Yes/No] <Yes>:; a path in the plane turns no item about its own direction, so the answer changes nothing. ASsociative Yes makes an associative array (see below); the grips of an array are not built.

OVERKILL asks for the objects and then shows the Delete Duplicate Objects dialog, -OVERKILL asks the same on the command line: Current settings: Tolerance=0.000001, Ignore=None, Optimize polylines=Yes, Combine partial overlap=Yes, Combine end-to-end=Yes and Enter an option to change [Done/Ignore/tOlerance/optimize Plines/combine parTial overlap/combine Endtoend/Associativity] <done>:, each option asking its question (Specify tolerance for object comparison precision <0.000001>:, Optimize segments within plines [segment wiDth/Break polyline/Yes/No] <Yes>:) and showing the settings again. The settings stay with the session (CadCommandSession.Overkill) from one run to the next. The run writes 1 duplicate(s) deleted and, where overlaps or ends that meet are combined, 2 overlapping object(s) or segment(s) deleted. Two lines, arcs, circles or points of the same place and properties are duplicates, and the later in the drawing stays (a line drawn from the other end is the same line); two polylines of the same vertices, as drawn or reversed, are duplicates too. On one straight line or one circle, a line or arc within another is deleted, those that overlap in part or meet end to end become one, the later of them stretched over the whole (lines from 0 to 100, 50 to 150 and 200 to 250 and 250 to 300 become 0 to 150 and 200 to 300, and arcs of 300 to 40 degrees and 20 to 100 one of 300 to 100); arcs that make a whole circle become a circle, and a circle holds the arcs of its own circle. A segment of a polyline takes part like a line: one deleted or combined with another is cut out of its polyline, which then is two (a polyline that doubles back on itself from (100, 0) to (50, 0) loses that segment and is two), and where a line lies on a segment the line goes and the polyline stays whole; two polylines overlapping on a segment lose it and a line of the whole takes its place. Repeated vertices go and consecutive collinear segments of a polyline join up in place ((0, 0), (100, 0), (100, 0), (200, 0) becomes (0, 0), (200, 0)). The tolerance is the distance within which two points are one, and is half of it in each direction: of two parallel lines of one length 0.04 apart a tolerance of 0.1 deletes one and 0.05 apart it does not. Ignore leaves the colour, layer, linetype, linetype scale, lineweight, thickness, transparency, plot style or material out of the comparison (All all of them), and the later object keeps its own. With partial overlaps off only exact duplicates go; with Optimize off polylines are compared whole; Break polylines off keeps a polyline whole (repeated vertices still go). The dialog has the same settings as boxes (the tolerance, the nine properties and the six options) and OK runs the command with them. Polyline arc segments are not compared by their parts, and associative objects are kept whatever the setting.

DWGPROPS shows AutoCAD 2021's Drawing Properties dialog (the window's DrawingPropertiesWindow; with none listening the command says DWGPROPS is shown by the window., as AutoCAD has no typed form of it). Its tabs are General (the file: type, location, size as 12.50KB (12 800 bytes), created, modified and accessed, and the Read-only and Hidden boxes, greyed), Summary (Title, Subject, Author, Keywords, Comments, Hyperlink base), Statistics (Created and Modified from $TDCREATE and $TDUPDATE, Last saved by, Revision number, Total editing time from $TDINDWG written as 1 hour, 30 minutes) and Custom (name and value rows, Add and Delete). OK writes the Summary tab and the custom properties through DxfDatabase.SummaryInfo, one undo step named DWGPROPS: into the header of a drawing of R2004 or later ($TITLE, $SUBJECT, $AUTHOR, $KEYWORDS, $COMMENTS, $REVISIONNUMBER, a $CUSTOMPROPERTYTAG and a $CUSTOMPROPERTY for each pair, $HYPERLINKBASE), into the DWGPROPS record of an older one; properties the same as the drawing's are no step. A custom property with a value and no name, or a name used twice (letters of either case the same), is refused in the dialog's footer and the dialog stays open; a row with no name and no value is left out. The dialog's data is a public CadDrawingPropertiesRequest; the custom properties are what a FIELD of the drawing reads (DxfDatabase.SummaryInfo.CustomProperties). A save stamps $TDUPDATE and $TDUUPDATE with the time and $LASTSAVEDBY with the login name, each where the header has the variable, as AutoCAD does, so that Statistics shows when and by whom it was saved. A DWG of R2004 or later keeps the properties in its AcDb:SummaryInfo section, which the writer writes and the reader reads as AutoCAD 2021 lays it out (the bytes are checked against files it saved; see DWG files): they survive a save as DXF and as DWG.

HYPERLINK asks Select objects: (those selected before it are taken) and shows Insert Hyperlink; where an object selected has a link it is Edit Hyperlink, which starts from the first link found, OK replaces the links of every object selected with the one made, and Remove Link takes all of them out (1 hyperlink deleted.). Link to offers Existing File or Web Page (the address, Browse… for a file, and the named location in it), View of This Drawing (a view of the drawing, stored as a link with no address and the view as its place) and E-mail Address (the address and a subject, stored as mailto:address?subject=...); Text to display is what the tooltip shows. An address, text or place over 255 characters is refused in AutoCAD's words. The links are the extended data of the application PE_URL, as AutoCAD writes them (DxfEntity.Hyperlinks). -HYPERLINK asks, in the words of AutoCAD's own string table, Enter an option [Remove/Insert] <Insert>:; Insert asks Enter hyperlink insert option [Area/Object] <Object>:, then for Object Select objects:, Overwrite existing hyperlinks? [Yes/No] <Yes>: where an object has one, Enter hyperlink <current drawing>:, Enter named location <none>: and Enter description <none>:; Area asks First corner: and Other corner: and draws the rectangle as a closed polyline on the layer URLLAYER (made where there is none; URLLAYER is frozen. Thaw URLLAYER to use Insert by Area. or locked) carrying the link. Remove takes every link out of the objects, or, for one object with several, asks Enter number, hyperlink, or * for all:. With the cursor over an object with a link, no command running, a tooltip shows the link's text and CTRL + click to follow link; Ctrl+click follows it (MainViewModel.FollowHyperlink): a web or mail address, or a file other than a drawing, opens with the system's program (OpenLink), a DXF or DWG opens in the presenter, a link to a view restores it (-VIEW Restore), a file not there says Hyperlink destination cannot be found.. A relative path starts from the drawing's hyperlink base, or from its folder where that is empty. The Edit shortcut menu of such an object has Hyperlink: Open "text", Copy Hyperlink and Edit Hyperlink…. (The hyperlink cursor and HYPERLINKOPTIONS, which turn the tooltip and menu off, are not built, and Add to Favorites is left out.)

GROUPEDIT asks Select group or [Name]: (an object of the group, or Name and the group by name; an object in no group is told Object is not a member of any group.), then Enter an option [Add objects/Remove objects/REName]: again and again until Enter. Add and Remove ask the objects as -GROUP's options do (picked one by one, a group not taken whole); REName asks Enter a new name for group or [?]: and the options go on with the new name. An object in more than one group asks Object is a member of more than one group [Accept/Next] <Accept>: as UNGROUP does (checked in AutoCAD 2021's console: with the line in A and B, Accept went on with A, Next with B), the groups offered by name, round again; the one reached is edited. Each edit is one undo step named GROUPEDIT. The Home tab's Group Edit button and the Group submenu's Add to Group and Remove from Group of the Edit shortcut menu start it (the last two with the option ready).

ATTREDEF, the Express Tools command, as AutoCAD 2021's own ATTREDEF.LSP does it (run in its console to check): Enter name of the block you wish to redefine: (Block "X" is not defined. Please try again.), Select objects for new Block..., Specify insertion base point of new Block:. The block is defined again from the objects, which are used up as -BLOCK uses them, and each reference of it in the space shown is put anew at its point, scale, rotation and normal: an attribute whose tag the new block has keeps its value, a new one is given the default of its definition, one the new block lacks is dropped. As AutoCAD's does, the new references are drawn on the current layer, not that of the old ones, and what an old reference carried (ATTEDIT's formats, extended data) is left behind; a reference on a locked layer is left as it is, and a new block with no attribute that is not constant is refused (New block has no attributes.). The block is defined in the axes of the current UCS, as -BLOCK defines it, and each new reference stands at the rotation of the old one, as AutoCAD's routine puts it. One undo step.

MEASUREGEOM Quick is the option the prompt now offers beside Mode: Enter an option [Distance/Radius/Angle/ARea/Quick/Mode/eXit] <Distance>:; Quick asks Move cursor or [Distance/Radius/Angle/ARea/Quick/Mode/eXit] <eXit>: and draws, as the prompt's preview under the cursor, the dimensions of what it is over: a line's length (beside it) with the angle it makes where another line meets it and the distance across to a parallel line near on the cursor's side, a circle's or arc's radius, and, over nothing but inside a closed boundary (a closed polyline of straight sides or a circle), the width and height through the cursor and the area. A click writes the reading on the command line (Length = 100.0000, Angle in XY Plane = 0°, Distance = 50.0000, Area = 6000.0000, Perimeter = 320.0000); another option goes on with that measure, Enter ends. Mode asks Always default to quick measure behavior? [Yes/No] <No>:, and Yes makes MEASUREGEOM start at Quick. This is a simple version: lines, circles, arcs and the straight sides of lightweight polylines, nothing in a block or a viewport, and AutoCAD's Volume option is not offered.

CLEANSCREENON and CLEANSCREENOFF, and Ctrl+0 (which switches between them), hide the ribbon, Properties and the Drawings list, each remembered as it was, and show them again; the command line and the status bar stay. A second CLEANSCREENON keeps what the first remembered.

LIMITS, TIME, STATUS, FILL, QTEXT, MULTIPLE, TRACE, SKETCH, MASSPROP, MINSERT and DIMINSPECT

Each of these asks in the words AutoCAD 2021's console used for the same input (probed), and each change is one undo step.

LIMITS writes Reset Model space limits: and asks Specify lower left corner or [ON/OFF] <0.0000,0.0000>:, then Specify upper right corner <12.0000,9.0000>:; an upper right corner not above and to the right of the lower left says Invalid limits. and asks again, and Enter at either keeps the limits as they are. ON and OFF switch LIMCHECK. With LIMCHECK on, a point given to a command that draws, inserts, moves or copies (LINE, PLINE, RECTANG, CIRCLE, ARC, ELLIPSE, POINT, POLYGON, DONUT, SPLINE, XLINE, RAY, TEXT, MTEXT, TRACE, MLINE, REVCLOUD, INSERT, MINSERT, MOVE, COPY) outside the limits is refused with **Outside limits and the prompt is asked again, whether it was clicked or typed; a point on the limit is inside, and a point that only measures or views (DIST, ZOOM, a window of a selection) is never refused. In a layout the limits are those of its sheet, which PAGESETUP sets, so only ON and OFF work there.

TIME shows Current time:, the times of the drawing (Created and Last updated from $TDCREATE and $TDUPDATE, Total editing time from $TDINDWG and the time since the drawing was opened, the user's Elapsed timer, and Next automatic save in, which is <no modifications yet> until the drawing has a change not saved and then counts SAVETIME minutes down from it) in AutoCAD's columns, a time as Tuesday, November 17, 2026 8:34:00:000 AM and a span as 0 days 00:09:59:999, then asks Enter option [Display/ON/OFF/Reset]: until Enter or Esc: Display shows it again, OFF and ON stop and start the elapsed timer (Timer off., Timer on.), Reset sets it to nought (Timer reset to zero.). The variables TDCREATE, TDUCREATE, TDUPDATE, TDUUPDATE, TDINDWG and TDUSRTIMER read the same times as Julian dates or days to eight places (TDCREATE = 2461362.36004630 (read only)); USRTIMER is the timer's switch. A save writes the editing time and the timer into the file ($TDINDWG, $TDUSRTIMER, $USRTIMER) and counts on from there, so that a drawing with 2 hours of editing in its file, worked on for 1 hour and saved, has 3 hours in it and shows them again when it is opened.

STATUS writes the report: 115 objects in <file>, the limits of the space worked in with (Off) where LIMCHECK is off, what the space uses with **Over on the corner outside the limits (*Nothing* for an empty space), what the display shows, the insertion base, the snap resolution and the grid spacing (those of the window's SNAPUNIT and GRIDUNIT where it has them), the current space, layout, layer, colour (BYLAYER -- 7 (white)), linetype, material, lineweight, elevation and thickness, Fill on Grid off Ortho off Qtext off Snap off Tablet off, the object snap modes in alphabetical order, and the free space of the disk of the drawing. The undo file size and the memory lines of AutoCAD's report are not written: the presenter keeps no undo file and a report of the machine's memory is not part of a drawing.

FILL and QTEXT ask Enter mode [ON/OFF] <ON>: and set FILLMODE and QTEXTMODE; each draws every space again. FILL off draws a SOLID, a trace, a wide polyline and a solid or gradient hatch by its outline. QTEXT on draws each text, MTEXT and attribute as the box that holds its lines, in the colour of its line, turned with it, the words and the grips kept.

A text too small to read is not left out, as AutoCAD draws it: the canvas draws a text under 5 pixels high as a solid bar of its colour, the size of its box and never under a pixel each way, so that the lines of a sheet zoomed out to its extents still show where the words are. The bar is the text's frame (its height from the foot of the letters that reach below the baseline to the top of the capitals, its width as the drawing's fonts measure the words, or 0.6 of the height a letter where they do not), so it is what QTEXT draws as a box, filled; a text of several lines is a bar for each line, each as wide as its own line, ragged on the right, with a gap between the lines. One of 0.2 pixels is still a pixel of its colour. A selected one is a bar in the selection colour. Global settings keep the choice (GlobalSettings.SmallTextAsBars, on by default; Appearance, Display, "Draw text too small to read (as AutoCAD; off hides it when zoomed out)"); the variable SMALLTEXTBARS (ON or OFF, OpenCAD2D's own, with no AutoCAD counterpart) sets it, and off, a text under 3 pixels high is left out and one of 3 to 5 pixels is drawn in its letters, as before. The pictures of PNG and SVG and the masks of Python follow the canvas; a plot and a PDF are not affected, drawing every text in its letters.

MULTIPLE asks Enter command name to repeat: and starts that command again each time it ends, with the command's own prompts, until Esc. A name that is no command says Unknown command "FOO". Press F1 for help.; a command that ends having asked nothing (REGEN), or by an error, ends the repetition.

TRACE asks Specify trace width <0.0500>: (nought is a line; below nought is Value must be positive.; the width is kept as $TRACEWID and offered next time), Specify start point: and Specify next point: until Enter. Each segment is a filled four-cornered area of the width given and two segments meet in a mitre, as AutoCAD's: a trace of width 3 from (0, 0) to (100, 0) to (100, 50) is two solids, the first with corners (0, 1.5), (0, -1.5), (98.5, 1.5) and (101.5, -1.5), the second with (98.5, 1.5), (101.5, -1.5), (98.5, 50) and (101.5, 50); the ends of the path are cut square, and two segments that double back are cut square too, there being no mitre. AutoCAD writes TRACE entities; the presenter writes SOLIDs with the same four corners, which the library reads, draws and keeps as that shape.

SKETCH writes Type = Lines Increment = 0.1000 Tolerance = 0.5000 and asks Specify sketch or [Type/Increment/toLerance]:. Type asks Enter sketch type [Lines/Polyline/Spline] <Lines>: (SKPOLY 0, 1 or 2), Increment Specify sketch increment <0.1000>: (the least length of a piece, SKETCHINC; nought or less is Value must be positive.), toLerance Specify spline fit tolerance <0.5000>: (SKTOLERANCE, 0 to 1; others Requires a value between 0 and 1.). A point given puts the pen down: the cursor then records a point each time it has moved the increment from the last one, and Enter lifts the pen, making the stroke as a LINE for each piece, as one polyline or as one spline through the points; Enter with the pen up ends. AutoCAD lifts the pen with a click; here a click feeds a point like a move, so Enter lifts it. The tolerance is kept for the session and the spline is fitted through the points with no tolerance. The command's strokes are one undo step.

MASSPROP asks Select objects: and writes AutoCAD's report for the regions selected together, flat on the XY plane: the area and perimeter (holes taken away from the area, added to the perimeter), the bounding box, the centroid, the moments of inertia and the product of inertia about the origin (AutoCAD's product is the integral of x times y with its sign changed: -6 250 000.0000 for a rectangle 100 by 50 from the origin), the radii of gyration, and the principal moments I and J about the centroid with the directions of their axes (I along the axis between -45 and 45 degrees, J a quarter turn after it). A rectangle 100 by 50 gives area 5 000, perimeter 300, moments 4 166 666.6667 and 16 666 666.6667, I 1 041 666.6667 along [1.0000 0.0000] and J 4 166 666.6667 along [0.0000 1.0000]. The integrals are taken round the boundary by Gauss-Legendre quadrature in pieces of 30 degrees, so a disc is exact to about 1E-12. Nothing selected. and No solids or regions selected. are AutoCAD's words. Then Write analysis to a file? [Yes/No] <N>:; Yes asks Enter file name <plan.mpr>: (the drawing's folder and name) and writes the .mpr text as AutoCAD writes it, with its trailing spaces and line ends. The 3D solids MASSPROP also takes are not part of the presenter.

MINSERT asks Enter block name or [?]:, the insertion point, scale factors and rotation as INSERT asks them, then Enter number of rows (---) <1>:, Enter number of columns (|||) <1>:, Enter distance between rows or specify unit cell (---): and Specify distance between columns (|||):. A unit cell given by two corners gives both distances at once, with one row or one column its distance is not asked, and a negative distance lays the array the other way. It makes one MINSERT entity (DxfMInsertBlock) that draws, picks and plots as the block at each cell, saved and read in DXF and DWG. A block with attributes is placed too: its values are asked once, after the distances (Enter attribute values), and belong to the whole array, as AutoCAD 2021's MINSERT asks them. The corners of a unit cell, like the opposite corner INSERT takes for its scale, are measured along the UCS axes. EXPLODE refuses a MINSERT as AutoCAD 2021's does: 1 was minserted.

DIMINSPECT picks the dimensions (Select dimensions:; those selected before are taken) and shows the Inspection Dimension dialog (the window's DimInspectWindow; with none listening it says to use -DIMINSPECT): Shape (Round, Angular, None), Label and Inspection rate, OK and, where a dimension has an inspection, Remove Inspection. -DIMINSPECT asks Add inspection data or [Remove] <Add>:, Select dimensions:, Enter shape option [Round/Angular/None] <Round>:, Enter label data or <None>: and Enter inspection rate <100%>:; Remove takes the inspection out and says 1 of inspection removed. The data is kept as AutoCAD keeps it, in the extended data of the application ACAD_DSTYLE_DIMINSPECT (1070 396 and the rate as typed, 1070 395 and the label, 1070 394 and the flags, 1070 393 and 1; the flags are 1, 2 or 4 for round, angular or none, plus 32, and 16 where a label was typed; Enter at the label keeps the label a dimension had and shows none, as AutoCAD does), and the dimension is drawn again with it: the label, the words and the rate side by side with a gap (DIMGAP) either side, in a frame the height of the words and two gaps whose ends are semicircles or points, with a dividing line after the label and before the rate, the whole centred where the words stood and the dimension line cut where the frame ends. The rate is any words (50, 100%); AutoCAD takes any.

Annotation commands

DIMOVERRIDE (DOV, DIMOVER) asks as AutoCAD 2021's does (probed in its console): "Enter dimension variable name to override or [Clear overrides]:", then "Enter new value for dimension variable :" for each name, "Enter dimension variable name to override:" after the first, Enter, and "Select objects:". The current value is the drawing's own, to four places: DIMSCALE <1.0000>, a flag <On> or <Off>, a whole number <0>, a colour <BYBLOCK>, an arrowhead <ClosedFilled>. A name AutoCAD does not know says Variable "XYZ" not found., and so do the variables of R2007 and after (DIMJOGANG, DIMLTYPE, DIMLTEX1, DIMLTEX2, DIMFXL, DIMFXLON, DIMTFILL, DIMTFILLCLR, DIMARCSYM); a whole number out of its range says Requires an integer between 0 and 4. (DIMTAD 7), a size below nought Value must be positive., a flag that is neither On nor Off Invalid option keyword., and each asks again. The values are written one at a time in the order of their groups as overrides of the dimension style on the dimensions, leaders and feature control frames selected, each dimension drawn anew, one undo step: DIMTAD 0 and DIMSCALE 2 typed in that order give a linear dimension of the overrides 40 77, and its words 5 high where they were 2.5. Clear overrides takes every override of the objects selected away, as SetFromStyle does; objects of another kind are left alone. Enter at a value keeps the one shown and writes no override.

-DIMSTYLE writes the current style and its overrides, as AutoCAD 2021 does (probed in its console): Current dimension style: ISO-25 Annotative: No, then, where the dimension variables of the drawing differ from the style's own, Current dimension overrides: and one line for each, DIMTXT 5.0000 (the name set in twelve places, the value as LIST writes it). It then asks Enter a dimension style option [ANnotative/Save/Restore/STatus/Variables/Apply/?] <Restore>:. Save asks Enter name for new dimension style or [?]: and keeps the variables, overrides and all, as a style that becomes the current one, with no override left; a name the drawing has asks That name is already in use, redefine it? <N>: (Y redefines it, the dimensions drawn in it drawn again) and a name with a character a style cannot hold says Invalid style name.. ANnotative asks Create annotative dimension style [Yes/No] <Yes>: and then the name, as Save, and asks the option again. Restore asks Enter a dimension style name, [?] or <select dimension>:: a name makes that style current (Unknown dimension style. for one the drawing has not) and Enter asks Select dimension:, whose style and overrides become the current ones. STatus lists DIMASO, DIMSTYLE and every variable with its value and what it is (DIMASZ 2.5000 Arrow size); Variables lists those of a style the same way, or, with Enter and a dimension picked, Dimension style: ISO-25 and the overrides the dimension holds. Apply, and DIMUPDATE (the Update of the Annotate tab), ask Select objects: and give the current style and the overrides to the dimensions, leaders and feature control frames selected, each drawn anew, one undo step: with DIMTXT 6 set over a style of 2.5, a dimension selected has its words 6 high, and the overrides it holds are the variables that differ from the style. ? asks Enter dimension style(s) to list <*>: and lists the styles that match, an annotative one marked. DIMALTMZF, DIMALTMZS, DIMMZF and DIMMZS, which AutoCAD lists, are not kept by the library and are not listed.

The sample dimensions of the Dimension Style Manager's preview (and of the New and Modify dialogs and the Purge dialog's preview of a style) are drawn as many times bigger as the style's overall scale says, as AutoCAD's are, DIMSCALE 0 taken for 1: the part is 32 by 20 at DIMSCALE 1 and 800 by 500 at DIMSCALE 25, its words reading 800 and R300, so that a style of scale 25 with words and arrowheads 2.5 looks as it does at scale 1, not as huge words over a small part.

Each tab of the dimension style dialogs has a sample of its own for the preview (CadDimStyleEditor.Sample with a CadDimSampleKind), and each sample is made of entities, not of dimensions: its dimensions are drawn by the builders the DIM commands use, the entities of each dimension's block are copied into model space with a handle of their own, and the dimension is erased, so that the display list names the part an item belongs to (CadStyleSample.PartOf). The Overview (the Manager's and Purge's) is the picture Samples draws, item for item. Lines shows a baseline pair across the part, 20 and 32 long, the second line DIMDLI above the first (3.75 at DIMSCALE 1, 93.75 at 25); Symbols and arrows a linear 32, a circle of 10 with its radius and centre mark, an arc of 90 degrees with its arc length dimension, a jogged radius and a leader drawn with DIMLDRBLK's arrowhead (the radius is drawn without DIMTOFL's line through the circle, so that the centre mark of DIMCEN shows); Text a linear 32 and a vertical 20 on the left of the part; Fit a wide dimension, a narrow one (5, over a slot, its arrowheads outside) and a 32 whose words were put by hand to the right of its line; the units tabs 28.375 and an angle of 37.5 degrees. The dimension line of a dimension is drawn as two parts, the half from the first extension line to the middle and the half from the middle to the second, and a line that runs whole across the middle is both. The extension line a style leaves out is not in the sample (it is given by Measures as the ghost of where it would be), and the words of a style that fills behind them are the parts Text and TextFill, one entity. CadDimStyleEditor.PartsOf(key) names the parts a field sets by the variable the dialog shows beside it (DIMEXE sets both extension lines, DIMASZ the arrowheads, DIMSCALE, Annotative and DIMUPT none), KeysOf(part) the keys that set a part, in the order of the dialog, and Measures(sample, values, key) the distance a field sets as a callout on the sample's own points: DIMEXE is 1.25 from the dimension line along the first extension line (31.25 at DIMSCALE 25), DIMEXO 0.625 from the origin, DIMASZ 2.5 along the second arrowhead from its tip, DIMGAP 0.625 from the dimension line to the words (Text tab), the label DIMEXE = 1.25 being the value as the field shows it. The multileader's preview is made the same way (CadMLeaderStyleEditor.PreviewSample): the multileader is broken into the entities it draws as, in the order the library gives them (the words or the block, the landing, each leader line and its arrowhead), and PartsOf, KeysOf and Measures say what each setting sets: ArrowSize 2.5, LandingDistance 8 and LandingGap 2 at the default style, the words from x 25 past a landing from (15, 10) to (23, 10).

The previews of the dimension style dialogs (New, Modify and Override, one window), of the Dimension Style Manager and of the multileader style dialogs are drawn at the real size of their frame and the real scale of the display, so that they stay sharp at 150 %: the canvas's own renderer draws the sample into a picture of as many device pixels as the frame has, every line at least 1.5 device-independent pixels wide, and draws it again as the dialog is resized or the screen's scale changes. The New, Modify and Override dialog is 860 by 660 and the Modify Multileader Style dialog 960 by 660 (they were 800 by 640); both can be resized from the grip at the corner and never get smaller. The multileader dialog's preview is 432 wide and about 300 high at that size and grows with the window; the dimension style dialog's is 300 wide and about 190 high, at the top right, and stays that size (see below). A toolbar in the preview's title row has Fit (a double click on the preview does the same), the zoom in percent of Fit and two swatches for the ground, black or white (kept until the app closes); the wheel zooms about the pointer by 1.2 a notch, and a change of a value keeps the zoom you chose unless what the sample draws grows or shrinks by more than a fifth, or the tab changes.

The New, Modify and Override dimension style dialog sets each tab in group boxes as AutoCAD 2021 does, each a 1 px bordered box with its title in the top line: the left column's boxes beside the preview, the right column's boxes under it (Arc length symbol, Radius jog dimension, Text alignment, Scale for dimension features, Fine tuning, Angular dimensions, Placement), and on the Lines tab the Extension lines across the width in two columns of their own. The two Suppress pairs sit on one row each ("Suppress: [ ] Dim line 1 [ ] Dim line 2", "Suppress: [ ] Ext line 1 [ ] Ext line 2"), the variables of both beside the caption. A list of the right column, and the two long lists of the Fit tab, sit under their labels at the width of their box, where the width beside the label would cut their words. The Description spans the width under the boxes, and a tab too tall for the window scrolls. The groups come from DimStyleEditViewModel.GroupsOf, LeftGroups, RightGroups and WideGroups; Fields still lists a tab's fields flat, a group's title before its fields.

The preview is linked to the fields. The field under the pointer, else the one with the keyboard focus, is the field active: the parts it sets are drawn in the accent (#3D9BFF on black, #0A6BD6 on white) and the rest faded to a third, and a distance it sets is measured on the sample as a callout 18 pixels off the part: DIMEXE reads DIMEXE = 1.25 along the first extension line, and where the callout is under 16 pixels long a magnifier (x4, x8 under 6 pixels) shows the region drawn again at that zoom in the corner with least drawn under it. A field that sets no part (DIMSCALE, Annotative, DIMUPT, the break size) says so in a chip, as Every part · DIMSCALE = 1; a formatting field of the units and tolerance tabs puts a chip over the words it sets with the value and the result (DIMDEC = 0.00 · 28,38); a part the style leaves out (DIMSE1 on, no fill, no landing) is drawn as a dashed ghost of where it would be with the chip Suppressed. The multileader's callouts are labelled in the field's own words (Landing gap = 2). It works the other way too: the part under the pointer (within 6 pixels) lights with a halo and a tooltip names it and the variables that set it (Arrowhead 2 · DIMBLK2, DIMASZ, DIMCLRD, DIMLWD, DIMATFIT · click to edit, those of the tab shown first), the rows of the tab that set it get an accent bar and a ground, and a tab that holds others shows a dot on its chip; a click goes to the first of them on the tab shown, else the first in tab order, switching the tab, focusing the box and scrolling it into view. In the Managers the tooltip names the part and nothing else.

The Modify Table Style dialog (940 by 660, resizable) has the same links, in its own two previews, both WPF vectors on white paper and drawn to scale (TableStylePreview in OpenCAD2D.Wpf): the table, five columns of 25 mm, a title, a header and three rows of data as tall as their text with the margins (4.5 high words and margins of 1.5 make a row 9 high, the table 125 by 47, 2.5 pixels to a millimetre in 330 by 240), and, under the Cell styles box, one row of the cell style picked in three columns (7.2 pixels to a millimetre in 560 by 120). The words are drawn at their text height times that scale, 11 pixels for 4.5 in the table and 32 in the cell style preview, not clamped. The setting under the pointer, else the one with the focus, lights what it sets in the rows of the cell style picked and fades the rest: the words for Alignment (with a dot in each cell at its point), Format, the margins and the text settings, the fill for Fill color (a dashed ghost and the chip Suppressed where there is none), the lines for the lineweight and colour (those of the border button pressed last, else all) and, while the pointer rests on a border button, the lines it would give (dashed for No Border), and every row for the table direction with a chip naming it. The two margins and the text height are measured in place, Horizontal margin = 1.5 from the cell's left edge (its right edge for words set right, with the chip "words centred" for centred ones), Vertical margin = 1.5 from its top (bottom) edge and Text height = 4.5 beside the words, the label in a chip under the table; a margin under 16 pixels long in the table preview also gets the magnifier (x4, x8 under 6 pixels). The pointer works the other way: over a row of the table it lights the row and a tooltip names its cell style (Header · cell style), and a click picks it in the Cell styles box; over the words, a line or the fill in the cell style preview it lights that part, the rows of the settings that set it get an accent bar and ground, and a click goes to the first of the tab shown, else the first in tab order (Alignment on General, Text style on Text, Lineweight on Borders), switching the tab and focusing the box. The table preview is always white, as paper prints, with no ground to switch. The boxes of the margins and the height are committed when they lose the focus, so their previews follow a value once it is entered. TEXTALIGN (TA) keeps AutoCAD's settings: "Current settings: Align = Left, Spacing Mode = Current Vertical" and "Select text objects to align [alIgnment/Options]:". alIgnment asks "Select alignment direction [Left/Center/Right/TL/TC/TR/ML/MC/MR/BL/BC/BR] :", Options "Enter an option [Distribute/Set spacing/current Vertical/current Horizontal] :" (Set spacing asks "Set spacing <0.000000>:"). After the TEXT and MTEXT are selected (others are filtered out, 1 was filtered out.), "Select text object to align to [Point]:" takes the text they line up with, or Point two points that give a line ("Pick first point", "Pick second point or [Options]:"). The texts move by the boxes they are drawn in: Left, Center and Right line up an edge or the middle across, the two-letter ones a corner or the middle of a side. Current Vertical keeps each text's height and moves it across, so that its edge lies on the text picked or on the line; Current Horizontal keeps its place along and moves it up or down; Set spacing stacks them a gap apart above and below the text picked, which stays; Distribute spaces them evenly between the top one and the bottom one. A line within a degree of the way the texts cannot reach (a level one with Current Vertical) says The base line is near horizontal or vertical, aligned texts may be out of available area, alignment is discarded. and moves nothing. Three texts 5 high at (0, 0), (10, 20) and (30, 50) lined up on the left edge of the first have that edge in common. The settings stay for the next run in the same window; the Left, Center and Right alignments stand at the middle of the box when the texts move up or down. Along a line of two points (Point), AutoCAD 2021 puts Left on the top left corner of each box and Right on its top right corner, as TL and TR, and Center on its middle, as MC: three texts 2.5 high at (10, 10), (60, 25) and (30, 50) taken to a line of slope 1/2 through (30, 50) under Left have their left edges at -45, -15 and 35, where it stands at 12.5, 27.5 and 52.5. Set spacing and Distribute along a line, whatever way it runs (a level or an upright one too: they are not discarded), put the texts in the order their corners stand along it from its first point, the first corner on that point. Each next corner stands far enough on along the line that the two boxes are the spacing apart measured along it, across (the width of the box before it, or of the one after under TR and the other right-hand corners, over the line's cosine) or up (the height over its sine), whichever is the less; Distribute puts the last corner on the second point and gives every two boxes the one gap that takes it there. Texts 2.5 high, AA, CCCCCC, DDDD and BBB (1.67, 14.17, 9.17 and 6.67 wide), taken along the line from (30, 50) to (130, 100) under TL with a spacing of 3, come in the order AA, CCCCCC, DDDD, BBB with their corners 4.863, 8.59 and 8.59 apart along it, and under Distribute with a gap of 32.92 between each two.

MLEADEREDIT (MLE) takes "Select a multileader:", then "Specify leader arrowhead location or [Remove leaders]:": each point adds a leader line whose arrowhead stands there (DxfMLeader.AddLeaderLine), Enter ends; under Remove leaders "Select leader to remove or [Add leaders]:" takes the leader line nearest the point within the pick aperture away (No leader line there. where none is), and the last line of a multileader is kept (A multileader keeps at least one leader line.). Each change is a step of the one undo step; on an annotative multileader the line is added or taken out in the context of every scale it is shown at, as AutoCAD 2021 does it, not in the record alone. An arrowhead on the far side of one line of words (right of them, where the leaders meet them on their left) makes a leader of its own, measured in the fonts the presenter reads: its dogleg runs against x and ends a gap past the right end of their ink, the landing a dogleg further on, 234.6589 at 1:50 and 319.3179 at 1:100 for "HELLO" of arial.ttf 0.18 high with a landing of 150 (the words 0.79318 wide for 0.18); where the font is not read the line goes to the first leader. MLEADERALIGN (MLA) takes "Select multileaders:", writes "Current mode: Use current spacing" and asks "Select multileader to align to or [Options]:" and "Specify direction:": the content of each moves with its landing, the arrowheads staying, so that the left middle of its box (the words' box widened by the landing gap each side, the middle of its first line; a block's extents, their middle) lies on the line through that of the one picked along the direction, which is taken from there, whichever side the leaders are on. The words are measured in the drawing's fonts. Options asks "Enter an option [Distribute/make leader segments Parallel/specify Spacing/Use current spacing] :" (the default shows as make segments Parallel or specify Spacing once chosen); the mode is kept for the next run and written as Current mode: Distribute, Make leader lines parallel, Spacing: 20.000000 or Use current spacing. Use current spacing keeps each content's place along the line. specify Spacing ("Specify spacing <0.000000>:") puts the contents a gap apart along it: the one picked stays, the others follow it in the order they stand along the direction, and the gap is measured between their boxes, each the width and height of the words with the landing gap before and after them: words 1.14, 0.06 and 2.34 wide with a landing gap of 0.09 and a spacing of 20 put the landings 21.32 and 20.24 apart, up the page 0.18 and 0.18 for words 0.18 high. On a slanting line the gap is measured along the line, from where the second box just clears the first: slid along the line from the first it is clear once it is past the first's right edge (past its own right edge where the line runs to the left) or past the first's top or bottom, whichever comes first, not by the sum of their reaches. Boxes 16 by 2.5 and 4 by 1 clear each other 3.5355 along a line at 45 degrees (the height decides) and 16 along a level one, and three block contents 16 by 2.5, 4 by 1 and 10 by 5 with a spacing of 5 along a line at 58.9 degrees through the 4 by 1 one picked have the 16 by 2.5 one 7.04 along it from the picked one (2.04 to clear it and 5) and the 10 by 5 one 16.42 (4.38 and 5 further), as AutoCAD 2021 stands them. Distribute asks two points ("Specify first point or [Options]:", "Specify second point:") and puts the left middle of the first content's box on the first point and that of the last one on the second, in the order their left edges stand along the line, the gaps between the boxes in between all the same, measured as for Spacing: those three blocks distributed from (0, 0) to (100, 100) have their left middles at (0, 0), (49.375, 49.375) and (100, 100), from (0, 0) to (200, 0) at 0, 106 and 200. make leader segments Parallel asks only for the multileader to align to and turns each other multileader's leader line about its arrowhead to run the way that one's runs, its length kept, the content and landing moving with its end (arrowheads at (70, 30) and (130, 10), leaders of 58.31 and 31.62, follow a leader at 45 degrees to (111.2311, 71.2311) and (152.3607, 32.3607)). Of several lines to one landing it is the line that lies most nearly along the dogleg's axis that counts, in the one picked and in the others, whichever side of the landing its arrowhead is on (a leader whose dogleg runs along x and whose arrowheads are at 150, 170 and 210 degrees from the landing turns the one at 170), the first of lines alike; the others only follow the landing. Where a content ends up with its arrowhead past the middle of its box the leader is turned to meet it on the other side, the words or the block staying where they are, as AutoCAD 2021 does: TWO from an arrowhead at (30, 0) aligned to a box starting at 10.36 is held at its top right at 10.99 (its ink from 10.45), its dogleg runs against x ending 0.09 past the words, its landing a dogleg further; one that lands to the left of an arrowhead before the middle of its box is held at its top left. Each line of a leader goes to the side of the words its arrowhead is on: a leader of two lines with arrowheads at -30 and 40 and the middle of its box at 17 keeps the line of -30 on the left and sends the line of 40 to a new leader on the right (the next index, its dogleg against x, the landing a dogleg past the words' ink and a landing gap), the words held as they were; with both arrowheads on the other side the leader is turned whole. Only a multileader of one leader is turned or split, its words held at their top left or top right, or a block.

MLEADERCOLLECT (MLC) takes "Select multileaders:" (multileaders of words, other objects and multileaders on a locked layer are not collected: 2 were filtered out, 1 was on a locked layer.; with none left it asks again) and then "Specify collected multileader location or [Vertical/Horizontal/Wrap] :", the point the top left of the group, the option the last chosen kept for the next run. The multileaders stay what they are, each block moved by its extents (attribute definitions not counted) so that the blocks stand in the order they were selected, left to right under Horizontal, top to bottom under Vertical with their lefts on the point, their boxes touching and, in a row, their tops level: three circles of radius 5 collected at (150, 150) have their middles at (155, 145), (165, 145) and (175, 145), a box 20 by 10, a square 8 by 8 and a circle of radius 5 with their tops at 150 and their lefts at 150, 170 and 178. Wrap asks "Specify wrap width or [Number]: <0.000000>" and breaks the row where the next block would not stay short of the width (two blocks 10 wide stand in a row at a width of 20.0001, one to a row at 20, and a width of nought or less puts one to a row), or under Number "Specify number per row <1>:" (a whole number above nought) after that many; the next row's tops are as far down as the tallest block of the row above is high. Only one leader is kept, and every other taken away: the leader lines of the last multileader selected, each leader of it landed as AutoCAD lands a leader on a block, the dogleg's length from the first block's left edge, or from the right edge of the last block of the first row (under Vertical, of the last block, whichever side), as the arrowhead of the leader is nearer that landing or the other (the arrowhead of the last of three circles at x = 163 keeps the leader on the left at 142, at 167 on the right at 188 where the row ends at 180). A last multileader with a leader on each side keeps each at its end; the lines of one leader stay one leader. Typed in AutoCAD's console the point is read shifted by the first multileader's arrowhead; here it is the top left as typed. A block multileader of a different MLEADERSCALE stands by its scaled extents and lands by its scaled dogleg. The whole run is one undo step.

ATTIPEDIT (ATI) asks "Select an attribute:" and edits the one clicked (that of the block drawn nearest the click, as -ATTEDIT takes it; the first of a block given by its handle) in place, in the box over it on the canvas, writing its value as one undo step; a click on the block's own lines says Selected object is not an attribute. An attribute of several lines is not edited here. SPELL (SP) shows the window's Check Spelling dialog, as AutoCAD 2021's: Where to check (Entire drawing, every space; Current space/layout; Selected objects, whose button closes the dialog for Select objects: and shows it again), Start, Not in dictionary, Suggestions with the replacement typed above them, Ignore, Ignore All, Change, Change All (the word changed wherever it comes again), Add to Dictionary, the main dictionary (the built-in English dictionary) and a custom dictionary file. Change with nothing typed takes the first suggestion and with none says No suggestions.. Undo takes back the last answer since Start, its word asked again and its change, Ignore All or Add to Dictionary forgotten. Settings... shows Check Spelling Settings (CadSpellSettings, counted from the next Start): Include Block Attributes (Dimension Text and External References greyed, the presenter checking neither), and Ignore capitalized words, words with mixed cases, words in uppercase and words with numbers (these two on, as before) and words containing punctuation. Nothing is written while the dialog is open: Close writes the words changed, each text one edit of SPELL's one undo step, and appends the words added to the custom dictionary file. The check is a public CadSpellCheck. With no window SPELL is the command line form of Check Spelling: "Select objects or [All/Dictionary]:" takes objects, or Enter or All every TEXT, MTEXT and attribute of the space, and Dictionary "Enter custom dictionary file :", a text file of words one to a line (Cannot read custom dictionary. where it cannot be read; in the window it starts as sample.cus of the settings folder, made by the first Add, and its prompt then reads that file). Each word not in the built-in dictionary (about 90 000 English words of the SCOWL lists in American and British spelling and the drafting terms, see the MTEXT editor's Spell Check in display; the endings -s, -es, -ed, -ing, -ly, -er, -est and 's tried; words in capitals, with a digit or of one letter are passed over, as AutoCAD's settings pass uppercase words and words with numbers) is written with the words nearest it, Not in dictionary: "wrold". Suggestions: world, and "Enter replacement or [Ignore/ignore aLl/Add/Change/Stop] :" takes a replacement typed, Change (the first suggestion), Add (to the custom dictionary and its file), Ignore, ignore all, or Stop. The words changed of a text are written together, the format codes of an MTEXT kept in it, and the whole check is one undo step; Spelling check complete. ends it.

SCALETEXT scales each TEXT, MTEXT and attribute selected about a base point of its own, as AutoCAD 2021's does (its prompts and results probed in the console). "Enter a base point option for scaling [Existing/Left/Center/Middle/Right/TL/TC/TR/ML/MC/MR/BL/BC/BR] :" names it: Existing is the point the text is held by (an MTEXT's attachment point), the others a point of the box the text is drawn in: Left, Center and Right on its baseline, Middle at the middle of its height, TL to BR on its corners (BL, BC and BR the foot of the letters, a third of the height below the baseline in txt.shx). "Specify new model height or [Paper height/Match object/Scale factor] <2.5000>:" then takes a height for every text, the height of a text picked (Match object, "Select a text object with the desired height:"), or a factor (Scale factor, "Specify scale factor or [Reference] <1.0000>:", Reference asking a reference and a new length); Paper height asks the height on the sheet of annotative text and says 1 non-annotative objects ignored of the rest. The base point and the height are the defaults of the next run. A "HELLO" 5 high and 23.33 wide from (10, 10) taken to a height of 10 about Center starts at (-1.67, 10), its centre still on (21.67, 10); about Middle at (10, 7.5); an MTEXT also has its width scaled. It ends with 1 objects changed, one undo step. JUSTIFYTEXT asks "Enter a justification option [Left/Align/Fit/Center/Middle/Right/TL/TC/TR/ML/MC/MR/BL/BC/BR] :" and gives every text that justification without moving it on the page: the text keeps its first point, and is held by the point of its box the option names, Right by the end of its baseline (33.33, 10) for the "HELLO" above, TL by its top left; Align and Fit by the end of the baseline too. An MTEXT is attached by the matching corner of its words (Left, Align and Fit the bottom left, Center the bottom middle, Middle the centre, Right the bottom right), its location moved to that corner. A text justified Middle (BaseMid) is drawn about the middle of its height, as AutoCAD draws it.

TXT2MTXT combines the TEXT and MTEXT selected ("Select objects or [Settings]:") into one MTEXT at the top left of the top text, as high, in the style, on the layer and turned as the first, each text a paragraph of its own from the top down (a text level with another, the left one first, the handle breaking a tie), a backslash and a brace of a TEXT written as their codes, 3 text objects combined into 1 MTEXT.; the originals are erased, all one undo step. Settings asks the four choices in turn, each the default of the next run: "Specify the width of the MTEXT, 0 for no limit <0.0000>:", "Keep each text as a paragraph of its own? [Yes/No] :" (No runs them together by spaces, wrapped at the width), "Erase the original texts? [Yes/No] :" and "Order the texts by position or as selected? [Position/Selection] :". AutoCAD's console has no TXT2MTXT, so the question here is the presenter's own.

FIELD, UPDATEFIELD and the variables FIELDEVAL and FIELDDISPLAY make and keep fields as AutoCAD 2021 does (what a field gives for each format and the FIELD objects written were probed through its console; the console has no FIELD or UPDATEFIELD, so their prompts are the presenter's). A field is evaluated code in the words of a TEXT or an MTEXT, %<\AcVar Date \f "dd/MM/yyyy">%: the date and time (Date, CreateDate, SaveDate), the properties of the drawing (Author, Title, Subject, Keywords, Comments, HyperlinkBase, LastSavedBy, Filename, Filesize, Login), its page setup (PageSetupName, PaperSize, PlotOrientation, PlotDeviceName, PlotStyleTable, PlotScale), a system variable (\AcVar CTAB), a property of an object (\AcObjProp Object(%<\_ObjId 122>%).Area, the object by its handle in decimal: the Area, Center, Radius, Length, Angle, Layer, Color and ObjectName of a line, circle, arc, ellipse, polyline, text, MTEXT, block reference, hatch or region), a formula (\AcExpr 2*3+1, 7) and a DIESEL expression (\AcDiesel $(if,$(>,2,1),yes,no), yes). The format after \f is AutoCAD's: %lu2%pr2 an area of 314.159265 as 314.16, %lu1%pr3 3.142E+02, %lu4%pr0 of 50 inches 4'-2", %lu5%pr2 314 1/4, %ps[A=,mm2] A=314.16mm2, %ct8[0.0001] the value times 0.0001, %th44 600,000.00 of 600000 with %ds44 the comma a point, %zs8 600.000 as 600, %au1%pr2 53.13 degrees as 53d8', %au4%pr2 N 36d52' E, %tc1 upper case (%tc2 lower, %tc3 first capital, %tc4 each word), %fn6 the name of the file and its extension (%fn2 the name, %fn4 the extension, %fn1 the path); a date by its letters, M/d/yyyy h:mm tt as 11/17/2026 3:21 AM. A field that cannot be worked out shows #### and one with nothing to show ---- (the date a drawing was made where it was never saved). FIELD shows the Field dialog (the categories All, Date & Time, Document, Linked, Objects, Other, Plot and SheetSet, the names in each, a preview and the field expression; Select object asks "Select an object:" and shows it again; BlockPlaceholder, NamedObject, LispVariable and Hyperlink are not built; the sheet set fields are described below); OK asks "Specify start point of multiline text [Height/Justify]:" and makes an MTEXT of the field there, one undo step. In the MTEXT editor the Field button of the Insert panel and Ctrl+F show the same dialog and put the field at the caret as one place, shown as the words it came to on a grey ground and written as its code; a double click on a field is Edit Field and puts the new field in its place. A TEXT edited in place shows its fields as their codes, and Ctrl+F puts a code at the caret. Words with a field in them that a TEXTEDIT or the editor ends with make the fields, evaluate them and write the FIELD objects (the ACAD_FIELD dictionary of the extension dictionary, and the drawing's ACAD_FIELDLIST), so that AutoCAD 2021 opens the file with live fields; its console read and saved the fields of a DXF and a DWG of R2004, R2007 and R2018 as the same groups. UPDATEFIELD asks "Select objects:" and evaluates the fields of the TEXTs and MTEXTs selected again, 2 field(s) found. 2 field(s) updated., one undo step: an area changes after the circle does only then, or where FIELDEVAL says. FIELDEVAL (31 at the start, kept in the drawing as a variable of its dictionary) is the bits that update fields on their own: 1 when the drawing is opened, 2 when it is saved, 4 when it is plotted, 8 for eTransmit, 16 on REGEN; a field made in the dialog is evaluated in every one of them, the date too. The fields and formulas of the cells of tables are evaluated with the others, whether or not the drawing's list of fields names them (a drawing written before they were listed, or one AutoCAD saved, where a cell's field is owned by a text of the table's block): the tables of the spaces are looked through. A field travels with the text or attribute it belongs to when that is copied, pasted, or brought in with a layout (LAYOUT Template, New Sheet of a sheet set): the title block's \AcVar and \AcSm attributes of a layout that is not the first of its template keep their fields and update with the others. FIELDDISPLAY (1) draws the box of a text with a field on a light grey ground that is never plotted; 0 draws none. The Contents of Properties are plain words: set there, they take the field out. Convert Field To Text is ConvertFieldToText() of the library. A drawing older than AutoCAD 2004 holds no field: the words the field comes to are written.

The sheet set fields, \AcSm, read a sheet set data file (A12) as AutoCAD 2021 does; every result below was read from AutoCAD's own FIELD objects for a sheet A-101 "Ground floor" in the subset Plans of a set named Tower. A field in a title block is written unbound, %<\AcSm Sheet.Number>%, and means the sheet of the layout it is on, found through the link the drawing keeps to its set (the dictionary AcSheetSetData: the set's file, the drawing's file, the layout's name and handle) and then in the set by the layout's handle, else its name. Sheet has Number (A-101), Title (Ground floor), NumberAndTitle (A-101 - Ground floor; the title alone with no number, T-1 - with a number and no title), Description, Category, RevisionNumber, RevisionDate, IssuePurpose and Name, then the sheet's custom properties (%<\AcSm Sheet.Drawn By>%: the sheet's own value, else the default of the set's definition); Subset has Name (Plans, and #### for a sheet in the set itself) and Description; SheetSet has Name, Description, ProjectNumber, ProjectName, ProjectPhase, ProjectMilestone, then the set's custom properties (%<\AcSm SheetSet.Client>%). The component and the property are read in any letter case. A property with no value shows ----; a name the component does not have, a field on model space and a field in a drawing that is no sheet show ####; and \AcVar CurrentSheetNumber is no variable, which is why the dialog's CurrentSheetNumber writes \AcSm Sheet.Number. The bound form AutoCAD writes into a sheet once it is made, \AcSm Database("..."Tower.dst").SheetSet("g...").Component("g...").Number, names the set's file, the set and the component by their IDs, so it reads the same sheet from any drawing (.SheetSet("g...").Client reads the set, .Component("g...").Name a subset). A placeholder, \AcSm ?Sheet.Number or ?View.Title, shows its own name, SheetNumber or ViewTitle, until a block that holds it is bound. The format \f "%tc1" changes the case of the words (Ground floor as GROUND FLOOR). Where the set or the sheet cannot be reached (the file is gone or moved away from its sheets) a field keeps the words it showed, and one never evaluated shows ####. The set is looked for where the code and the link say, then as far from the drawing as the link says it was when it was written, so a set moved with its sheets is found. An unbound field in an attribute is evaluated again with the other fields of the drawing (on open, save, regen and plot, as FIELDEVAL says), so that a sheet renumbered in the set shows its new number. Making or importing a sheet binds the unbound fields of its layout to it (CadSheetSetFields.Bind), so that AutoCAD shows the right words in a sheet made here. In the Field dialog the SheetSet category has SheetSet (a tree of the set, its subsets, sheets and views, the properties of the one chosen, and a case; it writes the bound form), SheetSetPlaceholder (its nine types: SheetNumberAndTitle, SheetTitle, SheetNumber, SheetDescription, SheetCustom, ViewNumberAndTitle, ViewTitle, ViewNumber and ViewportScale) and the 17 CurrentSheet names (CurrentSheetNumber, CurrentSheetTitle, CurrentSheetNumberAndTitle, CurrentSheetDescription, CurrentSheetCategory, CurrentSheetRevisionNumber, CurrentSheetRevisionDate, CurrentSheetIssuePurpose, CurrentSheetSubSet, CurrentSheetCustom, CurrentSheetSet, CurrentSheetSetDescription, CurrentSheetSetCustom and the four CurrentSheetSetProject names), each the unbound code of the layout shown, with the case of the words and, for the custom ones, the property named from a list. The options area of the dialog scrolls, so the dialog keeps its size.

ATTDISP asks "Enter attribute visibility setting [Normal/ON/OFF] :": Normal shows the attributes that are not invisible, ON all of them and OFF none; a change says Regenerating model., draws every space again and is one undo step. -ATTEDIT answered No to "Edit attributes one at a time?" edits the values together: "Performing global editing of attribute values.", "Edit only attributes visible on screen? [Yes/No] :" (No says Drawing must be regenerated afterwards. and takes the attributes of every INSERT of the model space and layouts, invisible ones too; Yes asks "Select Attributes:" and takes those the display shows), the block, tag and value specifications (* and ?), 6 attributes selected., "Enter string to change:" and "Enter new string:". Every occurrence of the string, upper and lower case kept apart, is replaced in the value of each attribute selected: ABC taken to xyz makes "HELLO ABC abc ABC" "HELLO xyz abc xyz"; an empty string to change puts the new one at the front of every value, an empty new string takes the old one out. Each INSERT changed is one edit of the command's one undo step.

IMAGEADJUST (IAD) and -IMAGEADJUST set the brightness, contrast and fade of images (groups 281, 282 and 283 of the IMAGE), -IMAGEADJUST on the command line as AutoCAD 2021's -IMAGEADJUST asks it, IMAGEADJUST too where no window shows its dialog. "Select image(s):" takes the images (a line picked with them is not counted, and with no image the command ends), "Enter image option [Contrast/Fade/Brightness] :" the option and "Enter brightness value (0-100) <50>:" its value, a whole number from 0 to 100; 150, -5, 30.5 and abc are each refused with Value must be an integer between 0 and 100. and asked again. Enter takes the value offered, which is the image's own where one is selected and the factory's (50 for brightness and contrast, 0 for fade) where several are, so that Enter then gives them all the factory's: two images of brightness 70 and 50 selected together offer 50 and both become 50. An image on a locked layer is left as it is, The image is on a locked layer. The change is one undo step, and the canvas draws the picture lighter or darker as it was already drawn. A bitonal picture (one bit a pixel, read from the picture's file where that is found) is refused, Bitonal images cannot be adjusted., said once for all of them as AutoCAD 2021's console says it: where only bitonal images are selected the command ends there, and where others are selected with them the option and the value are asked and given to the others alone. A picture not found cannot be told bitonal, and is adjusted. ATTEXT (DDATTEXT) and -ATTEXT write the attributes of the blocks to a file, on the command line as AutoCAD 2021's console asks it (-ATTEXT, and ATTEXT where no window shows its dialog): "Enter extraction type or enable object selection [Cdf/Sdf/Dxf/Objects] :", for Objects "Select objects:" and "Enter attribute extraction type [Cdf/Sdf/Dxf] :", then for a comma-delimited (CDF) or space-delimited (SDF) file "Enter template file name:" (the last one named is offered; .txt is added to a name with no extension; "names.txt": Can't find file. asks again) and for every kind "Enter extract file name :" (.txt, or .dxx for a DXF extract, added to a name with no extension, the folder of the drawing the home of one with no folder, a file there already written over, and the template refused as the extract file, The template and extract files cannot be the same.). The template has a line for each field, its name and its format, C or N then three figures of width and three of decimals: NAME C012000 is the text of the attribute NAME in up to 12 characters, PRICE N008002 its number in up to 8 with 2 decimals, and the block fields BL:LEVEL (1, as only the blocks of a space are read), BL:NAME, BL:X, BL:Y, BL:Z, BL:NUMBER (the place of the block among the block references read, those with no attribute counted), BL:HANDLE, BL:LAYER, BL:ORIENT (in degrees), BL:XSCALE, BL:YSCALE, BL:ZSCALE and BL:XEXTRUDE, BL:YEXTRUDE, BL:ZEXTRUDE (the normal); letters of either case are the same, and C:DELIM and C:QUOTE lines (C:DELIM ;) give a CDF file its own delimiter and quote, comma and apostrophe where it gives none. A line that is no field, a field twice or no field at all is told, ** Invalid field specification: and the line, ** Duplicate field specification: and the line, or ** No Attribute fields specified., and nothing is written. A tag the block has not gives blank text or nought. The blocks that have attributes are written in the order of the drawing, model space and then each layout (or the objects selected), one record each: with the fields of drawing parts, a block ITEM at (10, 20) with NAME Bolt M8 and PRICE 1.5 and a template of BL:NAME C008000, BL:X N007002, NAME C012000, PRICE N008002 is 'ITEM', 10.00,'Bolt M8', 1.50 in a CDF file, where a number keeps a place for its sign, and ITEM 10.00Bolt M8 1.50 in an SDF file, text to the left and numbers to the right of their widths. A value too long for its field is cut to it and told once a record, ** Field overflow in record 1; a value of a numeric field that is no number is told, ** Bad numeric value for field PRICE, record 3, and written as nought; 5 records in extract file. ends it. A DXF extract holds each block as an INSERT with its layer, name, insertion point, and the scales, turn and normal that are not 1, 0 and Z, its ATTRIBs (value, tag, flags) and a SEQEND, then EOF, 20 objects in extract file. for 5 blocks of 2 attributes. Compared with AutoCAD 2021's console the files are the same record for record, the handles apart; the file is UTF-8 without a mark where AutoCAD writes the system's code page, the SEQEND carries no handle, a quote inside a CDF value is written as it is, and a block nested in another is not read, as AutoCAD does not. CTABLESTYLE (CT) is the table style new tables take: "Enter new value for CTABLESTYLE <"Standard">:" makes the style of that name current, one undo step, and a name of no style says Cannot set CTABLESTYLE to that value., as CMLEADERSTYLE does.

In the window, IMAGEADJUST shows the Image Adjust dialog once the images are selected: Brightness, Contrast and Fade, each a slider and a box from 0 to 100 (150 is kept as 100), a preview of the first image's picture adjusted as the canvas draws it (contrast about the middle, brightness, then fade towards black; "No picture found" where its file is not found), and Reset to 50, 50 and 0. It starts at the image's own values where one is selected and at 50, 50 and 0 where several are; OK gives every image not on a locked layer the three values, one undo step named IMAGEADJUST. ATTEXT shows the classic Attribute Extraction dialog: File Format (CDF, SDF or DXX, the output file's extension following), Select Objects (the dialog closes, Select objects: is asked and it comes back with Number found: 2; none selected is the whole drawing), Template File (greyed for DXX) and Output File, the drawing's name with .txt to start with. OK refuses a CDF or SDF extract with no template, then writes the extract as -ATTEXT does, a template not there said "missing.txt": Can't find file. and nothing written.

Annotative objects

A TEXT, an MTEXT, an attribute definition, a hatch and a multileader are made annotative as AutoCAD 2021 makes them (DxfDBObject.Annotative); the palette's Annotative row (Misc, Yes or No) sets it for those kinds and for a linear, aligned, radius, jogged radius, diameter, angular, arc length or ordinate dimension (its words where they were put or turned or not), with Annotation scale, read only, listing the scales the object is shown at (1:1, 1:50); an INSERT, a leader, a tolerance and a dimension of another kind show the row read only. -OBJECTSCALE asks Select annotative objects:, Enter an option [Add/Delete/?] <Add>: and Enter named scale to add or [?] <1:50>: (the annotation scale of the space is offered), answers 1 object updated to support annotation scale <1:100>. or 1 object scale removed., and asks the next scale, with no default, until Enter; a scale the drawing's list has not says Scale 1:7 not found.; Delete of a scale the object is not shown at, or of its last, says 0 objects scale removed., 1 object doesn't support annotation scale <1:50>. and 1 objects cannot remove scale., as AutoCAD 2021 does; the whole command is one undo step. AIOBJECTSCALEADD and AIOBJECTSCALEREMOVE take the objects and add the current scale to them or take it from them, answering as -OBJECTSCALE does. OBJECTSCALE takes the annotative objects (No annotative objects found. where none is) and shows the window's Annotation Object Scale dialog, as AutoCAD 2021's: the Object Scale List in the order of the drawing's list, with the paper and drawing units of the scale picked, and List all scales for selected objects or List scales common to all selected objects only. Three texts at 1:1 and 1:50, at 1:50, and at 1:50 and 1:100 list 1:1 (on 1 of 3), 1:50 and 1:100 (on 1 of 3), or 1:50 alone. Delete takes the scale picked from the objects shown at it, greyed where an object would be left with none (1:50 here, the second text's only scale); Add… shows Add Scales to Object, the drawing's scales the list does not show, several picked at once. OK gives every object each scale added and takes each scale deleted, one undo step named OBJECTSCALE; Cancel changes nothing. The request is a public CadObjectScaleRequest; with no window OBJECTSCALE asks -OBJECTSCALE's option once the objects are taken. ANNOALLVISIBLE (0 or 1) is the drawing's variable of that name. TEXT and MTEXT drawn in an annotative text style are annotative: the height asked is the sheet's, and the text is that over the annotation scale high (2.5 at 1:50 is 125). The Annotative box of the Text Style dialog (CadTextStyleSettings.Annotative, the style's extended data AcadAnnotative, live in a drawing of AutoCAD 2007 or later) makes the style so, and the Annotative button of the Style panel of the MTEXT editor makes an MTEXT being made annotative or not, over what its style says, ticked at first for an annotative style; an MTEXT already made keeps its state, its button grey saying that Properties, AIOBJECTSCALEADD and OBJECTSCALE change it. The Edit Drawing Scales list is given the scale an object is first made annotative at where it has none.

-STYLE asks Enter name of text style or [?] <Standard>:, Specify font name or font filename (for SHX) <txt>:, then Specify height of text or [Annotative] <0.0000>:, the width factor, the obliquing angle, backwards, upside-down and, for an SHX font, Vertical? [Yes/No] <No>:. A new style starts from the defaults, txt with a height of 0 and a width of 1, whatever the current style is; an existing one offers its own font file, <txt.shx>, and says Existing style. (and Full font name = Arial for a TrueType font). A font typed with no extension is the SHX file of AutoCAD's own names (romans is romans.shx, txt is txt.shx; the TrueType files of the same names that Windows may hold are not taken), else a TrueType family of that exact name (Arial), else an SHX file of the name typed (nosuch is nosuch.shx, drawn in the presenter's own font where the drawing's font folders hold none). Annotative at the height asks Create annotative text style [Yes/No] <Yes>:, for Yes Match text orientation to layout? [Yes/No] <No>: (asked, not kept), and then the height again; the style has the extended data AcadAnnotative, and No adds nothing.

A dimension drawn by an annotative dimension style (the Annotative box of the Fit tab in the Dimension Style Manager, which is the style's extended data AcadAnnotative, written by Modify and New and copied by Start With) is annotative at the annotation scale of its space, as AutoCAD 2021 draws it: its DIMSCALE is that of the scale (50 at 1:50, 1 in a layout), whatever the header says, written as no override, and its arrowheads, text and gaps are the style's paper sizes times it (0.18 is 9 at 1:50). Its record holds the picture of its default scale and a context of its own for each scale it is shown at, which names a block (*D1, *D2) laid out at that scale again by the builders that draw a dimension afresh and the middle of its words there: a DIMLINEAR of 100 at 1:50 has its arrows 9 long inside its extension lines and the words between them, and at 1:100 arrows 18 long, the dimension line running on 18 past the extension line and the words out beyond it. A dimension whose style is not annotative is made annotative by the palette's row as AutoCAD 2021 does: DIMSCALE written as an override of 0 and the gap, the centre mark, the extension offset and extension, the arrowhead and the text as overrides of what they were drawn at over the scale (0.18 at 1:50 becomes 0.0036), so that its picture stays. -OBJECTSCALE adds a picture to a dimension, drawing it again from its variables after a style change (every picture, each at its own scale), and deleting the default scale makes the next the default, the record taking its block and the middle of its words and the block of the deleted scale going. A multileader drawn in an annotative multileader style is annotative at the annotation scale too (its scale 50 at 1:50), and at a second scale its context data is laid out again (text 0.2 high at 1:50 is 0.4 at 1:100, the dogleg and the gap doubled; a multileader of any number of leaders, or one holding a block, is laid out as AutoCAD 2021 lays it out too, see the DXF guide). An arc length dimension's context is an angular one with the point of its arc, a jogged radius's holds the chord point, the centre it is measured from and the jog (294 of 0, its words being put), and a dimension whose words DIMTEDIT moved or turned writes 294 (0 where moved) and 140 (the angle, in radians) in each context, the words at the place they were put at every scale: a DIMLINEAR of 100 whose words stand at (70, 350) has them there at 1:100, the arrowheads, 18 long, outside the extension lines. The points of every context follow the record when its dimension line or words are edited. Breaks (DIMBREAK) are kept in each picture: a break between two points at the same two points, one at an object as wide as the break size over the scale makes it (0.125 is 6.25 at 1:50 and 12.5 at 1:100); an angular dimension of an annotative style carries DSTYLE {40 0.0}; the arc point of an angular dimension (two lines or three points) is written in each context as AutoCAD 2021 writes it, a third of the way round the angle where the words fit between the extension lines and two thirds where they stand outside, so an angle of 45 degrees with its arc 80 out has it at 15 degrees at 1:50 and at 30 degrees at 1:100 (the arc put elsewhere by a grip stays as it is). An INSERT of an annotative block made by -INSERT is shown at CANNOSCALE from the start, as AutoCAD 2021 does: its factors 50 for 1 at 1:50, a context of 1:50, and each attribute a context at its point. A HATCH made by the Hatch dialog or HATCHEDIT with its Annotative box ticked is annotative as -HATCH ANnotative makes it; HATCHEDIT laying the pattern again of an annotative hatch gives it back the scales it had. ANNOAUTOSCALE (-4 to 4, kept by the presenter, -4 by default) adds the scale CANNOSCALE is set to to the annotative objects of model space, as AutoCAD 2021 does when it is positive: 1 to those on layers that are on, thawed and not locked, 2 to those on layers that are on and thawed (locked ones too), 3 to those on layers that are not locked (off or frozen ones too) and 4 to all of them. Delete takes a scale from an object and the next context becomes its default; the next context added is named one more than the highest number the object has held (after *A2 was deleted, *A3).

The display draws an annotative TEXT, MTEXT or hatch of a space at the annotation scale of the space: CANNOSCALE in model space, 1:1 in a layout, and in a viewport the scale of the viewport where the list has it. A text 2.5 high on the sheet is 2.5 high at 1:1 and 125 at 1:50; an MTEXT's height and width and a hatch's pattern lines are multiplied likewise. An object that is not shown at the scale is not drawn when ANNOALLVISIBLE is 0, and drawn as its default context says when it is 1. The objects of a block are drawn as they are read; an INSERT of an annotative block that stands in the space is drawn at the scale of the space, its block and its attributes multiplied by the default's scale over that one about its point (a block 10 long inserted at 1:50 with factor 50 is 1000 long at 1:100 with factor 100, an attribute 3 above its point is 6 above it). An annotative dimension is drawn by the picture of the scale of the space, and a multileader by the context data of it.

Aliases and keys

CadShortcuts holds the aliases and the keys as data. The defaults are AutoCAD's: the 250 aliases of AutoCAD 2021's acad.pgp for the commands the presenter has (DXFOUT is a command of its own) and the four digits of the maintainer's (1 LAYISO, 2 LAYERP, 22 LAYON, 3 LAYOFF), 254 in all, old names as DDMODIFY PROPERTIES among them (DTEXT is a command of its own that runs TEXT without writing its name, as AutoCAD 2021's does) (M MOVE, CO COPY, E ERASE, L LINE, PL PLINE, C CIRCLE, Z ZOOM, LA LAYER, DLI DIMLINEAR, MV MVIEW, MS MSPACE, PS PSPACE, BE BEDIT, BS BSAVE, BC BCLOSE, and the rest) and 25 keys (F2 TEXTSCR, F3 OSNAP, F7 GRID, F8 ORTHO, F9 SNAP, F10 POLAR, F11 OTRACK, F12 DYN, Delete ERASE, Ctrl+Z U, Ctrl+Y REDO, Ctrl+S QSAVE, Ctrl+1 PROPERTIES (shows or hides Properties), Ctrl+2 DRAWINGS (shows or hides the Drawings list), Ctrl+3 RIBBON (shows or hides the ribbon), Ctrl+A SELECTALL, Ctrl+C COPYCLIP, Ctrl+X CUTCLIP, Ctrl+V PASTECLIP, Ctrl+Shift+C COPYBASE, Ctrl+Shift+V PASTEBLOCK, Ctrl+P PLOT, Ctrl+Shift+A PICKSTYLE, Ctrl+W SELECTIONCYCLING, Ctrl+Shift+P QPMODE (switches the Quick Properties panel)). A registry's Shortcuts is replaced, from global settings, by another set; letters of either case are the same, and a name wins over an alias of the same letters. A settings file written before an alias joined the defaults gets it once: the file lists the default aliases it has seen (knownDefaultAliases, beside knownDefaultKeys), and one that is not on the list is added when the file has no alias of that name, so that an old file read now also has 1, 2, 22 and 3, and an alias of the user's own with such a name, or one he cleared, is never overwritten or put back.

System variables

SETVAR asks as AutoCAD 2021 does, Enter variable name or [?] <FILLETRAD>: offering the variable named last, then Enter new value for FILLETRAD <10.0000>:; a variable's name typed alone, or an alias of it (LTS), asks the same where no command has the name. ? lists those a pattern of wildcards matches, CHAMFER? giving CHAMFERA and CHAMFERB with their values. Enter keeps a value; a whole number out of range is refused in AutoCAD's words and asked again, SORTENTS 200 saying Requires an integer between 0 and 127., and a real nought where it must be above nought says Value must be positive and nonzero.; a variable read only says its value, EXTMIN = 0.0000,0.0000,0.0000 (read only). Each one is read and set where the presenter keeps it, listed in CadCommandRegistry.Variables:

Kept in Variables A change
the header of the drawing, written as AutoCAD writes it CLAYER, CECOLOR, CELTYPE, CELWEIGHT, CETRANSPARENCY, CELTSCALE, LTSCALE, PSLTSCALE, MSLTSCALE, DIMSCALE, DIMASSOC, CMLEADERSTYLE, CTABLESTYLE, MLEADERSCALE, TEXTSIZE, TEXTSTYLE, FILLETRAD, CHAMFERA, CHAMFERB, PDMODE, PDSIZE, MIRRTEXT, SORTENTS, IMAGEFRAME, WIPEOUTFRAME, XCLIPFRAME, CANNOSCALE, INSBASE, LIMMIN, LIMMAX one undo step
the document or the session NOMUTT (0 or 1; AutoCAD's 1 mutes the prompts of a routine's command, which the presenter does not: the value is kept, and TE's (setvar 'nomutt 1) runs), PICKSTYLE, SELECTIONCYCLING, SELECTSIMILARMODE, COPYMODE, SHOWPAGESETUPFORNEWLAYOUTS, PICKFIRST, PICKADD, ATTREQ, ATTDIA, BINDTYPE, FILEDIA, CMDDIA, PDFSHX, PEDITACCEPT, PLINETYPE, DIMCONTINUEMODE, REVCLOUDAPPROXARCLEN, REVCLOUDARCVARIANCE, REVCLOUDCREATEMODE, OFFSETDIST, OLEFRAME, OLEHIDE, OLEQUALITY at once, no undo step
the window: the status bar, the snaps and Global settings OSMODE, POLARANG, POLARMODE, POLARADDANG, POLARDIST, SNAPTYPE, GRIDSTYLE, SNAPGRIDLEGACY, AUTOSNAP, DYNMODE, PICKBOX, GRIPSIZE, GRIPMULTIFUNCTIONAL, APERTURE, ZOOMWHEEL, TABLEINDICATOR, GRIPDYNCOLOR, SMALLTEXTBARS (OpenCAD2D's own, ON or OFF) at once, no undo step; kept in the settings file
the window's toggles and snap of the drawing shown ORTHOMODE, SNAPMODE, GRIDMODE, SNAPUNIT, GRIDUNIT, GRIDDISPLAY, SNAPBASE, SNAPANG, GRIDMAJOR, SNAPSTYL, SNAPISOPAIR written into the drawing, as AutoCAD saves them there, and one undo step that keeps no copy of the drawing (see below)
the window's lineweight toggle LWDISPLAY at once, no undo step; written into the drawing
read only DIMSTYLE, EXTMIN, EXTMAX, UCSNAME, UCSORG, DWGNAME, DWGPREFIX, DATE, CDATE, TDCREATE, TDUCREATE, TDUPDATE, TDUUPDATE, TDINDWG, TDUSRTIMER
the header of the drawing, too LUNITS, LUPREC, AUNITS, AUPREC, ANGBASE, ANGDIR, INSUNITS, MEASUREMENT, UNITMODE, PLINEWID, PLINEGEN, FILLMODE, ELEVATION, THICKNESS, LIMCHECK, SPLFRAME, QTEXTMODE, ATTMODE, SPLINETYPE, SPLINESEGS, USERI1 to USERI5, USERR1 to USERR5, SKETCHINC one undo step
the document or the session, too HPNAME, HPSCALE, HPANG, HPLAYER, HPASSOC, HPDOUBLE, HPGAPTOL, HPISLANDDETECTION, HPORIGINMODE, HPDLGMODE, HPBOUNDRETAIN (the hatch settings), DIMLAYER, TEXTLAYER, CIRCLERAD, POLYSIDES, TRIMEXTENDMODE, CMDECHO, EXPERT, HIGHLIGHT, PICKAUTO, PICKDRAG, OSNAPZ, ARRAYASSOCIATIVITY, LASTPOINT, SKPOLY, SKTOLERANCE, USRTIMER at once, no undo step
the window's Global settings, too SAVETIME, ZOOMFACTOR, ISAVEBAK (1, the start, keeps the file QSAVE, SAVEAS and SAVE replace as plan.bak; 0 keeps none) at once, no undo step; kept in the settings file
read only, too DISTANCE, AREA, PERIMETER

The units variables are the header's and what UNITS sets, so that LUPREC 2 writes the points of Recent Input to two places; LUNITS takes 1 to 5, LUPREC and AUPREC 0 to 8, AUNITS 0 to 4, INSUNITS 0 to 24 (a drawing of R12 has no $INSUNITS or $MEASUREMENT and says so) and ANGBASE any angle, kept from 0 up to a turn and taken as typed, -5 being 355, whatever ANGBASE and ANGDIR are. PLINEWID is the width PLINE starts at (Current line-width is 5.0000), a negative one refused with Cannot set PLINEWID to that value. and not asked again; PLINEGEN 1 gives the polylines PLINE, RECTANG and POLYGON make the linetype generation of the whole polyline. FILLMODE 0 draws a SOLID, a wide polyline and a solid or gradient hatch by its outline, every space drawn again; 1 fills them. HPNAME takes SOLID, a gradient (GR_LINEAR), _USER or U and any pattern of the presenter's set, xyz being Cannot set HPNAME to that value.; HPSCALE above nought, HPANG, HPLAYER (. for the current layer, any name taken, and a layer the drawing has not leaves the hatch on the current one), HPASSOC, HPDOUBLE, HPGAPTOL 0 to 5000, HPISLANDDETECTION 0 to 2 (the island style, 1 Outer at the start) and HPORIGINMODE 0 to 5 are the settings the next HATCH makes its hatch with, which the hatch dialog and -HATCH hold too. DIMLAYER is the layer new dimensions go on (. for the current layer), the same DIM's LAyer sets. TEXTLAYER is the layer new text goes on (. for the current layer): TEXT and MTEXT put the text on it where the drawing has that layer, whatever layer is current, and the Text Layer box of Annotate sets it. CETRANSPARENCY, the transparency of new objects, takes ByLayer, ByBlock or a whole number from 0, solid, to 90 per cent, one undo step, and says Requires ByLayer, ByBlock or an integer between 0 and 90. and asks again for anything else; in a drawing of R2004 or later each new object carries it. CIRCLERAD is the radius CIRCLE offers (Specify radius of circle or [Diameter] <12.5000>:), POLYSIDES the number of sides POLYGON offers, 3 to 1024, and TRIMEXTENDMODE 1 Quick or 0 Standard the mode TRIM and EXTEND start in. SAVETIME is the autosave interval in minutes, 0 to 600, Global settings keeping 240 at most, and ZOOMFACTOR, 3 to 100, the step of a notch of the wheel, 1 + ZOOMFACTOR / 120: 60 is the 1.5 Global settings starts at. DISTANCE, AREA and PERIMETER give the last measure DIST and AREA made (AREA and DIST are commands too, so SETVAR AREA reads the variable), and LASTPOINT the last point in the UCS, which LASTPOINT typed sets. VIEWCTR is the centre of the view in the UCS (the origin where the session has no window, until a ZOOM or a PAN moves the view of its own), UNDOCTL the bits of UNDO's state as AutoCAD adds them (1 on, 2 One, 4 Auto, 8 a group open, 16 Combine, 32 Layer; 0 for None), PROGRAM "acad" and PLATFORM "Microsoft Windows NT Version 6.2 (x64)", as AutoCAD 2021's console gives them, all four read-only, and ERRNO a whole number of -32768 to 32767 that a routine may set, 0 at the start. CMDECHO, EXPERT, HIGHLIGHT, PICKAUTO, PICKDRAG, OSNAPZ, ARRAYASSOCIATIVITY, ELEVATION, THICKNESS, MEASUREMENT, UNITMODE, LIMCHECK, SPLFRAME, QTEXTMODE, ATTMODE, SPLINETYPE, SPLINESEGS and the USERI and USERR variables keep their value, in the header for the drawing's and for the session for the rest, and nothing in the presenter reads it yet (ARRAYASSOCIATIVITY does not make the arrays associative: ASsociative asks at each array): the presenter draws in the plane, has no QTEXT, no limits check and no drawn selection highlight to turn off, and it takes a window by a drag or by two clicks whatever PICKDRAG says. SPLINETYPE takes only 5 and 6 (AutoCAD takes any number 0 to 32767) and SPLINESEGS any but 0. ' before a variable's name ('PDMODE) at a prompt asks it inside the command; see the app.

FILLETRAD 5 writes $FILLETRAD 40 5 into the header and U takes it back to 10. OSMODE 4133 ticks Endpoint, Center, Intersection and Extension, and 16391 ticks Endpoint, Midpoint and Center with OSNAP off. With no window, ORTHOMODE and LWDISPLAY are the drawing's $ORTHOMODE and $LWDISPLAY; the window answers them, and SNAPMODE and GRIDMODE, with the toggles of the drawing shown, and writes each switched into that drawing: ORTHO into $ORTHOMODE, the lineweights into $LWDISPLAY, SNAP and GRID into its *Active viewport, as AutoCAD saves them with the drawing (see the status bar in the app); in a layout's paper space the snap and grid variables are the layout's own, kept in the viewport 1 of its sheet, and through a viewport that viewport's, as AutoCAD 2021 keeps them. A point typed at SETVAR leaves the last point (LASTPOINT) where it was.

A snap or grid variable changed is an undo step that keeps no copy of the drawing: it holds the viewport's snap and grid as they were and as they became, and U and REDO write those back, reading the drawing again no more than ZOOM does (an F7 pressed and undone in a drawing of 100 000 lines takes 0.3 ms and 0.2 ms and keeps a few kilobytes, where a step that keeps the drawing keeps 20 MB and takes 205 ms to undo). AutoCAD 2021's console, probed, undoes them so: GRID, SNAP, SETVAR and a variable typed alone (GRIDMODE, SNAPUNIT, GRIDUNIT) are a step each, named by the command, so that after a line, GRID 50 and SNAP 25 the first U takes SNAP 25 back, the second GRID 50 and the third the line; F7, F9, F8 and F5 pressed at the prompt, and the status bar's SNAP, GRID and ORTHO buttons, join the step of the command before them, one U for both under that command's name (F7 after a LINE is taken back with the line, and a second line drawn after it leaves the grid as F7 left it when U takes that line back), and are a step of their own where no command came before them. A drawing counts as changed after one, as AutoCAD's does (DBMOD 4). The Drafting Settings dialog's OK is one step, DSETTINGS. LWDISPLAY and the variables kept in the settings file (OSMODE, GRIDSTYLE, ...) are still not steps. PICKFIRST 0 makes a command that works on objects ask Select objects: whatever is selected before it: with a line selected, MOVE asks for objects rather than its base point. PICKADD 0 makes what is picked last the selection, Shift adding to it, at Select objects: and on the canvas: a click on line A, then on line B, leaves B alone; 1, the default, and 2 add, Shift taking out. ATTREQ 0 makes INSERT give each attribute its default without asking; ATTDIA 1, 0 by default, makes it ask them in the Edit Attributes dialog where there is a window. DYNMODE keeps -3 to 3, negative while DYN is off, so that F12 brings the same value back; the one box of dynamic input shows both pointer and dimensional input whichever of 1 to 3 is set. GRIPDYNCOLOR, the colour of a dynamic block's custom grips, takes an index of AutoCAD's colours from 1 to 255, 140 (#00BFFF) by default as AutoCAD 2021 starts; AutoCAD keeps it in the registry and writes none into a drawing (probe GhDb1), and the window keeps it in the settings file ("gripDynamicColor": 140). GRIPSIZE, 1 to 255 and 5 by default, is the size of the grips ("gripSize": 5): a plain grip is a square 2 × size + 5 pixels across, 15 at 5 and 25 at 10 (see Hover menus). GRIPMULTIFUNCTIONAL, 0 to 3 and 3 by default ("gripMultifunctional": 3), turns the hover menu of a multi-functional grip on with its bit 2, and its bit 1 turns on Ctrl cycling (see Hover menus): 3 has both, 2 the menu alone, 1 Ctrl alone, 0 neither. The window keeps PICKBOX, GRIPSIZE, APERTURE, LWDISPLAY and POLARANG in the settings file as it keeps DYN and the snaps, POLARANG 30 written "polarAngle": 30, and POLARMODE too: its 2 runs the lines of object snap tracking on every polar angle (0, AutoCAD's default, runs them level and upright alone), and its 8 acquires a point only with Shift held; its 1 counts the polar angles from the last segment drawn, a line or the end of an arc (from the X axis while none is drawn), and its 4 holds the additional angles of POLARADDANG as they are, not their multiples. POLARADDANG takes up to ten angles parted by semicolons, read in the drawing's angle units and kept from 0 up to 360 as the drawing writes angles: 33.5;-10 is kept as 33.50;350.00 at AUPREC 2, . empties it, and 10;;20 gets "Cannot set POLARADDANG to that value."; the settings file keeps it as "polarAddedAngles". The Polar Tracking tab of Drafting Settings sets them too: Additional angles with its list, New opening a row at its end that Enter or a click elsewhere keeps where it reads as an angle ("Not an angle." otherwise, the row kept open) and Esc drops, Delete, ten at most; Track orthogonally only or using all polar angle settings; Absolute or Relative to last segment; Apply writes POLARMODE with its 8 kept. While polar tracking holds the cursor, with DYN off, a dotted path runs from the base point through it to the edge of the view and the tip by the cursor says Polar: 183.8478 < 45°, the distance in LUNITS and LUPREC and the angle in AUNITS and AUPREC from the X axis of the UCS, or Relative Polar: 100.0000 < 90°, counted from the last segment, where POLARMODE 1 counts from one. AUTOSNAP's bits are AutoCAD's: 1 the marker, 2 the snap's name by the cursor, 4 the magnet (off, the rubber band stays at the cursor while the marker shows the snap, which a click still takes), 8 POLAR, 16 OTRACK, 32 the tip of ortho, polar and tracking; the marker, tips and magnet are kept for the session of the window. FILEDIA 0 makes PNGOUT, JPGOUT, BMPOUT and the window's SAVEAS ask for the file on the command line, as in a script; CMDDIA 0 makes PLOT ask -PLOT's prompts. Both are kept by the session, as ATTREQ. ATTDIA 1 makes INSERT ask the attribute values in the Edit Attributes dialog, as ATTREQ 1 asks them. CECOLOR, CELTYPE and LTSCALE typed alone ask their own prompts, as before (Enter new object color [Truecolor/COlorbook] <BYLAYER>:); SETVAR asks them in its words, a text in quotes, <"ByLayer">. A window adds its own with registry.AddVariable(CadSystemVariable.Integer(...)) or CadSystemVariable.Real(...).

User coordinate systems

UCS sets the system points are typed in: give an origin, then a point on the X axis, or type Z and an angle to turn it. A point typed as 10,20 is then measured from that origin along its axes, and *10,20 is the world point. The grid, ortho and polar tracking run along its axes, the crosshair and the icon turn with it, and the status bar and dynamic input show its coordinates. In a UCS turned a quarter turn, @100<0 draws a line 100 long up the world's Y. Objects are still saved in world coordinates. UCS NAmed Save keeps a system under a name in the drawing's UCS table, and Restore makes it current again; UCS Previous goes back through the last ten, every UCS option keeping the system it leaves, UCS World in the World UCS and Save and Restore of the current system included (UCS World twice and Previous gives World, as in AutoCAD), and with none left says No previous coordinate system saved.. A UCS change is an undo step, as in AutoCAD 2021: U (and UNDO 1) takes the last UCS command back, the current system and the ten kept for Previous together, and REDO puts both again; after a 3point UCS, then World, then U, REDO and U, UCS Previous gives World. UCS NAmed Save, Delete and the rename of a UCS undo too, the name leaving the UCS table or coming back; inside a command or a routine's step the change goes with that step. A drawing whose UCS changes are all undone is not modified. A word UCS does not know is Point or option keyword required. and the origin is asked again, and E, AutoCAD 2021's hidden Entity, is OBject. UCSICON turns the icon on or off and puts it at the origin or at the lower left, PLAN zooms to extents, and UCSMAN (UC, DDUCS) opens the UCS dialog as AutoCAD 2021's, 424 by 361 pixels, on the tab used last. Named UCSs lists Unnamed (only while the current system has no name and is not the world), World, Previous, then the named systems A to Z, letters of either case alike, with a black triangle on the current one and "Current UCS:" above; Set Current (or a double click) moves both at once, and a system not parallel to the view is refused with the line UCS gives, as is Previous with none before it (No previous coordinate system saved.). Rename edits the name in place (F2, a second click on the selected row, or the menu); renaming Unnamed saves the current system under the name. A name that is empty, has one of \ < > / ? " : ; * | , = , or is taken (World, Previous and Unnamed too, letters of either case alike) is refused with AutoCAD's message ("UCS - Text Length", "UCS - Unsupported Characters", "UCS - Name Already Exists") and the row goes back to editing. Delete takes a row out with no question, and a current system of that name goes on as Unnamed. Details shows the name, origin and three axes to four decimals relative to World, Unnamed or a named system: Org100 (turned 45 degrees at the world's (35.3553, 106.0660)) is origin 35.3553, 106.0660, 0 and X axis 0.7071, 0.7071, 0 relative to World, and 100, 50, 0 and 1, 0, 0 relative to Rot45. Orthographic UCSs lists Top, Bottom, Front, Back, Left and Right with a depth of 0.0000, relative to World or a named system; the depth is the distance of the face's plane from the origin of that system along its normal (Front relative to World with depth 5 has its origin at (0, -5, 0)), set by a double click or Depth, picked in the drawing with Select new origin, or put back to 0 by Reset, and only a face whose Z axis is the world's (Top) can be made current, as the presenter shows the drawing from above. Settings holds On and Display at UCS origin point (UCSICON), Allow Selecting UCS icon (UCSSELECTMODE), Save UCS with viewport (UCSVP), Update view to Plan when UCS is changed (UCSFOLLOW) and Apply to all active viewports, which opens off every time and acts once; the icon's two are those UCSICON ON and ORigin set, the other three are kept while the drawing is open and change nothing in a 2D view. Nothing reaches the drawing until OK, and OK is one undo step named UCSMAN whatever the dialog changed (nothing changed, no step); Cancel, Esc and the close button change nothing. AutoCAD has no typed UCSMAN, so with no window it says UCSMAN is shown by the window` and points to UCS NAmed, and in the Block Editor it is refused. A UCS read from a file that is not in the plane of the drawing is listed but not made current: the presenter shows the drawing from above. The 3D options (X, Y, Face) say they are not available in a 2D view.

Object snaps

ObjectSnap turns the cursor into the point a click takes: an object snap, or the snap grid, or ortho, or polar. It works from the display items under the aperture, through a space's PickIndex, so the lines and arcs of an INSERT snap where the INSERT places them.

var snap = new ObjectSnap(Tolerance.Default);
snap.Snap(document.GetPickIndex(document.ModelSpace), new GeoPoint2(99, 1.5), 5);    // Endpoint (100, 0)
snap.Snap(document.GetPickIndex(document.ModelSpace), new GeoPoint2(50.3, 0.4), 5);  // Midpoint (50, 0)
Property Default
Modes Endpoint, Midpoint, Center, Quadrant, Intersection a CadSnapModes set with AutoCAD's OSMODE values (Endpoint 1 to Parallel 8192); Node, Insertion, Perpendicular, Tangent, Nearest, GeometricCenter, ApparentIntersection, Extension and Parallel can be added
IsOn true F3
Tracking off F11, object snap tracking
Ortho, Polar, PolarAngle off, off, a quarter turn F8, F10
GridSnap, GridX, GridY, GridOrigin off, 10, 10, the origin F9

AutoCAD's order is kept. A snap to a point near the cursor (endpoint, midpoint, centre, quadrant, intersection, apparent intersection, insertion, the crossing of two tracking lines) wins, the nearest of them first; then a snap the object under the cursor gives wherever its point lies (perpendicular, tangent, the centre of a circle whose rim is under the cursor, the insertion point of a block or a text under it); then a point on an extension, a parallel or a tracking line; then nearest. Where none is found the cursor is put on the grid, then held level or upright from the base point (ortho) or on a polar angle. So an object snap under the aperture beats grid snap, ortho and polar tracking, as AutoCAD 2021's help has it: "Ortho is ignored when you enter coordinates or specify an object snap" (About Orthogonal Locking), and "coordinates and object snaps take precedence over an angle override", which itself overrides Grid Snap, Ortho mode and PolarSnap (About Specifying Distances, Lengths, and Angles). A point typed at the prompt is taken as typed, never snapped. With SNAP and OSNAP on and a grid of 10, LINE's next point from (1 000, 500) with the cursor at (3 987, 2 988) takes the endpoint (4 000, 3 000), 3 905.12 long, not the grid point (3 990, 2 990). The entities of a file with no handles, as one of R12 written by hand, snap as those of any other: the document gives each a handle on opening it (see The document). The result is a CadSnapResult: the point, which CadSnapKind gave it, the handle of the object, and the dotted Tracks drawn to it.

Extension, Parallel and tracking work from points acquired by resting the cursor, as AutoCAD's do: Acquire is called when the cursor pauses (the window waits half a second), and lets go a point rested on again; seven are kept at most, and ClearAcquired lets them all go once a point is taken. A line from (0, 0) to (100, 0), its end rested on with Extension on, gives (150, 0) to a cursor at (150, 0.4); with tracking on instead, it gives (100, 30) to a cursor at (100.4, 30), and with a second end acquired at (200, 50), the crossing (100, 50) of the two tracking lines. Parallel acquires the line under the cursor and holds the rubber band along the line through the base point parallel to it. Apparent Intersection gives where two objects under the cursor would cross run on, lines as endless lines and arcs as whole circles: two lines (0, 0) to (98, 0) and (100, 2) to (100, 50) give (100, 0). With one object under the cursor it offers it as the first of an Extended Apparent Intersection; a click picks it (TakeFirstObject) and takes no point, and the object under the cursor after gives where the two would cross. Insertion gives the insertion point of an INSERT from anywhere on its lines, and the point a TEXT, an MTEXT or an attribute is placed by.

An XLINE and a RAY snap along their whole length, as AutoCAD's do: Nearest, Perpendicular and Intersection (with lines, arcs, circles and other xlines and rays) however far from their base points, and none behind the base point of a ray. The base point of a RAY is its endpoint, and the root point of an XLINE its midpoint, as AutoCAD gives MID for an xline. Extension runs on back from the base point of a ray, Parallel follows either, and Apparent Intersection runs both on as lines. An xline along (1, 1) through the origin and the line from (100, 0) to (100, 500) give the intersection (100, 100); a ray along +X from (100, -500) gives the perpendicular from (500, 80) at (500, -500), and none from (0, 80).

Point modifiers

Any prompt for a point, and "Select objects:" and a prompt for one object, takes AutoCAD's point modifiers, typed or chosen from the top of the Shift+right-click menu (Temporary track point, From, Mid Between 2 Points, Point Filters), through CadCommandSession.StartPointModifier:

Typed Asks Gives
FROM Base point:, then <Offset>: the offset point: @dx,dy and @distance<angle are measured from the base point
M2P, MTP First point of mid:, Second point of mid: the point midway
TT Specify temporary OTRACK point: no point: the prompt is asked again, and while OTRACK is on tracking lines run from the point
TK, TRACK, TRACKING First tracking point:, then Next point (Press ENTER to end tracking): until Enter the point tracked: each next point taken square from the one before, along the axis it lies farther along, upright where it lies as far along both
.X .Y .Z .XY .XZ .YZ of, then (need YZ): and so on the coordinates named from the first point, the rest from the second

LINE with FROM, the base point 100,50 and the offset @30,20 starts at (130, 70); M2P between (0, 0) and (100, 40) gives (50, 20), and M2P at the radius of a circle centred at (0, 0) between (0, 0) and (60, 80) gives a radius of 50. CIRCLE with TK from 100,0 and a click at (130, 50) centres the circle at (100, 50), the middle of a plate 200 by 100; a distance typed at Next point runs along the axis nearest the cursor, so 60 with the cursor at (80, 10) reaches (60, 0). .X of (30, 999) with (888, 40) gives (30, 40). At (need YZ): the answer is a point whose Y is taken, 40,3 giving Y 3 as AutoCAD 2021 gives it; where one coordinate is asked, a number alone is that coordinate. Z, which a plan has none of, is asked as AutoCAD asks it and left out. Coordinates are those of the UCS. Each point a modifier asks may be snapped (END typed, or the menu). A modifier may be given by another at its prompt, as FROM with M2P for its base point; AutoCAD 2021 takes TT and TK only at the command's own prompt or inside M2P, inside TT and TK only M2P, FROM and the filters inside FROM, M2P and a filter, and M2P not inside M2P. One it does not take is text that is no point: typed, or chosen from the Shift+right-click menu, the command line says the prompt and the word (Base point: _tt) and then the refusal below, and asks again; M2P chosen inside M2P says "Point or option keyword required.", and the text goes to the prompt it was typed at as text, never as a modifier. Enter or text at TT's or a filter's prompt, and Enter at FROM's, go to the prompt they were typed at, so Enter at FROM's Base point: at LINE's next point ends the LINE; FROM asks again for text, M2P for text and Enter, saying "Point or option keyword required." where the command's prompt has options and "Invalid point." where it has none; TK says "Invalid 2D point.", at First tracking point: going back to the command's prompt, and Enter at its Next point ends tracking. Esc cancels the command.

At "Select objects:" (and at a prompt for one object, and at the corner of a window or the point of a fence) AutoCAD 2021 takes them all, typed with or without the underscore or chosen from the menu, which is shown there as at any prompt for a point: the point a modifier gives picks as a click does, Select objects: _from, Base point: 0,-10, <Offset>: @50,10 then 1 found for a line from (0, 0) to (100, 0), M2P from (0, 0) and (100, 0) and TK ended by Enter the same; a point on no object is the first corner of the window, Specify opposite corner:, which takes a modifier too (FROM with an offset of @110,60 from (0, 0) ends a window from (-10, -10) over two lines, 2 found); at a prompt for one object a point on none asks again. TT gives no point: Specify temporary OTRACK point: and Select objects: is asked again, the object snaps taken as typed, END, or chosen (the click is snapped to the endpoint found near it, and the object is picked there). Text no modifier takes is refused as that prompt refuses text, *Invalid selection* with Expects a point or and the options, FROM, M2P and TK's Next point asking their own prompt again, and the others handing the text to Select objects: and asking it again; Enter at TT's or a filter's prompt or at FROM's ends the selection as Enter does. A point typed at "Select objects:" that lies on no object starts the window as well, Select objects: 150,150 then Specify opposite corner:.

A point typed after an object snap override, END or any of the others typed or chosen from the menu, is snapped as AutoCAD 2021's console snaps it; a word takes AutoCAD's international underscore, _END and _mid being END and mid, and is taken wherever it is typed or fed: the command line, a plugin's macro, a routine's (command "_LINE" "_END" '(60 1)), a script line, -OSNAP's list (_END,_MID) and Remote; '_END is the transparent form and no snap, as in AutoCAD, at a point prompt, at "Select objects:" and at a prompt for one object (CadCommandSession.SnapOverride and SnapAperture, which the window sets with the snap's own and the cursor's aperture): the objects within the aperture of the point are looked at, and the snap point of any of them nearest the point is the answer, wherever it lies on the object, so with END, an aperture of 1.3 and a line from (0, 0) to (100, 0), 60,1 is (100, 0); with no object within the aperture the line No Endpoint found for specified point. is written (Midpoint, Center, Quadrant, Node, Insert, Perpendicular, Intersection, and no name for NEArest, TANgent, GCEnter, APParent, EXTension and PARallel: No found for specified point.), then the words of the prompt, Invalid point. or Point or option keyword required., or *Invalid selection* and the options at "Select objects:" and at a prompt for one object, and the prompt is asked again, the override spent. The corner of a window and the point of a fence or a polygon are snapped the same way, typed or clicked (a click that starts or ends the implied window takes the snap END or the menu chose); where nothing is found there the words are Invalid window specification. (the first corner asked again, the opposite corner of the implied window asked as it was) or Invalid response. (the same prompt asked again). INTersection and APParent over two objects give their crossing, the one nearest the point; over one object the command line asks and for a second, answered by a point on it (typed or clicked), and gives the crossing of the two, a line over a circle that cross twice giving the crossing nearer the second point; with no crossing it says No Intersection found for specified point. (No found for specified point. for APParent) and the words of the prompt INT was typed at, and text at and is refused as that prompt refuses it, Enter answered by it; so is an object snap there, END or _end typed or chosen from the Shift+right-click menu, written and END and then the prompt's refusal, and the prompt INT was typed at asked again. A click over one object does the same on the canvas, and asked at Select objects: too, and the click that answers and is taken as it lies, with no snap of the ones that are on. A box dragged at Select objects: with END waiting takes it at the corner the drag began at and spends it. EXTension and PARallel, which need the cursor to rest on an object, find nothing at a point typed, and GCEnter finds the centroid of a closed polyline the point lies on and nothing elsewhere. The command line writes the snap chosen as _per to, _nea to, _tan to and _par to, and the others as _end of. A number alone at a corner of a window, a point of a fence or Select objects: (W, then 1) is that far from the last point along the rubber band, as at any prompt for a point. NONe leaves the point as typed; PERpendicular and TANgent need a base point.

BREAK says No object found to a point on nothing, where LAYOFF, LAYFRZ, LAYLCK and LAYULK say Nothing Selected., each asking again. LAYOFF and LAYFRZ write Current settings: Viewports=Vpfreeze, Block nesting level=Block and ask Select an object on the layer to be turned off or [Settings/Undo]: (frozen at LAYFRZ); Settings asks Enter setting type for [Viewports/Block selection]: and then In paper space viewport use [Vpfreeze/Off] <Vpfreeze>: ([Freeze/Vpfreeze] at LAYFRZ) or Enter Block Selection nesting level [Block/Entity/None] <Block>:, text that is none being Invalid option keyword.; the settings are each command's own and kept for the session. Block selection decides which layer a pick on a block reference takes, as AutoCAD 2021's console does over blocks three deep (a reference BO on LB holding a reference BI on LN that holds a line on LI): Block takes the reference the object picked is in, the innermost (LN), Entity the object itself (LI; a line on layer 0 is layer 0, and layer 0 being current is asked about), None the reference picked (LB); a pick on a line BO holds directly is LB at Block and None and its own layer at Entity. The nested object is the one whose box, put where the blocks draw it, holds the point within the pick aperture, the smallest where several do, the way REFEDIT picks a nested object; the objects of an external reference are not gone into. Viewports decides what a pick in a viewport worked through does: at Vpfreeze the layer is frozen in that viewport alone (Layer "WALLS" has been frozen in this viewport., the layer still on and thawed in the others, U thawing it there) and at Off (Freeze at LAYFRZ) it is turned off (frozen) everywhere; on the Model tab and on the paper of a layout the layer is changed everywhere whatever the setting. The current layer is asked about with Layer "WALLS" is current, do you want to turn it off? [Yes/No] <No>: (Vpfreeze it for a viewport), and LAYFRZ says Cannot freeze layer "WALLS". It is the CURRENT layer. of it with one space after the full stop, where -LAYER has two. U says nothing while a layer is turned back and Everything has been undone. with none left. Enter at LAYLCK and LAYULK says Nothing selected. and asks again. ARRAYRECT and ARRAYPOLAR ask for the levels as for the rows, Specify the distance between levels or [Total/Expression] <1.0000>: after the number, Total being Enter total distance between start and end levels <...>: (columns and rows the same), and a distance of nought at either is Value must be nonzero. and asked again.

Grips

CadGrips.Of(entity) lists the grips of an entity, each a CadGrip with its index, its CadGripKind and its place; document.GripDrag(handle, index, point) drags one, as one undo step.

Entity Grips Dragging
LINE two ends, the middle an end moves it; the middle moves the line
CIRCLE the centre, four quadrants the centre moves it; a quadrant changes the radius
ARC two ends, the middle, the centre the middle bends the arc through the point
polylines each vertex (a square), the middle of each segment (a bar along the segment) a vertex moves; the middle of a straight segment moves it, of an arc segment bends it; the cursor resting on either opens a menu (see below)
TEXT, INSERT the insertion point moves it
MTEXT the location and the corners of its box (top left, top right, bottom left, bottom right; the location first where it is at none of them); the location alone for an MTEXT of no width or in columns the location moves it; a corner takes its two sides of the box to the point, which sets the defined width and height, the location staying at the point of the new box the attachment names
VIEWPORT four corners, the middle a corner resizes the frame, the opposite corner, the scale and the centre of the view kept
linear and aligned DIMENSION the two extension line origins, the two ends of the dimension line, the words an origin measures anew, the dimension line kept where it is; an end of the line moves the line through the point; the words move as DIMTEDIT moves them
radius and diameter DIMENSION the chord point (a diameter's two), the words a chord point goes round the circle towards the point
angular DIMENSION the vertex and the two line points (an angle between two lines: the ends of both lines), the arc, the words a point measures anew; the arc runs through the point
ordinate DIMENSION the feature, the leader's end moves that point
dynamic INSERT its custom grips, then the insertion point a linear arrow sets the distance along its parameter, a rotation circle the angle about its base, a point, polar or XY square its values (an XY corner the one of its axes the end gives); a flip arrow clicked flips; a visibility, lookup or block table triangle clicked lists its values
anything else none

The plate's line has End 0 (0, 0), End 1 (100, 0) and Middle 2 (50, 0); dragging grip 1 to (120, 0) leaves its end at (120, 0, 0). A dimension's grips are AutoCAD 2021's, and dragging one rewrites its points of definition and draws its picture anew, as DIMEDIT does. A dimension of 100 from (0, 0) to (100, 0), its line 30 below, dragged by its second origin to (150, 10) measures 150 with its line still 30 below; dragged by an end of its line to (20, -60), its line runs 60 below, and words placed by DIMTEDIT go down with it. Its words dragged to (60, -50) stand there, the line moved to run under them where DIMTMOVE is 0 and a leader drawn to them where it is 1. A drag that would measure nothing, an origin onto the other, is refused.

An MTEXT's grips are AutoCAD 2021's too. Its box is its defined width across and its defined height down, or with no defined height the height of its lines. "II" over "II" in letters 10 high, 240 wide and attached top left at the origin, has its grips at (0, 0), (240, 0), (0, -26.67) and (240, -26.67). The top right one dragged to (260, -12) leaves the MTEXT 260 wide with a defined height of 14.67, located at (0, -12); the bottom left one dragged by the same leaves it 220 wide and 38.67 high at (20, 0). The words wrap anew at the new width. The box is never lower than one text height, the side dragged staying at the point, and a box dragged to no width is refused. In a drawing before R2007, whose MTEXT holds no defined height, a corner changes the width alone. The canvas draws them as AutoCAD 2021 shows them: the location a square, the top right a triangle pointing along the MTEXT, the bottom left one pointing down, the bottom right one pointing into its corner, and the top left a square where the location is elsewhere; the triangles turn with the MTEXT. Each triangle is as large as a plain grip's square, 15 pixels across at the default GRIPSIZE of 5 and 25 at 10, and is pink under the cursor and red once clicked, as the squares are.

An MTEXT in columns has the grips AutoCAD 2021's GetGripPoints gives it, each doing what its MoveGripPointsAt does, the location kept. Two static columns 120 wide with a gutter of 20 and 100 high, attached top left at the origin, have the location at (0, 0), the column width at (120, 0), the corner at (260, -100), the height at (0, -100) and the gutter at (260, 0), the last column's top right. Dragged 50 to the right, the column width grip makes the columns 130 wide with no gutter, as static columns keep their total of 260, and dragged 30 to the left 90 wide with a gutter of 80; the gutter grip keeps the columns 120 wide and makes the gutter 70, the total 310, and dragged left it stops at no gutter; the corner does that and sets the height; the height grip sets the height of the columns. Dynamic columns have the same grips, the corner and the gutter grip at the last column the words fill, but the column width grip keeps the gutter, the total following, and so does the corner. Dynamic columns of their own heights have no corner and no height grip: a triangle under the middle of each column sets that column's height. The column past those set, which holds the lines they do not, has its own triangle at the height of its lines, and dragging it sets that column's height (heights 50 and 90, the third column 94.18 high, dragged 10 further down: 104.18). Attached at the right or the bottom, the grips stand at the other side and grow the other way: attached bottom right the column width grip is at (-120, 0), and 50 to the right makes the columns 70 wide. A width or a height stops at the text height and a gutter at nought.

EXPLODE breaks an MTEXT into a TEXT for each run of each line, where the picture draws it and of its height, width factor and slant, with %%U, %%O or %%K before the words of a run lined under, over or through, and a LINE for the bar of each stack, all in the MTEXT's layer. The runs keep their colours and SHX fonts, as AutoCAD 2021's Explode keeps them: in an MTEXT of blue, {\C1;CD} is a red TEXT, \C256; ByLayer, \C0; ByBlock and \c16711680; the true colour 0,0,255, and the rest blue; {\Ftxt.shx;CD} is a TEXT in a text style MtXpl_txt_shx of txt.shx, which the drawing is given if it has none, in the same undo step. A run in a TrueType font of its own (\fArial|b1;) is a TEXT in the MTEXT's style, as in AutoCAD.

A dynamic block's custom grips are those AutoCAD 2021 shows, where the INSERT's values put them (DxfBlockReference.GetDynamicGrips), each a CadGrip of a custom kind (CustomLinear, CustomPoint, CustomRotation, CustomFlip, CustomList) carrying the core grip in Custom; the window draws them in the dynamic grip colour, GRIPDYNCOLOR, of AutoCAD's shapes. A grip dragged, by GripDrag or by the STRETCH of a grip edit, asks a value worked out in the block's own coordinates, which the library takes to the parameter's value set and works the block out with, into an anonymous block still named by the dynamic block: the panel of a Width of 100, 150 or 200 at (1 000, 500) dragged by its arrow to (1 180, 530) is 200 wide, one undo step GRIP. While one custom grip is dragged, the STRETCH prompt previews the block worked out at the cursor, as AutoCAD 2021 redraws it: a copy of the INSERT in a drawing of its own, the drawing itself left as it is until the point is picked. The insertion point's grip comes after the custom grips, as AutoCAD 2021's GetGripPoints gives them (a rectangle of an XY parameter at (1 000, 500): (1 100, 550), (1 000, 550), (1 100, 500) and the insertion point (1 000, 500)). An XY parameter shows three grips, as AutoCAD does: its end sets Width and Height; the corner of base x and end y sets the Height and moves the parameter's base point along x, and the corner of end x and base y sets the Width and moves it along y, as AutoCAD does: the first corner of a rectangle 100 by 50 dragged by (20, 10) reads Width 80 and Height 60 with the base point at (20, 0) and the right edge staying at x 100, the second Width 120 and Height 40 with the base point at (0, 10) (probes GhDb1 and GhDy2a). Where an action follows the base point (a stretch or a move of BaseXDelta and BaseYDelta, an array) the parameter has a base grip too, after the end grip, a linear one on a fresh INSERT as well, and a polar parameter always has one (the pointer of one polar parameter lists its end and its base grip, and the insertion grip is left out where a custom grip stands on it, as AutoCAD 2021 left it out for a point parameter at the block's origin): dragged, it moves the base point, the end point staying (MoveBasePoint of the core), the distances it leaves taken to the value set (Width 50 to 300 by 10 dragged by 33 reads 70, the base point at 30), and what follows the base point follows the drag alone, the bottom and left edges of a plate whose bottom left corner a stretch of the base point holds starting at (20, 10) after a base grip drag by (20, 10); the INSERT keeps the base point, and the edges stay there at a value set later (Width 150 typed after a base grip drag by 30 keeps the left edge at x 30, as AutoCAD 2021 did in memory and after DXF and DWG, probe GhDb4a). A drag that would take a distance to nought or below is refused, the drawing as it was. The end grip of a polar parameter drags the end point (MoveEndPoint), the distance and the angle from the base point taken to their value sets, and the INSERT's history keeps the GRIPLOC AutoCAD wrote; so do the end grip of a linear parameter, the end corner of an XY parameter, the other two corners of an XY parameter (MoveCornerPoint: one GRIPLOC of the corner, the base point along the other axis moved in the same drag), the grip of a point parameter and the end grip of a rotation parameter (MoveEndPoint, which the presenter uses for each), and a base grip dragged after an end grip is worked out from the edits one after the other (the end grip to (0, 50), the base grip by 30 and the end grip to (35, 0) leave the first line at (45.43, 25.72), probe GhDb4a); the Origin of each parameter is a hidden property and is not listed in the Custom group. A flip grip clicked flips the block (CadDynamicBlocks.Click); a visibility, lookup or block table grip lists its values, the one shown ticked (ValuesOf), and one chosen is set (Choose): a block table lists its rows, each its cells parted by commas, "100.0000" and "200.0000" for a table of Width, and the row chosen sets Block Table1 to its index and Width with it. The right-click menu of a selection holding a dynamic block offers Reset Block, which runs RESETBLOCK. AutoCAD 2021 read every value the presenter set so on the library's dynamic samples as the library reads it (96 values, 61 grip edits and 6 resets), and AUDIT found no error.

Model space through a viewport

In a layout, model space is worked in through a viewport as in AutoCAD: MSPACE (MS), a double click inside a viewport's frame or the status bar's PAPER button enters it, and PSPACE (PS), a double click off every frame or the MODEL button goes back to the paper. CadDocument.EnterViewport(handle) and LeaveViewport() do the same in code, and ActiveViewport is the viewport worked through, null on the paper. While one is, WorkingSpace is model space: the commands draw there, picks and snaps work in model units as the viewport shows them, and the canvas draws the viewport's frame thick, the crosshair inside it alone. A line drawn through a viewport of Layout1 goes into model space. Ctrl+R goes on to the next viewport (NextViewport). MSPACE and PSPACE typed are one undo step each, named for the command, that U takes back to the viewport worked through before or the paper, as AutoCAD 2021's console undoes them; so is one that only says "Already in model space.", "Already in paper space." or "There are no active Model space viewports.", an empty step (the console undid six commands, those three included, one U each). On the Model tab both say "** Command not allowed in Model Tab **" and make no step. CTAB, the layout shown, is read as Enter new value for CTAB <"Model">: and set by a name in letters of either case, spelled as the layout spells it: one undo step named CTAB, where TILEMODE's is named TILEMODE and LAYOUT Set's LAYOUT; a name that is no layout's, a pattern (Lay*), . and ? too, is refused as AutoCAD refuses it, Cannot set CTAB to that value. Find and Replace's Zoom to objects shows the layout of the objects as a tab clicked does, one undo step. -VIEW Restore of a paper view from the Model tab shows the layout as part of the command's one undo step: one U takes back to the Model tab, as AutoCAD 2021's console does. A view saved in a layout remembers it (the group 330 of its XRECORD ADSK_XREC_VTRVIEWINFO, DxfViewTableRecord.Layout), and -VIEW Restore shows that layout: a view saved in Sheet 2 and restored from the Model tab or from Layout1 shows Sheet 2; a view of a file that names no layout is shown in the layout on screen, else the first. A view of model space restored in a layout says Restoring Model space view. and asks Select Viewport for view: (the sheet's own viewport, and a pick that is no viewport, ask again); the viewport shows the whole view, its centre the view's and its height the view's or the view's width over the viewport's shape where that is more (a view 600 by 400 into a viewport 200 by 100 is shown 400 high, one 900 by 300 450 high), and is the one worked through afterwards, so a second restore goes into it with no question. It is one undo step, which takes the view and the viewport worked through back.

A double click works through a viewport wherever it lands inside the frame, or inside the outline of a clipped one (VPCLIP), whether or not the first click of the two had opened the box of Select objects: there: that first click, on empty paper, starts the implied window, and the second ends it (CadCommandSession.IsImpliedWindow says that nothing but the window runs) and works through the viewport, nothing selected. A paper object under the cursor still takes the double click first (a text opens its editor), and a command that runs takes the clicks as points. A viewport on a layer switched off or frozen is not drawn and is not worked through (EnterableViewports, EnterViewport); a layer set not to plot changes nothing.

Object snaps follow what the viewport shows. On the paper the corners, midpoints and sides of a viewport's frame are snapped to (a clipped viewport is bordered by its boundary object, snapped to as any other), and so is the model geometry seen through it: a paper LINE or a dimension takes an endpoint, midpoint, centre, quadrant, intersection or nearest point of model space where the viewport shows it, the aperture in the viewport's scale and the point taken by its view, twist and scale; a viewport whose view shows the room at 1:20 about (2 000, 1 500) gives the end (3 000, 2 500) of a model line at (200, 150) on a frame 200 by 150 about (150, 100). Nothing is snapped to model space outside the frame or the clip outline, nor on a layer frozen in that viewport, and the nearer of a paper object's snap and a model one is taken. The snap names the object of model space and the viewport (CadSnapResult.Handle is the model object's, Point the paper's). Worked through the viewport, the snaps are those of model space in model units, the layers frozen in the viewport left out.

A snap typed (END, MID, INT ... at "Specify first point:") takes the same objects: a point typed on the paper snaps to the snap point of the model objects the viewport shows within the aperture of the point (in the viewport's scale), however far the point lies, taken to the paper; a point of the paper's own objects nearer the typed point is taken in its place, and outside the frame, on a layer frozen in the viewport or beyond the aperture it says "No Endpoint found for specified point." as it does for the paper. With the viewport shown at 1:2 about (50, 25) in a frame about (120, 70), END typed and 95.4,57.1 gives (95, 57.5), the end shown of a model line from (0, 0). INT typed needs two model objects under the point; one alone is not asked for its second, as it is on the paper. Object snap tracking acquires through a viewport as it does on the paper: the cursor rested on a model endpoint shown in the viewport acquires it, the cross drawn where the viewport shows it and the tracking lines run on the paper from it (Extension and Parallel are not acquired through a viewport).

A DIMLINEAR or DIMALIGNED, and the DIMCONTINUE after one, on a layout whose points were clicked with an object snap through a viewport, at DIMASSOC 2, is tied to the model objects as AutoCAD 2021 ties it, a trans-spatial association: a DIMASSOC of group 70 = 1 whose references name the viewport (a group 331 before the object's, a 332 before an intersection's second object), the viewport and the objects having it among their reactors, and the dimension showing the size of the model, its DIMLFAC the negative of the viewport's scale over one (-2 at 1:2: 50 on the paper is 100), as the extended data ACAD_DIMASSOC_OVERRIDDEN_DIMLFAC, ACAD_DIMASSOC_CALC_DIMLFAC and ACAD_DIMASSOC_DIMLFAC and the DIMLFAC override AutoCAD writes. It follows an edit of the model objects at once, in the same step, as a dimension follows its objects in one space: the points go where the viewport shows the objects, the line of the dimension at the distance it kept on the paper (a line from (0, 0) moved 10 up, its dimension's first origin goes from (95, 57.5) to (95, 62.5) and its line from 40 to 45). The view of the viewport (ZOOM, PAN, the wheel) changes nothing until DIMREGEN, which takes each such dimension of the drawing to where its viewport shows its objects now, its line at the same distance on the paper and its DIMLFAC the viewport's scale now (the viewport shown 1:1 about (0, 0): the origin at (0, 10) goes to (120, 80) and the DIMLFAC to -1); one step of undo, and nothing said. The viewport erased unties the dimension, which keeps its points and its size. A dimension of one point of the paper and one through a viewport is tied to nothing, as AutoCAD 2021 leaves it (and measures it on the paper); so is one of another kind (radius, diameter, angle, ordinate), whose trans-spatial association is not made, and a perpendicular or a tangent through a viewport. AutoCAD 2021 read the DXF of such a dimension this presenter wrote, AUDIT found 0 errors and a model line moved, the viewport zoomed and DIMREGEN put the dimensions where this presenter puts them.

The wheel, the middle button and ZOOM and PAN change the viewport's view, not the paper. ZOOM and PAN typed are one undo step each, as AutoCAD 2021's console undoes ZOOM 2X, ZOOM 2X and -PAN one U each. The wheel's rolls and the middle button's drags made one after another are one step together, however often the view is drawn again between them, as AutoCAD combines consecutive real-time zooms and pans where UNDO Control Combine is Yes (UNDOCTL holding its 16; a drawing starts with No, as AutoCAD 2021 reads it on the machine measured, so each is a step until Combine is set to Yes); SetViewportView(handle, center, height, name, realTime: true) joins such a change to the one before. ZOOM Previous goes back through views of the viewport worked through alone, as AutoCAD keeps a list for each viewport, for the paper of each layout and for model space: a viewport never zoomed answers "No previous view saved." while another has views to go back to. Each list keeps the last 20 views ZOOM, PAN, the wheel and the middle button left, as AutoCAD 2021's console, zoomed 30 times, gives 20 back; the wheel's rolls and the middle button's drags made before the view is still are one view of the list, a viewport's view set by SetViewportView another. ZOOM Extents by a double click of the middle button counts as typed.

Model space and the paper are zoomed and panned the same way: ZOOM, PAN, PLAN, the wheel and the middle button on the paper, in model space and through a viewport whose display is locked are undo steps too, one each for what is typed (as AutoCAD 2021's console undoes ZOOM 2X, ZOOM 2X, -PAN and ZOOM Extents one U each, in model space and on the paper), and ZOOM Previous is a step of its own. A step of the view alone keeps no copy of the drawing: U moves the view back to the part of the space it showed, and the drawing is not read again, so a wheel gesture in a drawing of a million entities costs nothing. U and REDO move the ZOOM Previous lists with the views, as AutoCAD 2021's do: after ZOOM 2X three times, ZOOM Previous and U the last zoom is back and the next ZOOM Previous goes where the first one went; after ZOOM 2X three times and U, ZOOM Previous goes to the view before the second zoom, not to the one U left. Showing another space (a tab clicked, LAYOUT Set, TILEMODE; CadDocument.ShowSpace(space) in code) is a step too, named LAYOUT, which U and REDO take back and forward without reading the drawing again, the selection let go each time. CadDocument.RecordSpaceView(space, view, before, name, realTime) makes such a step and the list entry; the canvas calls it once the view is still. A drawing so zoomed counts as changed, as AutoCAD's does (DBMOD 16). ZOOM nXP sets its scale, n paper units to the model unit: 1/50XP in a viewport 100 high shows 5 000 of model space, 1:50. A viewport whose display is locked keeps its view, and the paper is zoomed instead. The status bar's scale list and Properties' Standard scale (1:1 to 100:1) and Custom scale (0.02) set the view's height to the frame's over the scale, about the same centre; Display locked is a row of Properties too. The list opens on a click of the scale, as AutoCAD 2021's: Scale to fit, which fits model space's extents to the frame, the scales of the drawing's list (ACAD_SCALELIST; the standard ones where it has none), and Custom..., which runs SCALELISTEDIT. SCALELISTEDIT shows AutoCAD 2021's Edit Drawing Scales: the drawing's list in its order, Add… and Edit… (Add Scale and Edit Scale: Name appearing in scale list, Paper units = Drawing units), Move Up, Move Down, Delete and Reset, and the scale chosen under the list, 1 paper unit = 50 drawing units. Delete is greyed for a scale the drawing keeps (the unit scale, the current annotation scale, one an object points at); Edit Scale greys the units of a scale an object points at, as AutoCAD's help says. Their messages are AutoCAD 2021's, read from its resources: an empty name says No name specified for this scale. Please enter a name., units that are not numbers Invalid scale number., and Edit Scale given a name another scale has 1:25 already exists.. Add Scale given a name of the list asks 1:25 already exists. Would you like to redefine this scale? (two spaces after the full stop) and, on Yes, gives that scale the units; where an object points at the scale, or it is the unit scale, it says 1:50 already exists and is a referenced scale. Please enter a different scale name.. Reset asks in AutoCAD's task dialog, Scale List - Reset, Resetting will restore a default list of scales for the drawing. Which default scale list do you want to restore?, with the detail Unreferenced scales will be purged from the drawing and the default scales will be added. Any changes you made to the scale list will be lost. and the buttons Metric scales, Imperial scales, Metric and Imperial scales and Cancel; the list chosen is the metric 1:1 to 100:1 (17 scales), the imperial 1:1 and 1/128" = 1'-0" to 1'-0" = 1'-0" (17), or the metric ones then the 16 imperial ones that are not 1:1 (33, CadScaleListRequest.MetricAndImperialDefaults). Reset then deletes every scale the drawing does not keep and adds the ones of that list it lacks. The list takes several scales chosen at once (Ctrl and Shift), as AutoCAD's does: Delete is live while the choice holds a scale the drawing does not keep, Edit…, Move Up and Move Down for one scale only, and the line under the list says Varies: multiple scales selected.. Delete over a choice that holds a scale the drawing keeps asks Scales in use cannot be deleted. Delete selected scales not in use? and, on Yes, deletes the others, the scale that stands where the first of them stood chosen then; over a choice that would leave the list empty it says The scale list must contain at least one scale.. OK writes the list as it stands as one undo step: the scales taken out deleted, the ones renamed or given other units changed, the new ones added, each in its place (Move Up and Move Down move the entry of ACAD_SCALELIST, the SCALE and its handle kept); Cancel writes nothing. With no window to show the dialog, SCALELISTEDIT asks -SCALELISTEDIT's prompts. VPSCALE writes PS:MS == 1:20 and asks a new scale, as 1:37.5. -SCALELISTEDIT asks as AutoCAD 2021's console does, word for word: Enter option [?/Add/Delete/Reset/Exit] <Add>:; ? lists each scale with its paper and drawing units and the scale they give; Add asks Enter name for new scale: (an empty name says Must enter a valid name. and one of more than 64 characters Scale name too long., and the name is asked again) and Enter scale ratio: (1:3 or 2.5:1; anything else answers Invalid entry. Expects a ratio entered in the following format: "1:1"), and for a name the list has asks GH already exists. Redefine scale?; Delete takes one scale (GH scale deleted., Scale NOSUCH not found.) or * every one in no use, and keeps the unit scale, the current annotation scale and one an object points at (Scale 1:1 is referenced so it cannot be deleted.), and the last scale of the list (Scale list must contain at least one scale. 1:1 not deleted.); Reset, after Reset scale list to defaults? [Yes/No] <No>:, takes out every scale in no use and adds back the default list after the ones kept: the metric 1:1 to 100:1, or, where the header's MEASUREMENT is 0 (imperial), 1:1 and the 16 imperial scales 1/128" = 1'-0" (0.0078125 to 12) to 1'-0" = 1'-0", as AutoCAD 2021's console resets them. A drawing with no MEASUREMENT in its header takes the imperial list, as AutoCAD 2021 reads such a header as MEASUREMENT 0. The command is one undo step. AutoCAD's console accepts a ratio of 0:1, which the presenter refuses, and its Reset leaves 1:1 alone there, having no profile's default list. Beside it the padlock locks and unlocks the viewport's display, one undo step; a locked viewport's scale is grey and its list greyed. On the paper with no viewport selected neither shows; on the Model tab the place shows the annotation scale (CANNOSCALE), its list the drawing's scales, and MODEL is a label rather than a button. The windows ask in AutoCAD 2021's own words, read from its task dialogs and messages. A block of another drawing, or one typed in Block, whose name the drawing uses asks Block - Redefine Block, "GB" is already defined as a block in this drawing, would you like to redefine this block reference? with Redefine block and Don't redefine "GB". New View over a name used asks View - Already Exists, Stair core already exists. Do you want to replace it? with Replace and Cancel. New Layer State to Save over a name used asks Layer - Overwrite Layer State, Do you want to overwrite Plan with the drawing's current layer state?. The Layer manager refuses to rename layer 0 or a layer of an xref with Layer - Rename, The selected layer cannot be renamed. and the layers that cannot be: Layer 0, Xref-dependent layers. Write Block over a file asks C:\blocks\gb.dwg already exists. Do you want to replace it?, and the Text Style dialog, with a change not applied, The current style has been modified. and Do you want to save your changes?. The question of the plugin outside the trusted folders, and the one over a file that cannot be read, are the presenter's own. CadViewports has the arithmetic: the canvas's view in model units (ModelView) and the view a viewport takes back from it (ViewOf), a box fitted to the frame (Fit), and the scales' names. A viewport whose view is not a plan from above is drawn projected and not entered (the paragraph below). One whose view is twisted, as DVIEW TWist leaves it (group 51), is shown and worked through turned, as AutoCAD 2021 shows it: the view's centre is kept about its target and turned by the twist (ToView and FromView, AutoCAD's TRANS from the world to the view), so through a viewport 120 by 80 about (100, 100) at 1:5, its view about (100, 50) twisted 30 degrees, the point (100, 0) of model space is at (97.320, 100) on the paper, where AutoCAD's console puts it. Entered, the canvas's view in model units turns with it (CadView.Twist): picks, snaps and boxes (taken as turned polygons), the crosshair and the UCS icon follow the turn, PAN moves the view by the model distance given, and ZOOM Window fits the box as the view turns it.

A viewport whose view is not a plan from above (its view direction, group 16, is not the world's Z: a viewport set up in AutoCAD to a south-east isometric, a front or a view from below) is drawn and plotted projected, and is not entered. Model space is taken through it along the direction as AutoCAD's display coordinates take it (TRANS from the world to the view, CadViewports.ToView(viewport, point3)): the point from the view's target, then its X axis across the direction and level with the world's XY plane (the arbitrary axis algorithm), its Y up the screen, the depth dropped, and last the twist. Seen from (1, -1, 1) the point (100, 0, 0) is at (70.711, -40.825) and (0, 0, 100) at (0, 81.650) in the view; from the front, along (0, -1, 0), (100, 60, 40) is at (100, 40). The projection is parallel, as AutoCAD's with perspective off, whatever the viewport's perspective flag says, and it is a wire frame: nothing is hidden or shaded. Lines, arcs, circles, polylines, ellipses, splines, points and faces of model space are projected with their heights (an arc or a circle standing off the plan is drawn as the ellipse it is, sampled); text, hatches, dimensions, blocks and the other annotation are placed as the plan of the world lies in the view, at no height, which is where they are when the drawing is flat. Layers frozen in the viewport, overrides, clips and the scale are as for a plan viewport, and the PDF, the printer and the raster plots draw the same list. MSPACE, CHSPACE and a double click do not enter it (MSPACE says Cannot work in model space through a viewport whose view is not a plan from above (the presenter is 2D).), and nothing is snapped to model space through it.

Maximizing a viewport

VPMAX and VPMIN, the Maximize Viewport of a viewport's right-click menu, work as AutoCAD 2021's console runs them. In a layout VPMAX asks Select a viewport to maximize: (anything but a viewport that can be worked through says Invalid selection, please select a single viewport. and asks again, Enter too), or asks nothing where a viewport is worked through, which is the one maximized; a second VPMAX says A viewport is currently maximized.. The viewport takes the canvas, ten pixels in from its edges, at the scale it had, and shows the part of model space it showed under the middle of that area; the other viewports of the layout that were on go off, and model space is worked through the viewport, so ZOOM and PAN change the view of the maximized one. A viewport 200 by 100 at 1:10 over a sheet shown 400 by 240 becomes about 392 by 232 at 1:10. A viewport whose display is locked is maximized too. VPMIN puts the viewport back as it was, its frame and its view (a zoom or a pan made while it was maximized is given up, as in AutoCAD), turns the others on and goes back to the paper; with none maximized it says No viewport is currently maximized.. On the Model tab both are -VPORTS Toggle: with several tiles it keeps the current one alone and the tiles as *Multiple; with one tile and none kept it makes four equal tiles (numbered 2 to 5 from the lower right, going up and then left; the current tile keeps its number) and keeps them as *Multiple, saying Regenerating model. four times where the others say it once; with one tile and some kept it brings them back, the first under the number of the tile that was alone. The tile left alone is numbered 3 where the current one was 2 and 2 where it was any other (CVPORT), as AutoCAD 2021's console numbers it. Each is one undo step, and an undo of VPMAX puts the viewport back (CadDocument.IsViewportMaximized and MaximizedViewportHandle say whether one is maximized). The sheet's other objects stay drawn behind the viewport, and a drawing saved, copied with DXFOUT, autosaved, plotted, printed, published, previewed or handed out by Remote while a viewport is maximized is written as the layout was before VPMAX (the frame and view of the viewport, the others on), the maximizing being a view and not saved; the drawing in the window stays maximized after the write, and VPMIN still takes it back. AutoCAD takes the maximizing back when the layout is changed, which the presenter does not.

Clipping a viewport

VPCLIP clips a viewport of the layout shown as AutoCAD 2021's does, word for word as its console prints them: Select viewport to clip: (a line or a circle picked says Object selected was not a viewport. and asks again), then Select clipping object or [Polygonal] <Polygonal>:. A closed polyline, circle, ellipse, closed spline or region picked becomes the border of the viewport and the frame its box, the view kept in place (a viewport 200 by 100 about (110, 60) at 1:10, clipped to a circle of radius 30 about (110, 60), is 60 by 60 there with its view height 600; a region of a ring, a circle of radius 40 less one of 15, makes it 80 by 80 and shows nothing in the hole, and one of two faces shows two windows, as AutoCAD 2021 plotted them); an open polyline says Clip object must be closed., a viewport Invalid: Clip entity not currently regen'ed., and the command asks Select object to clip viewport: again. Polygonal asks Specify start point: and Specify next point or [Arc/Length/Undo]: (with Close from the second segment on) as PLINE does, the arcs by their end point or Angle, CEnter, Direction, Radius and Second pt (Enter an arc boundary option), and Enter closes the polygon with a straight edge; two points and Enter say Clip polyline must have at least 3 vertices. and change nothing. The polygon is a LWPOLYLINE on the current layer, which stays an entity of the layout; Delete, for a viewport that is clipped (Viewport does not have clip boundary associated. for one that is not), erases the boundary and leaves the frame as it was. Each run is one undo step, VPCLIP, and clipping a viewport again leaves the boundary it had before in the layout. Worked through a viewport (MSPACE), VPCLIP writes Switching to Paper space., asks on the paper and goes back into the viewport, writing Switching to Model space., as AutoCAD 2021's console does. The viewport and its boundary are one object to a pick and to every command that takes objects, as AutoCAD 2021 counts them (2 found): picking either selects both, ERASE of either erases both, MOVE, SCALE and COPY take both (the copy of the viewport tied to the copy of its boundary), and the viewport follows its boundary whenever an edit changes it, a corner dragged by its grip too: the frame is the box of the boundary again, its view keeping its scale and its place. A clipped viewport has its middle as its only grip, which moves the boundary with it. The view is left as AutoCAD 2021 leaves it (probed in its console on a viewport 60 by 60 about (110, 60) showing (1 000, 500) at 1:10): MOVE and MIRROR keep the view's centre, the frame going with its boundary, so that a pair moved by (20, 5) is about (130, 65) and shows what it showed; SCALE by 2 about the origin scales the frame (120 by 120 about (220, 120)) and the height of its view (1 200) alike and moves the view's centre to (2 100, 1 100); ROTATE turns the view by the angle (its twist, group 51, taken from 0 up to 360 degrees) and writes the view's centre as the turn of 2 V - C' - T by the new twist, V the view's centre before, C' the frame's centre carried by the rotation and T the view's target, whatever the scale of the view: turned 45 degrees about the origin, the viewport above is about (35.355, 120.208), twisted 45 degrees, with its view centre at (767.107, 2 011.320), and turned 90 degrees about its own middle it stays where it is, twisted 90 degrees, its view centre at (-940, 1 890). A copy made by COPY, ROTATE Copy or MIRROR is tied to the copy of its boundary and fitted the same way, with one difference for a mirror: a copy whose frame changes size (a triangle with the box 80 by 60, mirrored about a line that is not horizontal or vertical, has a box 60 by 80) has the view's centre moved by the step of the frame's centre from where the copy stands over the scale of the view, as a stretch moves it, where one that keeps its size keeps the view (a circle, or any boundary mirrored about a horizontal or vertical line; a line 3E-7 degrees off horizontal still keeps it, one 1E-6 degrees off moves it, which is the size AutoCAD 2021 tells apart). A mirror that erases the original moves the view only by the step from where the frame's centre went with the mirror to the box of the mirrored boundary, which is nothing where the box is the mirror of the old one. A viewport that is not clipped is turned and mirrored too, as AutoCAD 2021's ROTATE and MIRROR do: a mirror puts the centre of the frame at its mirror image and keeps its size and its view; a turn by a multiple of a quarter turn (within a millionth of a radian, so 90.00001 degrees is one) turns the frame about the base point, its width and height swapped for 90 and 270 degrees, and the view by the angle; any other turn makes the viewport clipped, to a new closed 2D polyline of the four corners of its frame turned (lower left first, counter-clockwise) on the viewport's layer, the frame the box of that polyline. The twist grows by the angle, the view height by the frame's, and the view's centre becomes the turn by the new twist of the centre less the target. A viewport 200 by 100 about (110, 60) showing (1 000, 500) at 1:10, turned 45 degrees about the origin, is clipped to the corners (0, 14.142), (141.421, 155.564), (70.711, 226.274) and (-70.711, 84.853), 212.132 square about (35.355, 120.208), twisted 45 degrees, its view centre at (353.553, 1 060.660), 2 121.32 high; turned 90 degrees about the origin it is 100 by 200 about (-60, 110), twisted 90 degrees, its view centre at (-500, 1 000). A viewport that is not clipped is resized as AutoCAD 2021 does it (probed in its console on a viewport 200 by 100 about (150, 100) at 1:50 showing (1 000, 500), the view twisted 0 and 30 degrees alike): the model stands still on the sheet and only the window onto it changes, the scale kept. A corner grip dragged, STRETCH of a window about one corner (the frame is the box of its four corners as moved; a window holding all four moves it whole, as a MOVE does, the view going with the frame) or about the two corners of one side, and SCALE all give the frame a new box and move the view's centre by the step of the frame's centre over the scale, in the view's own coordinates, which run with the frame's sides, so a twist leaves the step as it is. The lower right corner dragged to (280, 20) gives 230 by 130 about (165, 85), the view's centre (1 750, -250), 6 500 high; the right side stretched 20 gives 220 by 100 about (160, 100), the view's centre (1 500, 500); SCALE by 2 about the corner (50, 50) gives 400 by 200 about (250, 150), the view's centre (6 000, 3 000), 10 000 high, and about the frame's own centre it leaves the view's centre where it was; a corner dragged past the opposite one gives the frame between the two, the model still where it was. The Width and Height of the Properties keep the centre, so the model stays too. A MOVE keeps the view's centre, the frame taking its view along. While the second point of one of these edits waits, the preview draws the viewport as the edit will leave it, the frame and the model shown through it, in the model's own colours and cut to the frame (or to the outline of a clipped viewport): MOVE and COPY by the displacement (a viewport moved by (30, 20) is drawn 30 right and 20 up, the model with it), ROTATE and MIRROR as the edit turns or mirrors the frame (a mirror puts the frame's centre at its mirror image and the model is carried with it, not itself mirrored), SCALE with the frame scaled about the base point and the model standing where it stands on the sheet, and STRETCH and the corner grip with the frame between the corner kept and the cursor, the model still (the middle grip moves it whole, as a MOVE does). A viewport clipped by an entity is drawn only together with its boundary, selected with it or moved by its middle grip; moved alone it stays where it is, as the edit leaves it, and the preview draws nothing for it. The outlines of the model are made once for a drag and kept, and drawn moved or turned as the cursor goes, so that a drag costs the drawing of the outlines, not their making (1.0 ms of recording a cursor move for 20 000 lines in view, 4.2 ms for 100 000); a drawing with more than 50 000 outlines in view shows the frame alone. The preview is worked out by the rules the edit itself follows (the turn of a viewport, clipped or not, included), and tests compare it with what each edit then leaves. PASTECLIP of a viewport copied from a layout previews it at the cursor the same way, the model being that of the drawing it goes into. A viewport has no place in model space: PASTECLIP there leaves the viewports of the copy out, says so, and pastes the rest. MVIEW's Object option makes a viewport of a closed polyline, circle, ellipse, spline or region picked (Select object to clip viewport:): its frame the box of the object, the object its border; an open polyline says Clip object must be closed. and any other entity Invalid viewport clip object., and the command asks again. Its Polygonal option asks Specify start point: and Specify next point or [Arc/Close/Length/Undo]: as PLINE and VPCLIP's Polygonal do (Enter closes it; fewer than three points say Clip polyline must have at least 3 vertices. and make nothing) and makes a closed polyline on the current layer, then the viewport clipped to it, its frame the box of the polygon (a triangle (30, 30), (190, 30), (30, 90) gives 160 by 60 about (110, 60)), in one undo step. The region outline of a clipped viewport is kept between paints and read again once the drawing has been edited (80 microseconds a call before, 0.4 after). Copied (COPYCLIP) and pasted (PASTECLIP) into another drawing the pair comes along whole, the copy of the viewport naming the copy of its boundary (group 340) and listed as its reactor, as AutoCAD 2021's WblockCloneObjects brings it, into a layout never shown after the viewport 1 of its sheet, which AutoCAD's AUDIT asks for (the drawing without it said Invalid linetype eNullObjectId changed to ByLayer); PASTEBLOCK does not take viewports (its refusal is the library's own wording: no string of AutoCAD 2021's resources says it), and a paste into model space is refused. A click on the boundary of a clipped viewport picks the pair as one object, not a list of the boundary and the viewport under it (SELECTIONCYCLING 2). An image of the layout (IMAGEOUT, PNGOUT) and its plot to a PNG show the model only inside the outline of the boundary, as the canvas does (no pixel of the model lies outside a circle clip, where an unclipped viewport shows walls beyond it); a plot to a PDF is drawn by the same renderer. Through the viewport (MSPACE) the cursor, the picks and the snaps work inside the outline alone, the thick frame follows it, and the viewport's grid is drawn inside it. CadViewportClips gives WithPartners, WithoutPartners, WhyNotClip and WhyNotMakeViewport.

Clipping a block or an external reference

XCLIP (alias XC) clips the block references and external references of the selection as AutoCAD 2021's does, word for word as its console prints them. Select objects: keeps the references, a MINSERT among them; any other object is 1 was ineligible for clipping., and a selection of none says None found. and ends. Then Enter clipping option [ON/OFF/Clipdepth/Delete/ generate Polyline/New boundary] <New>:. ON and OFF switch the clip of each reference that has one, Delete takes it off (the extension dictionary stays, as AutoCAD leaves it), and generate Polyline draws a closed polyline on the current layer along it, in the plane the boundary stands in (a boundary made in a system lifted 15 gives a polyline of elevation 15, one made in a system at (100, 50, 20) turned 30 degrees about X a polyline of the normal (0, -0.5, 0.866) and elevation -7.68, as AutoCAD 2021 writes them); each says No clip boundary found. and asks again where none of the references has a clip. Clipdepth, with no clip, says Xref must contain a clip boundary before specifying a clipdepth.; else it asks Specify front clip point or [Distance/Remove]: and Specify back clip point or [Distance/Remove]:, a distance from the boundary (a point on the screen is on the plane of the current user coordinate system, so that it is 0 from a boundary made in that system and 15 from one made in the world's when the system stands 15 higher) or Remove, Enter keeping the plane, and a front plane that is not above the back one by more than a millionth (equal planes included) says Front clipping plane behind back clipping plane. Clipdepth not applied., as AutoCAD 2021 does (front 10 with back 9.999999 refused, with 9.999998 taken). The planes are written and kept, and they cut what the block holds in height, in the units of the clip system whatever the reference's scale: the block is shown from the back plane to the front plane, planes included, and an entity that lies wholly above or below is left out. A block of a line rising from (0, 0, 0) to (100, 0, 100) and flat lines at heights -30, 10 and 30, with front 20 and back -10, shows the rising line from x 0 to 20 and the flat line at 10 (AutoCAD 2021's PNGOUT of it draws the same). A line, circle, arc, ellipse, spline or polyline (lightweight, 2D or 3D) that crosses a plane is cut at it (a circle standing on its edge, radius 30 about (50, 20, 0), with front 10 and back -10 is left as the two arcs at the ends of its width, x 20 to 21.72 and 78.28 to 80; an ellipse of semi-axes 30 and 15 standing so, the two arcs x 20 to 27.64 and 72.36 to 80; a polyline is cut in each of its line and arc segments, and at a vertex that stands on a plane; a spline where its height meets a plane, found to the millionth of its parameter), and one with dashes goes on with the pattern of the whole, as AutoCAD draws it, the pieces of a dashed line or polyline starting their dashes where those of the whole stood (the pattern of a closed curve begins at its start, so that a circle cut across its start is two pieces there); a text, an MTEXT, a hatch, a solid or a 3D face in a plane tilted out of the plan is cut where the planes meet its plane, glyph by glyph as AutoCAD cuts it: with front 20 and back 5 the strip of the plan from y 5 to 20 of a plane tilted 45 degrees about X (an upright one is seen edge-on, and drawn whole). The lines and curves of a dimension's picture, and its words, are cut like those of a block. What an INSERT in the block holds is cut by the same planes carried through its placing (a block inserted in another scaled by 2 and lifted 5, the outer one given front 20 and back -10, shows its rising line from x 0 to 15), and an external reference by the planes measured from its base point, which stands at the insertion point: the drawing whose base point is (0, 0, 10) stands 10 lower. The boundary of an external reference is kept in the drawing's own coordinates and moves with the content when the drawing's base point changes (a boundary of 20 to 80 of a drawing whose base point was 0 and is 70 now stands from -50 to 10; New boundary makes one picked at x 130 to 190 of a drawing attached at (100, 0, 0) with the base point (70, 0, 0) stand there, as the drawing's 100 to 160, as AutoCAD 2021 keeps it); the grips of the boundary place it by the origin the host's block records, which is the base point where the host was saved with the drawing as it stands. The planes are measured from the plane of the boundary, which goes with the block as the boundary does: the same block standing 15 high when it is clipped in the world's plane shows the rising line from x 0 to 5. A clip that is off shows the whole block.

New boundary asks Delete old boundary(s)? [Yes/No] <Yes>: where a reference has a boundary (No ends the command and changes nothing), writes Outside mode - Objects outside boundary will be hidden., and asks Specify clipping boundary or select invert option: [Select polyline/Polygonal/Rectangular/Invert clip] <Rectangular>:. Rectangular asks Specify first corner: and Specify opposite corner:, the sides along the axes of the current UCS. Polygonal asks Specify first point: and Specify next point or [Undo]: until Enter, refusing a point that makes a side of no length (Invalid point, polygon segment is zero length.) or crosses another (Invalid point, polygon segments cannot intersect.); fewer than three points or no area say Boundaries with zero area are not acceptable.. Select polyline takes the vertices of a polyline or a 2D polyline, open or closed, its arcs left out, a rectangle of four corners square to the UCS kept as its two corners, and says Selected object is not a polyline. for another object. Invert clip says Inside mode - Objects inside boundary will be hidden. (and the first words again when chosen twice) and keeps the part cut away, as AutoCAD does: a polygon that goes out along a slit from the vertex nearest the edge of the block's box, 5 per cent beyond its extents, round it against the turn of the polygon, and back in, 4E-5 wide. A rectangle inverted on a block 100 by 100 at (1000, 500), scaled by 2 and turned by 30 degrees, is the eleven points AutoCAD wrote. The boundary is kept in the UCS that is current, with its matrices, so that it goes with the reference when that is moved, turned, scaled or copied, as AutoCAD keeps it. Each run is one undo step, XCLIP. The context menu of an external reference offers Clip Xref.

A clipped reference is drawn inside its boundary alone, on screen, in a plot and in the images the presenter writes: every item the reference draws carries the region it is shown in (DisplayItem2.BlockClip, a DisplayClipRegion), within the region of a clipped block it stands in, and the canvas clips to it. Of a clipped reference a pick, a window and a crossing meet only what is shown: a click on a line of the block outside the boundary picks nothing, and a window round the boundary alone takes the reference. Each cell of a MINSERT is clipped by its own place, and the attributes of the reference are clipped too. The frame of the boundary is drawn over the reference in its colour while XCLIPFRAME (kept in the drawing, 0 to 2: AutoCAD's drawings write 2, a header that gives none reads 1) is not 0; at 2 it is not plotted. It is picked as the reference. CadXClips gives WorldToClip, AsRectangle, Inverted and TryUninvert. The boundary of a clip made in a system tilted out of the plan (the presenter makes none, AutoCAD does) is drawn as its projection on the plan, where it stands in AutoCAD's own plan view, while the block is shown where the boundary's prism, its lines along the boundary's normal, cuts the plane of the block: a block at height 0 clipped to the rectangle (10, 10) to (90, 60) of a system at (100, 50, 20) turned 30 degrees about X shows from y 73.09 to 130.83 (AutoCAD 2021's PNGOUT of a grid of it), the frame from y 58.66 to 101.96; an entity of the block at another height is shown where the prism meets the plane at that height (a grid at height 50 shows from y 44.23 to 101.96), a line or a curve that does not lie flat where its path leaves the prism (a line from (50, -100, 0) to (50, 100, 60) under a boundary tilted 30 degrees about X, y from -40 to 40, shows from y -54.13 to 24.61, AutoCAD 2021's PNGOUT of it giving -54.2 to 24.5), and any other entity that does not lie flat where the prism meets the block's own plane. A clip whose plane is parallel to the block's is shown as before, however far apart the two are.

EXPLODE of a clipped reference breaks the whole block, as AutoCAD 2021's does (probed on a rectangle, a polygon, a clip turned inside out and a clip switched off): a block of a square 100 by 100 and a circle, clipped to a rectangle 40 by 50, gives the whole square and the whole circle, the clip applied to neither and kept by no piece.

A selected reference that is clipped has, besides its insertion grip, the grips AutoCAD 2021's GetGripPoints gives it (probed in accoreconsole, whatever the clip's state and XCLIPFRAME): an arrow at the middle of the boundary's first side and a grip at each corner of the rectangle, from its lower left counter-clockwise, or at each vertex of the polygon, in order. A corner dragged takes the two sides it is on and keeps the opposite corner, the rectangle staying a rectangle (the corner (1020, 520) of the rectangle (1020, 520) to (1080, 570) dragged to (1010, 510) leaves (1010, 510) to (1080, 570); one dragged past the opposite corner leaves the rectangle in order; one dragged onto a side of it, "Boundaries with zero area are not acceptable."); a vertex of a polygon moves alone. The grip's point is put into the boundary's own system through the matrices the clip keeps, so that a reference moved, turned or scaled after the clip is dragged where the cursor is. In a clip made in a system tilted out of the plan the cursor is taken on the level plane through the grip, and the vertex moves by the parts of that offset along the boundary's own X and Y axes, as AutoCAD 2021's MoveGripPointsAt moves it (the corner (10, 10) of such a boundary dragged by (5, 3, 0) is (15, 10 + 3 cos 30); a reference scaled by 2, turned 30 degrees, lifted and then moved gives the same steps). A clip turned inside out is dragged the same way, its keyhole made anew about the box that holds the reference. Each drag is one undo step, GRIP, and any of the grip modes works on a corner. The arrow, a blue triangle across the first side, points to what the clip hides (down on the bottom side of a rectangle in Outside mode, up in Inside mode); a click on it turns the clip inside out, or back, at once, one undo step, with no grip edit started: a rectangle of two corners becomes the eleven points of its keyhole and returns to two corners. CadGrips.ClickClipFlip does it, and the grips are the kinds ClipVertex and ClipFlip of CadGripKind. What the console shows of AutoCAD's own arrow (a plugin on GetGripPoints): the one grip of a clip with its gizmos off, no trigger grip, no tooltip, and MoveGripPointsAt on it, by 0 or by 15 across the side, changes nothing, so that the flip is made by the click and by nothing the console can send; how the click and the arrow look on screen is the one thing not checked in AutoCAD's window.

Grip modes

A click on a grip makes it hot and starts AutoCAD 2021's grip modes (session.StartGripEdit(hotGrips)): the command line says ** STRETCH ** and asks Specify stretch point or [Base point/Copy/Undo/eXit]:, the hot grip the base point. Enter or Space goes on to ** MOVE ** (Specify move point), ** ROTATE ** (Specify rotation angle, with Reference), ** SCALE ** (Specify scale factor, with Reference) and ** MIRROR ** (Specify second point), and back to STRETCH; STRETCH, MOVE, ROTATE, SCALE and MIRROR typed, or ST, MO, RO, SC and MI, go to that mode. STRETCH moves the hot grips; the other modes take the objects selected, drawn as a ghost as MOVE draws them. Base point gives another base, Copy leaves the originals and asks again until eXit, Enter or Esc (** MOVE (multiple) **), Undo takes the last copy back, and a first point picked with Ctrl held turns Copy on. Shift+click makes several grips hot, and they stretch together: a line's two ends move it whole, and a circle's centre and a quadrant move it keeping its radius. A grip pressed and let go elsewhere is stretched there, as before. The whole grip edit is one undo step, named GRIP, and Enter after it runs the command run last. Of two lines from (0, 0), the grip at (0, 0) and MO to (10, 20) moves both; RO 90 then turns them a quarter turn about (10, 20).

Hover menus

A polyline's grips (a light one's and a 2D POLYLINE's of straight and arc segments) are AutoCAD 2021's multi-functional ones. A vertex is a square, 2 × GRIPSIZE + 5 pixels across (15 at the default of 5); the middle of a segment is a bar along it, 22 by 6 at 5 (37 by 10 at 10, 10 by 3 at 1), lying along the chord of an arc segment, which is the tangent at the arc's middle; a rotated view turns the bar with its segment. A grip under the cursor is pink (#FF7F7F, AutoCAD's GRIPHOVER) and a clicked one red, both unedged; the others are the grip colour with a 1 pixel dark edge. The grip is hit within its own square, the bar within its length by the square's side. While the cursor is inside that box, with no command running and no box or pan under way, the crosshair is drawn with its centre on the grip's point, as AutoCAD pulls it, the status bar shows that point, and a click starts the grip edit at exactly it; leaving the box, the crosshair is under the pointer again. The pointer of the operating system is not moved. The other grips follow the same size and the same colours: the triangles of an MTEXT and of a table's width, height and size are 15 across at the default and 25 at GRIPSIZE 10, the table's breaking triangle and the autofill diamond of a selected cell (14 across at the default) grow with it too, and a dynamic block's custom grips and a table cell's grips turn pink under the cursor, a custom grip red once clicked.

Once the cursor has rested 400 milliseconds on a grip, with GRIPMULTIFUNCTIONAL's bit 2 set, no command running and no second grip hot, its menu opens 19 pixels right of the grip and 24 below it (left and above where it would leave the canvas): a light popup, rows of 22 pixels, the row under the cursor highlighted, an item that cannot be chosen grey.

Grip Items
vertex Stretch Vertex, Add Vertex, Remove Vertex
middle of a straight segment Stretch, Add Vertex, Convert to Arc
middle of an arc segment Stretch, Add Vertex, Convert to Line
end of a line or an arc Stretch, Lengthen
middle of an arc Stretch, Radius
point of a spline Stretch Fit Point, Add Fit Point, Remove Fit Point (fit data), or Stretch Vertex, Add Vertex, Remove Vertex (control points)
grip of a hatch Stretch, Hatch Scale, Hatch Angle, Origin Point
extension line origin of a linear dimension Stretch, Continue Dimension, Baseline Dimension
arrowhead (end of the dimension line) of a linear dimension Stretch, Continue Dimension, Baseline Dimension, Flip Arrow
words of a dimension Stretch, Move Text Only, Move with Leader, Move with Dim Line, Above Dim Line, Center Vertically, Reset Text Position

The words, the command line texts and the prompts are those of AutoCAD 2021's grip table, read from the string tables of acdb24res.dll and acadres.dll (the console cannot show a menu: its MultiModesGripPE is not loaded, so the table was read as strings, and GetGripPoints gave the grips themselves). The middle of a line, the centre of an arc and the quadrants of a circle have no menu.

The menu closes when the cursor leaves both the grip and the menu, on Esc, on a click elsewhere, and when the selection or the command changes. A click on the grip itself is the grip edit as before, ** STRETCH **. Choosing a row calls session.StartGripAction(handle, gripIndex, action); the items of a grip are CadGripMenus.Of(document, handle, gripIndex). Each item is one undo step named GRIP, and Esc at its prompt changes nothing:

  • Stretch Vertex is the grip edit, the command line saying ** STRETCH ** as a click does: AutoCAD 2021's table of the polyline's grip modes (probed in acdb24res.dll) gives Stretch Vertex that line, ** STRETCH VERTEX ** being the section line vertex's. Stretch moves a straight segment by the offset, both ends, or bends an arc segment through the point.

  • Add Vertex says ** ADD VERTEX ** and asks Specify new vertex point or [Base point/Copy/Undo/eXit]: with the polyline drawn with the vertex at the cursor. The vertex goes after the vertex of the grip (after the last vertex of an open polyline it extends the end); a segment split keeps its widths, the width at the point being where the point falls along it. A straight segment splits in two straight ones; an arc segment in two arcs of the arc through its start, the new point and its end: a half circle from (0, 0) to (20, 0), given (10, -10), becomes two quarter circles of bulge 0.4142. Copy on keeps asking, each vertex after the one just made, until eXit, Enter or Esc, and Undo takes the last vertex made back while it runs: the polyline is read back as it was before that vertex, the segment it split with its bulge and widths, and the next vertex is asked after the one before. Undo with no vertex made yet changes nothing. The whole run stays one undo step.

  • Remove Vertex asks nothing, as in AutoCAD 2021: choosing it takes the vertex of the grip out at once (one undo step), and the polyline stays selected with its grips redrawn. AutoCAD words it "Remove vertex, and replace neighboring segments with line": the segment that now joins its neighbours is straight, whether the segment either side of the vertex was an arc or not. It is grey on a polyline of two vertices, and a closed polyline of three keeps two. A spline's fit point or control vertex goes out at once the same way.

  • Convert to Arc says ** CONVERT TO ARC ** and asks Specify midpoint of arc segment:, the polyline drawn bent through the cursor; a chord of 100 with the point 20 off its middle gets a bulge of 0.4 (the sagitta over half the chord), above nought where the point is to the right of the way the segment runs. A point on the line of the segment is refused.

  • Convert to Line asks nothing, as in AutoCAD 2021: choosing it makes the arc segment straight at once, the bulge 0 and the vertices where they were (one undo step), and the polyline stays selected. (Convert to Arc, Add Vertex and Stretch do ask for a point.)

  • Lengthen says ** LENGTHEN ** and asks Specify end point or [Base point/Copy/Undo/eXit]: (Specify end point of arc for an arc), the entity drawn with the end at the cursor. A line's end goes to where the point falls along the line's own way, the other end and the way kept: a line from (0, 0) to (100, 0) lengthened at its end by (150, 40) runs to (150, 0); a point behind the other end is refused (the line would turn round). An arc's end goes round the arc to the angle the point has from the centre, the radius and the other end kept: an arc of radius 20 from 0 to 90 degrees lengthened at its end by a point at (-10, 30) from its centre ends at 108.4 degrees; the other end, or the centre, is refused. Base point takes the point as far from the base as the grip is from where it stands. With Copy on (the header then says ** LENGTHEN (multiple) **) each point makes a copy of the entity lengthened that way and asks again, the original staying as it was; Undo takes the last copy back, and does nothing before one is made. The whole run is one undo step.

  • Radius says ** RADIUS ** and asks Specify radius or [Base point/Copy/Undo/eXit]:, with Copy and Undo as Lengthen has them: the radius is the distance of the point from the centre, the centre and the two angles kept, so that the ends move along their rays (an arc of radius 20 given a point 35 from its centre has radius 35). AutoCAD's own words for what it keeps are not in its table; the centre and the angles are this presenter's reading, not checked in the GUI.

  • A spline's menu works on its fit points where it has fit data, else on its control points. Stretch moves the point (a fit point moved makes the spline fit through it, a control point moved bends the curve); Add puts a fit point after the grip's (after the last it extends the end), or a control point where the nearest point of the curve is, saying ** ADD FIT POINT ** and Specify new fit point or ** ADD CONTROL VERTEX ** and Specify new vertex point; Remove takes the point out at once, grey on a spline of two fit points or of a degree and one control points. The small grip AutoCAD puts beside the first point to switch between fit points and control vertices (at 4 grip sizes right of and below it, probed) is not given.

  • A hatch has a grip at the middle of the box its loops fill; a hatch that follows no objects (not associative) has the grips of its boundary after it, as AutoCAD 2021's GetGripPoints gives them (probed on a rectangle 100 by 60, with an arc segment, with edges and with a circle): for each loop a vertex and the middle of the segment leaving it, so that the rectangle has (50, 30), then (0, 0), (50, 0), (100, 0), (100, 30), (100, 60), (50, 60), (0, 60) and (0, 30); a loop that is one circle has its east, west, north and south quadrants. They have no menu, and dragging one is the stretch of a polyline of the same loop: a vertex moves alone, the middle of a straight segment takes both its ends along, that of an arc segment bends the arc through the point (the arc of bulge 0.5 from (100, 0) to (100, 60) dragged to (122, 35) has its middle at (122.4, 30), as AutoCAD gives it), a quadrant sets the radius to the point's distance from the centre; the loop stays a loop of a polyline or of edges. A hatch that follows an object, a loop with an ellipse, a spline or an open polyline among its edges, and a hatch not seen from above have no boundary grips. Stretch moves the hatch; Hatch Scale says ** HATCH SCALE ** and asks Specify hatch scale: (a number, or a point whose distance from the grip is the scale), Hatch Angle ** HATCH ANGLE ** and Specify hatch angle: (an angle, or a point whose direction from the grip is the angle), Origin Point ** ORIGIN POINT ** and Specify origin point:, which lays the pattern from the point as HATCHSETORIGIN does. Scale and angle keep the origin. A solid fill or a gradient has Stretch alone, so no menu; a pattern made by the user has no scale or origin. How AutoCAD turns the cursor into a scale or an angle is not in its strings: this is the presenter's reading, not checked in the GUI.

  • A linear dimension's origins and arrowheads offer Continue Dimension and Baseline Dimension (** CONTINUE DIMENSION ** or ** BASELINE DIMENSION **, then Specify endpoint of dimension line:): the row DIMCONTINUE or DIMBASELINE makes, from the extension line origin beside the grip (the first for the first origin and the first arrowhead), in the style and overrides of the dimension; each point picked makes the next dimension, Undo takes the last back, Enter or Esc ends, and the whole run is one undo step. A level dimension of 100 from (0, 0) to (100, 0) with its line 30 below, continued from the second origin to (300, 0), gets a dimension of 200 from (100, 0) on the same line; based on its first origin, one of 300 from (0, 0) a DIMDLI further out. Flip Arrow says ** FLIP ARROW** (the string has no space) and asks Pick to flip arrowhead:; a point picked flips that arrowhead (a second time puts it back), writing the flag AutoCAD 2021 keeps in groups 74 and 75 of the dimension, and the dimension is drawn as AutoCAD draws it (probed in its console by reading a DXF with the flags set): an arrowhead inside the extension lines stands outside, with a line an arrowhead long beyond it and the dimension line drawn from its tip to where it began; one outside (a dimension of 3 with arrowheads of 2.5) stands inside, with a line an arrowhead long on inward from its back and the short line it stood on taken away. Ticks, and the arrowheads that take no room, do not move.

  • The words of a dimension offer Move Text Only, Move with Leader and Move with Dim Line (** MOVE TEXT ONLY **, ** MOVE WITH LEADER **, ** MOVE WITH DIM LINE **, each asking Specify destination point:), which put the words at the point as DIMTEDIT does under DIMTMOVE 2, 1 and 0 (the dimension line staying, a leader drawn to them, the line moving with them), keeping the DIMTMOVE as an override on the dimension where the style's is another; Above Dim Line (** ABOVE DIMENSION LINE **, Pick to place text above dimension line:) and Center Vertically (** CENTER VERTICALLY **, Pick to center text vertically with dimension line:), which write DIMTAD 1 or 0 as an override and bring words put by hand along a linear dimension back onto its line; and Reset Text Position (** RESET TEXT POSITION **, Pick to reset text to default location:), which puts them where the style does. AutoCAD's menu is not in the console, so what each item writes into the dimension is the presenter's reading of the words, not checked in the GUI.

  • A 2D POLYLINE fitted with a curve or a spline has a grip on each vertex of its frame alone, as AutoCAD 2021's GetGripPoints gives them (four for the frame (0, 0), (100, 0), (100, 60), (0, 60), whatever the curve has added), and no menu. Dragging one straightens the polyline, moves the vertex and fits it again as AutoCAD does (a curve as before, a spline by SPLINETYPE and SPLINESEGS, so that a quadratic one is refitted as a cubic where SPLINETYPE is 6): the second vertex of that frame dragged to (107, 5) fits the curve through it, the first arc of its biarc bulging 0.2976 as AutoCAD's does.

Ctrl cycling. With GRIPMULTIFUNCTIONAL's bit 1 set (1 or 3), a grip clicked and hot, and the grip edit still waiting for its first point, each tap of Ctrl (pressed and let go with no other key and no mouse button pressed between, the cycle made at the key up) goes on to the next item of the grip's menu and back to the first after the last, as AutoCAD 2021's help says of a multi-functional grip: the command line names the option and asks its own question, the grip stays hot, and nothing is written to the drawing until a point is given. A vertex of a polyline cycles Stretch (** STRETCH **), Add Vertex (** ADD VERTEX **), Remove Vertex (** REMOVE VERTEX **, Pick to remove vertex:) and Stretch again; the middle of a straight segment Stretch, Add Vertex, Convert to Arc (** CONVERT TO ARC **, Specify midpoint of arc segment:), and that of an arc segment Stretch, Add Vertex, Convert to Line (** CONVERT TO LINE **, Pick to convert to line segment:). The other grips with a menu cycle their own items the same way (a line's end Stretch and Lengthen, a spline's point its fit point or vertex words), and a grey item is skipped: a polyline of two vertices cycles Stretch and Add Vertex. Remove Vertex and Convert to Line wait for a pick when reached with Ctrl, so that the next press can leave them (the hover menu does them at once); any point picked does the edit, and Esc leaves the drawing as it was. A grip with a menu of one item, a grip edit of several hot grips, and a grip edit that has made a vertex already (Add Vertex with Copy on) do not cycle. Space still goes on to MOVE, ROTATE, SCALE and MIRROR, and a first point picked with Ctrl held still turns Copy on: Ctrl held for the click is no tap, and Ctrl+Z or any other shortcut never cycles. The window gives each tap of Ctrl to session.CycleGripOption(), once, a key held down not repeating it. The order of the options, the command line texts and the pick prompts of Remove Vertex and Convert to Line are those of AutoCAD 2021's help and string table (the same table the hover menu is read from); what a tap of Ctrl does at a prompt other than the first, and whether AutoCAD cycles Remove Vertex as a pick, are not checked in its window.

The static members are CadGrips.AddVertex, RemoveVertex, ConvertToArc, ConvertToLine, Lengthen, ChangeRadius, ChangeHatchScale, ChangeHatchAngle and SetHatchOrigin, each one undo step. A spline's fit/control switch has no menu yet.

Properties

CadProperties.Describe(document, space, handles) gives what the Properties panel shows for a selection, a CadSelectionInfo with the text of the selection box ("Circle (1)") and CadPropertyGroups of CadPropertyRows. For the circle: General (Color ByLayer, Layer Steel, Linetype ByLayer, Linetype scale 1.0000, Lineweight ByLayer) and Geometry (Center X 50.0000, Center Y 30.0000, Radius 10.0000, Diameter 20.0000, Circumference 62.8319). Entities that differ in a row show *Varies*; with nothing selected the panel shows the drawing's current colour, layer, linetype, linetype scale, lineweight and transparency, the plot style and the view.

The selection box. With objects of several kinds selected the box reads All (7) and shows only the General rows, the values that differ as *Varies*. It is a list, as AutoCAD 2021's is: All (7) first, then one row for each kind with its count, in the order of the kinds' names, so that five MTEXTs and two OLE frames give All (7), MText (5) and OLE Object (2) (CadProperties.Kinds(document, handles) gives the rows, each a CadSelectionKind with the handles of its objects). Choosing MText (5) shows what five MTEXTs alone would show, the Text and Geometry groups with the General one, and every value typed there reaches those five and no other of the seven, as one undo step; the drawing's selection stays all seven, grips and highlight unchanged. All (7) returns to the common rows. Another selection (an object added or taken away, a new pick) returns the box to All; an edit leaves the kind chosen where it is. A selection of one kind has the one row, Line (3), which is the whole selection. The Quick Properties panel has the same list in its title and works on the kind chosen in it. Beside the box are the buttons of AutoCAD's palette: Toggle value of PICKADD (PICKADD 1 and 0, shown pressed while it is 1), Select Objects (the new SELECT command, which asks Select objects: and makes the objects picked the selection, with no undo step) and Quick Select (QSELECT). AutoCAD 2021's order of the kinds in the list is taken to be alphabetical; it could not be seen in the console.

CadPropertyEditor.Set(document, handles, label, value) types a value back into a row, as AutoCAD's palette does, one undo step:

CadPropertyEditor.Set(document, new[] { handle }, "Radius", "12.5");     // Done (1); the step is 'Properties (1)'

The rows that can be set are Color (ByLayer, ByBlock, Red to White, an index 1 to 255, or 255,128,0), Layer, Linetype, Linetype scale and Lineweight of every entity; the ends of a line; the centre, radius, diameter and circumference of a circle; the centre, radius and start and end angles of an arc; the contents, height, rotation and position of a text. A value that cannot be taken, a row that cannot be set and an entity on a locked layer are refused with the reason: with Steel locked, setting the radius gives Refused: The circle 105 is on a locked layer. With nothing selected the first five rows set the drawing's current settings, which new entities take.

Picking a point on the drawing. The coordinate rows of a point show a pick-point button at their right while the row is edited, as AutoCAD 2021's palette does: Start and End X, Y and Z of a line, Center X, Y and Z of a circle, an arc, an ellipse and a viewport, Position X, Y and Z of a text, an MTEXT and a block reference, Position X and Y of an OLE object, Vertex X and Y of a polyline. A click asks Pick a point in the drawing: on the command line, with a rubber band from the point, and writes no line of history for the point picked; Esc leaves the point. The pick sets X and Y together as one undo step, the Z each object has kept: a circle about (50, 30, 0) picked at (120.5, 80.25) has its centre there, and one undo puts it back. With several objects selected, whatever their Varies rows say, all of them are set to the point picked. The button is grey while a command runs, and an object on a locked layer is refused on the command line as a typed value is. Radius, Scale X, Origin X of a hatch, Text position X of a dimension and the read-only rows have no button. CadPropertyEditor.SetPoint does the setting for the window.

The row "Text override" of a dimension is set as in AutoCAD: <> stands for the measurement, so <> TYP on a dimension of 3 000 shows 3000 TYP, and an empty text shows the measurement. The text of the dimension's own picture is written again and one undo takes it back. On a model drawing the edit goes through its owner as a hand edit (see Owners).

The other kinds have AutoCAD 2021's rows too, each set the same way:

Kind Rows that can be set Read only
Polyline Current vertex, Vertex X and Y, Start and End segment width, Global width, Elevation, Closed, Linetype generation Vertices, Length, Area
Ellipse Center X, Y and Z, Major radius, Minor radius, Radius ratio, Start and End angle Area
Hatch Type, Pattern name, Angle, Scale, Spacing, Double, Origin X and Y, Elevation, Island detection, Background color Associative, Area
Dimension Dim style; the Lines & Arrows, Text, Fit and Primary Units rows of the Dimension Style dialog's variables; Text override; Ext line fixed and Ext line fixed length (DIMFXLON, DIMFXL), Fill color, Fractional type, Text position X and Y, Text view direction Measurement
MTEXT Contents, Style, Justify, Direction, Text height, Rotation, Line space factor, distance and style, Defined width, Columns, Position
Block reference Position, Scale X, Y and Z, Rotation, each attribute by its tag, the Custom rows of a dynamic block Name (a dynamic block's own for its anonymous copy)
Viewport Center, Height, Width, On, Display locked, Standard scale, Custom scale Clipped, Visual style
Multileader Multileader style, Leader type, Arrowhead, Horizontal landing, Landing distance, Contents, Text style, Text height

Current vertex steps through a polyline's vertices and is no step of undo (CadSelection.CurrentVertex): on the rectangle (0, 0) (30, 0) (30, 20) (0, 20), vertex 3 shows Vertex X 30.0000 and Vertex Y 20.0000, and Vertex Y typed as 25 moves that corner alone. A row of a dimension is written as an override of its variable, the style left as it is, and the dimension drawn again: Precision 0.000 with Suppress trailing zeros No and Dim suffix " TYP" turns a dimension of 300 under ISO-25 into "300.000 TYP". Arrow 1 makes the arrows separate (DIMSAH), the other end keeping the arrow it showed. Ext line fixed On with a length of 10 draws, for points 30 from the dimension line, extension lines that start 10 short of it, as AutoCAD 2021 draws them. Text position X and Y move the words as DIMTEDIT moves them: under DIMTMOVE 0 a linear dimension's line moves to run through the point, as AutoCAD 2021 moves it, so words of DIMTAD 1 at 50, 21.875 above a line at 20 set to X 30 keep the Y, the line moves up to 21.875 and the words stand above it again; under 1 and 2 the line stays. Angle, Scale or Pattern name of a hatch keeps its origin, as AutoCAD keeps it: ANSI31 at (2, 0) turned to 30 degrees still starts at (2, 0). A Major radius of 40 scales an ellipse of radii 20 and 10 whole, to 40 and 20; a Minor radius above the major is refused. A Height or Width of a viewport keeps its scale, the view growing with it. A row of a list (CadPropertyRow.Choices) is a drop-down in the window, and the Contents row of one MTEXT offers its MTEXT editor.

A dynamic block reference has the Custom group between Geometry and Misc (CadProperties.CustomGroup), as AutoCAD's palette: each property it shows and the visibility state shown holds, by its name. A visibility state, a lookup's row and a flip's state (by the names its parameter gives them, Not flipped and Flipped) are drop-downs; a distance is typed to 4 places, an angle in degrees. Its rows are set by the property's name through CadDynamicBlocks.SetProperty, one undo step Properties, a value taken to the value set: the panel's Width typed 170 is 150. Misc's Name reads the dynamic block's name, not that of the anonymous block the INSERT places.

MATCHPROP

MATCHPROP (MA) asks for the source object, says the settings it copies ("Current active settings: Color Layer Ltype Ltscale Lineweight Transparency Thickness PlotStyle Dim Text Hatch Polyline Viewport Table Multileader") and asks "Select destination object(s) or [Settings]:". Settings shows the Property Settings dialog, whose check boxes are CadCommandSession.MatchProperties, every one until changed: with Layer alone checked, a red line matched to a line on Steel goes to Steel and stays red. The special properties are copied between objects of one kind: a dimension's style and its overrides (drawn again), a text's or an MTEXT's text style and height (and a text's oblique angle and width factor onto a text), a hatch's pattern, angle and scale or spacing and double, or its gradient (name, angle, shift, tint and colours), the destination keeping its origin, a polyline's linetype generation and its width where the source has one width all along, a viewport's scale, display lock and frozen layers, a table's table style and a multileader's style. Material, Shadow display and Center object are greyed; Plot style is copied in a drawing of named plot styles and greyed where plot styles follow the colour.

Layers

CECOLOR, or the colour box of the Properties panel, sets the colour new objects take: ByLayer, ByBlock, a name or an index 1 to 255. A line drawn after CECOLOR red is red; a true colour is refused, because the header holds an index.

Click a layer's colour in the Layer manager to choose it in Select Color: a colour of the index (1 to 255) or a true colour. A true colour is kept in the file as red, green and blue (group 420), with the nearest colour of the index beside it (group 62) for programs that read only the index. AREA after Add area keeps a total: a rectangle 100 by 50 added and a circle of radius 10 taken away leave Total area = 4685.8407. SCRIPT reads a .scr file as AutoCAD 2021 does: a space, a tab and the end of a line are each Enter, so LINE 0,0 10,0 is LINE, two points and an Enter that ends it, two spaces in a row are two Enters, and a blank line is Enter. Where the prompt takes a line of text (the text of TEXT, -MTEXT, MLEADER and LEADER, dimension text, a description, an attribute's value, a scale's name, a parameter's name and expression, a text variable such as DIMPOST or POLARADDANG) the rest of the line is the text with its spaces; a prompt for a name, a file name or a list of names ends at a space as in AutoCAD, so -LAYER N A B makes the layer A and takes B as the next option, and -RENAME LA A B renames A to B. A form of AutoLISP in parentheses keeps its spaces and may run over lines. A line whose first character is a semicolon is a comment, and a semicolon after a space is a word. It stops at the first word refused.

CadLayerEditor makes the edits of the layer table that the layer box, the Layer manager and the LAYER command make, each one undo step, refused where AutoCAD refuses:

Call Does Refused when
Add(document, name) a layer of colour White and linetype Continuous the drawing has a layer of the name, either case: Layer "notes" already exists.
SetCurrent, SetOn, SetFrozen, SetLocked the flags a frozen layer is set current: Cannot set a frozen layer current.
SetColor, SetLinetype, SetLineWeight the look
SetTransparency, SetPlottable, SetDescription the transparency (0 to 90 per cent; 50 is written as the alpha 127), whether the layer is plotted, its description a transparency outside 0 to 90: Transparency is from 0 to 90.; a description of several lines
SetPlotStyle(document, name, plotStyle) the layer's plot style, a name of the drawing's plot style names (Normal), letters of either case the same a drawing plotted by colour: The drawing plots by colour: a layer has no plot style of its own to set.; a name the drawing has not: The drawing has no plot style named "Style 9".; a layer of an xref
Delete the layer objects are on it: Layer "Steel" cannot be deleted: objects are on it.
Rename(document, name, newName) the name, with every object on the layer; the spaces around it taken off, letters of another case taken layer 0: Cannot rename layer "0".; a name used, either case: A layer named "DIM" already exists.; an empty name, a character a name cannot hold (< > / \ " : ; ? * | , = and the backquote) or a layer of an xref: Invalid layer name.

LAYERP (alias 2, the Previous button of Home › Layers) puts back the last change or set of changes made to the settings of layers, and nothing else: on or off, frozen, locked, plot, colour, linetype, lineweight, transparency and the current layer. Repeated, it goes back one set at a time. A set is what one command does (LAYISO turning off nine layers and moving the current one is one set), everything the Layer manager changed between its opening and its closing, or one change made on its own, as the layer box makes one. A layer added, renamed or deleted is not a setting: it stays, and a layer renamed or deleted since is left out. The words are AutoCAD 2021's: Restored previous layer status., then where they apply *Warning* The current layer is turned off., *Note* The previously current layer was not set because it no longer exists. and *Note* The linetype of one or more layers could not be restored because the linetype is no longer loaded.; with nothing kept *No previous layer status*. LAYERP is one undo step, so U after it brings the change back, and the next LAYERP takes it again; a layer edit undone with U is taken out of the sets with it. LAYERPMODE asks Enter LAYERP mode [ON/OFF] <ON>:: with OFF changes are no longer kept and LAYERP says Layer-Previous is disabled. Use LAYERPMODE to turn it on.; the mode is CadDocument.LayerPreviousMode, and BeginLayerSet and EndLayerSet make everything between them one set, as the Layer manager does. At most 100 sets are kept. LAYERPMODE is a command in AutoCAD 2021 and not a system variable (SETVAR says Unknown variable name.), and here too. The viewport overrides of a layer (VP Freeze and the rest) are not kept.

The Layer manager renames a layer in place: F2, a slow second click on the chosen name, a double click on it, or Rename Layer (F2) of its right-click menu opens the name cell with the whole name chosen; Enter or a click elsewhere keeps the name typed, as one undo step, Esc keeps the old one. Layer 0 and a layer of an xref are refused at once, the cell left shut and the message shown (Rename Layer is greyed for them); a name used or one with a character a name cannot hold is refused on Enter, the message shown and the cell left open with the name typed. The messages are AutoCAD 2021's -RENAME ones, checked in its console; Defpoints is renamed, as -RENAME and entmod rename it there.

A layer turned off or frozen takes its entities out of the display lists; a locked layer keeps them drawn but out of any selection a command gathers. IsLocked(database, name) asks.

LAYMRG and LAYDEL (and -LAYMRG and -LAYDEL, which are the same here) ask as AutoCAD 2021's command line forms do (probed in its console): Select object on layer to merge or [Name]:, which takes an object on each layer or a name, until Enter; after the first layer [Name/Undo], and each answer is followed by Selected layers: DOOR,TRIM.; Undo takes the last one out. Name asks Enter layer name or [?]: (? lists the layers that match, one on a line); a name the drawing has not says Invalid Layer name. and asks again. The current layer is refused (Cannot merge current layer., Cannot delete current layer.), and so is layer 0 (Cannot delete layer "0".). LAYMRG then asks Select object on target layer or [Name]: (the layer itself again says Cannot merge a layer with itself. Layer DOOR is already selected.), both write a warning, You are about to merge layer "DOOR" into layer "WALL". or You are about to delete layer "B" from this drawing. (several: You are about to merge 2 layers into layer "E"., or the following layers with each name on a line), and ask Do you wish to continue? [Yes/No] <No>:; with No, Operation aborted.. With Yes, LAYMRG puts every object of the layers merged on the target (model space, the layouts, every block's definition and the attributes of block references), LAYDEL erases every object on them, and both delete the layers (Deleting layer "DOOR"., 1 layer deleted.), one undo step. A layer a viewport of a layout freezes is thawed there first. The dialogs the plain names open in AutoCAD are not built: LAYMRG and LAYDEL ask on the command line. A drawing with a line on WALL, a line and a circle on DOOR and a block holding a line on DOOR has all four on WALL after DOOR is merged into it. CadLayerEditor.Merge(document, names, target) and DeleteWithObjects(document, names) do the same without the questions; they refuse layer 0, Defpoints, the current layer and a layer of an xref.

LAYCUR asks Select objects to be changed to the current layer: and puts them on the current layer, saying 2 objects changed to layer "B" (the current layer). (for one, as AutoCAD words it, One object changed to layer B (the current layer).); objects on a locked layer are left, with 1 was on a locked layer.. COPYTOLAYER (and -COPYTOLAYER) asks Select objects to copy:, then Specify the destination layer name or [?/= (select object)] <0>: with the current layer as Enter: a name, ? for the list, or = to take the layer of an object picked. A name the drawing has not asks The layer 'Cable' does not exist. Do you want to create it? [Yes/No]:. The copies are made on the layer at once (1 object(s) copied and placed on layer "Steel".) and Specify base point or [Displacement/eXit] <eXit>: moves them: two points (the second, or Enter, use first point as displacement), or Displacement and a vector; eXit leaves them where the originals stand. The copy and the move are one undo step. A name with a character a layer name cannot hold says Invalid characters in layer name. and asks again.

LAYWALK and LAYTRANS

LAYWALK shows AutoCAD 2021's LayerWalk dialog, and the layers selected in its list are the only ones shown in the drawing while it is open: every other layer is turned off, and a layer selected that was frozen is thawed. A drawing of the layers WALL, DOOR and TRIM, walked on DOOR, shows the objects on DOOR alone; with nothing selected every layer is as it was. The filter box takes wild cards as the layer filters do (W*,T?IM lists WALL and TRIM), Select Objects hides the dialog for Select objects on the layers to walk: on the canvas and shows it again with the layers of the objects selected, and Purge Layers (a button and an item of the list's menu) deletes the unused layers among those selected, saying 2 layers purged.; a layer in use, the current layer, 0 and Defpoints are kept, and a layer nothing is on is written in italics. Restore on exit, ticked at first, puts every layer back as it was when the dialog closes; cleared, the walk stays in the drawing. The walk is edits of LAYWALK's one undo step, so Undo after a walk that stayed takes it back whole. AutoCAD has no command line form of LAYWALK, and with no window the command says so. The same is done from code with CadLayerWalkRequest (Walk, WalkLayersOf, Purge, Restore, Filter).

LAYTRANS shows the Layer Translator: Translate From lists the layers of the drawing (a layer of an external reference is left out, and a layer something is on says "In use"), Translate To starts with the same layers, and Load… adds those of a standards file, a .dws, .dwg, .dwt or .dxf read by the library's own readers, a layer of a name the list has taking the file's colour, linetype, lineweight, transparency and plot style. Map maps the layers selected on the left to the layer selected on the right, Map same maps every layer to the layer of its name, New… adds a layer to Translate To, and each mapping shows the layer it goes to with its settings in the Layer Translation Mappings list, where Edit… changes the colour, linetype (Select Linetype), lineweight, transparency (0 to 90) and plot style one mapping gives without touching the file's layer, and Remove drops a mapping. The selection filter box and Select pick the layers of the left list that match a pattern. Save… writes the Translate To list as a .dws (a DWG, the extension AutoCAD gives its standards files) with the mappings kept in it, and Load reads them back for the layers of the drawing that are not mapped yet; the mappings are kept as an XRECORD OPENCAD2D_LAYTRANS_MAP of the file's named objects dictionary, which AutoCAD does not read (a .dws that AutoCAD writes loads as layers alone). Settings… has six switches, all on at first: Force object color, linetype and transparency to ByLayer (for the objects of the layers translated), Translate objects in blocks (off, the definitions of blocks are left as they are and a layer an object in a block is on is kept), Write transaction log and Show layer contents when selected (a layer selected on the left shows its objects alone, the others turned off, until the selection changes or the dialog closes). Translate makes the layers translated to where the drawing has none (the linetype copied from the standards file where the drawing has none, Continuous where the file has none either), gives the one the drawing has the settings of the mapping, puts every object of each layer translated, in model space, the layouts and the blocks and the attributes of the references, on the layer it is mapped to, and deletes the layers translated from but layer 0, Defpoints and any layer another mapping goes to; the current layer translated away is replaced by the layer it went to. A drawing with 40 lines on OLD-WALL and 12 on OLD-DOOR, mapped to WALL (colour 3) and DOOR of a standards file, has the 52 lines on WALL and DOOR, WALL green, and neither old layer, in one undo step named LAYTRANS. The log, plan.log beside plan.dxf, says Layer OLD-WALL translated to layer WALL: 40 objects., Layer WALL created. and Layer OLD-WALL deleted.. A drawing of R2000 or older has no true colours or transparency, and those of a mapping are left out. The Manage tab's CAD Standards panel has Layer Translator (Configure and Check stay parked). Without a window LAYTRANS says it is the window's dialog. CadLayerTranslatorRequest (Load, Map, MapSame, NewLayer, Edit, Remove, Save, Translate, Settings) and CadLayerEditor.Translate do it from code.

Layer manager columns and filters

Besides Name, On, Freeze, Lock, Colour, Linetype and Weight, the Layer manager lists the columns of AutoCAD 2021's Layer Properties Manager that follow them: Transparency (0 to 90 per cent, typed or chosen in the cell, set when the cell is left or Enter is pressed; 50 is kept as the alpha 127 in the layer's AcCmTransparency data), Plot Style, Plot (the printer icon: the layer is printed; flag 290 of the layer) and Description (one line, the second text of the layer's AcAecLayerStandard data, set when the cell is left or Enter is pressed). Each is one undo step, refused as -LAYER refuses it, the refusal said on the command line. Plot Style reads Color_7 for a layer of colour 7 and is grey while the drawing plots by colour ($PSTYLEMODE 1, a CTB table), as AutoCAD greys it; in a drawing of named plot styles it is a list of the names the drawing's plot style dictionary (ACAD_PLOTSTYLENAME) holds and sets the layer's group 390. The plot style tables themselves (.ctb and .stb files) are not read here: the names are those of the dictionary. -LAYER offers PStyle (after Plot) only in a drawing of named plot styles, as AutoCAD 2021 does: Enter Plot Style Name or [?] <Normal>: (? lists the names; a name the drawing has not is Unknown plot style. and asked again; Enter goes back to the options), then Enter name list of layer(s) for plot style name Style 1 <0>:.

The Name column is one fixed width, 140 to begin with, for the header and every row, so scrolling a long list never moves a column: a drawing of 367 layers whose names run to 130 letters keeps its columns where they are from the top of the list to the bottom. A name longer than the column is cut with an ellipsis and shown in full as a tooltip. Drag the right edge of the Name head to resize the column (80 to 600); the table scrolls sideways where the columns do not fit the dialog.

The tree on the left of the table is AutoCAD's filter tree. Under All come the filters the drawing keeps, by name, each nested filter under its own, then the three AutoCAD makes: All Used Layers, Unreconciled New Layers (always empty: the library does not reconcile layers) and Viewport Overrides. Choosing a node lists the layers it lets through, and the status line under the tree says how many: Walls: displaying 1 of 3 layers. A nested filter lists the layers that pass it and every filter above it. Invert filter lists the layers the filter lets through not (Walls (inverted): ...). Apply to layers toolbar makes the layer box of the ribbon list only the layers of the filter (the current layer is always in it). The filter chosen when the dialog closes is kept in the drawing as the current one, as AutoCAD keeps it (group 290 of its XRECORD), one undo step when it changed; Invert filter and Apply to layers toolbar are kept per open drawing, where AutoCAD keeps them in its profile.

A property filter is made with New Property Filter (the Property button above the tree, or its right-click menu), which opens Layer Filter Properties: the filter name (Properties Filter1 or the first free), the definition as rows of cells, one cell for each column of the Layer manager (Name, On, Freeze, Lock, Colour, Linetype, Lineweight, Transparency, Plot Style, Plot, New VP Freeze, Description, VP Freeze) and a preview of the layers that pass, kept up to date as a cell is edited. A layer passes a row when it passes every cell of it, and the filter when it passes one row; Add row adds another way to pass. A text cell takes AutoCAD's wild cards (*, ?, [AB], a leading ~ for not; a comma is not "or"), letters of either case the same: 1_Arch* in Name, 1* in Colour (an index, 10,20,30 for a true colour, or a name of Red to White), 50 in Transparency. The definition is kept as AutoCAD keeps it, in the filter's XRECORD: NAME=="1_Arch*" AND OFF=="False" OR NAME=="*dim". A definition the rows cannot show (a property twice in a row, !=) is shown as text and edited as text. A group filter (New Group Filter, named Group Filter1 or the first free, its name open for a new one) is given layers by dragging them from the table onto it, by "Add to Group Filter" of a layer's right-click menu, or by Select Layers, Add or Replace, of its own menu, which takes the layers of the objects selected in the drawing before the Layer manager was opened (AutoCAD hides the dialog and asks for objects). A new filter is nested in the filter chosen where it is one of the drawing's, else at the top. Rename (F2), Properties (a double click on a property filter), Convert to Group Filter (a property filter becomes a group of the layers it shows) and Delete (Del; the filters nested in it go with it) are in its right-click menu; the filters AutoCAD makes are not renamed or deleted.

CadLayerFilters reads and edits the filters (Read, AddProperty, AddGroup, SetExpression, Rename, Delete, SetLayers, ConvertToGroup, SetCurrent, Visible); each edit is one undo step. A filter is an XRECORD of ACLYDICTIONARY in the layer table's extension dictionary, written as AutoCAD 2021 writes it (1 AcLyLayerFilter, 90 1, 300 name, 301 expression; a group 1 AcLyLayerGroup, 90 1, 300 name and a 330 for each layer; 290 1 on the current one; a nested filter in an ACLYDICTIONARY of its own XRECORD's extension dictionary, the keys *A1, *A2). AutoCAD 2021 read a drawing of ours back with the same tree, in DXF and in DWG of R2010, R2013 and R2018, and read the filters of a drawing it wrote and ours changed. A filter only ACAD_LAYERFILTERS keeps (AutoCAD 2004 and earlier) is listed and, when changed, moves to ACLYDICTIONARY with its old record taken out; a drawing older than AutoCAD 2000 keeps no filters. CadLayerExpression reads and tests the expressions: it passes the layers AutoCAD 2021's LayerFilter.Filter passed in its probe (NAME=="A*", COLOR=="30", LINEWEIGHT=="0.50", TRANSPARENCY=="50", PLOTTABLE=="False", OFF=="True" and the rest).

Layers in the viewports of a layout

While a layout is current the Layer manager shows AutoCAD 2021's VP columns: VP Freeze, New VP Freeze, VP Color, VP Linetype, VP Lineweight, VP Transparency and VP Plot Style. They act on the viewport worked through, else on the one viewport selected on the paper, and are grey with neither; on the Model tab they are hidden. A value that differs from the layer's own in that viewport alone is marked blue. VP Plot Style reads Color_7 and is grey in a drawing plotted by colour (a CTB table), as AutoCAD's. Its right-click menu has "VP Freeze Layer in All Viewports", "VP Thaw Layer in All Viewports", "New Layer VP Frozen in All Viewports" and "Remove Viewport Overrides for", on the layers chosen or all, in the current viewport or all; and "Isolate Selected Layers", which turns off every layer but those chosen, the current one too where it is not chosen, one undo step, as AutoCAD's help describes the item. CadViewportLayerEditor makes these edits, each one undo step:

Call Does
TargetViewport(document) the viewport the columns act on: the one worked through, else the one selected alone
SetFrozen(document, viewports, layers, frozen), SetFrozenInAllViewports the layers frozen or thawed in viewports, the viewport's own list (group 331)
SetFrozenInNewViewports(document, layer, frozen) the layer frozen in each viewport made from now on (flag 2 of its group 70); MVIEW freezes it in the new one
AddFrozenInAllViewports(document, name) a new layer frozen in every viewport of every layout
SetColor, SetLinetype, SetLineWeight, SetTransparency, SetPlotStyle an override of the layer in one viewport
RemoveOverrides(document, layers, viewport) the overrides taken out, in one viewport or, given null, in all

The display draws a viewport without the layers frozen in it and with its overrides: the layer TEXT, cyan, overridden red in the plan viewport is drawn red there and cyan in the detail viewport. Transparency is not drawn, the layer's own nor an override.

VPLAYER asks Enter an option [?/Freeze/Thaw/Reset/Newfrz/Vpvisdflt]: until Enter, all one undo step. Freeze, Thaw and Reset take layer names, with commas and wild cards (D*,TEXT), or on Enter the layers of objects selected, then the viewports: [All/Select/Current/Except current] <Current>:, All being those of the layout shown; on the Model tab every viewport of every layout. Reset sets each layer as its New VP Freeze says; Newfrz adds layers frozen in all viewports (a name with a character a layer cannot hold says Invalid layer name. and the command goes on with the next); Vpvisdflt sets New VP Freeze; ? lists the layers frozen in a viewport. LAYVPI, through a viewport, freezes the layer of each object picked in every other viewport, of all layouts or of the current one (Settings), and Undo thaws the last again.

See also