Repository navigation
OpenCAD2D 2.1.1, a free 2D CAD program for Windows that works like AutoCAD 2021.
Security fix. In 2.1.0 a Python tool's requirements.txt could make pip run a package's build code before you were asked to install its packages (a line such as evil --no-binary evil). 2.1.1 reads requirements.txt against an allow-list (package names, extras, versions and a marker only) and pip installs wheels only. Update if you use Python tools from others.
This release also carries the fixes of a full review of the code since 2.1.0: drawings are saved through a temporary file with a .bak (ISAVEBAK), AutoLISP entmod and the settings file can no longer be corrupted, CTB plot styles pick the pen by colour index, and many more, listed below.
The setup OpenCAD2D-Setup-2.1.1.exe is attached below (per-user install, .NET included, no administrator needed). The Python package is pip install opencad2d==2.1.1. Tools made by others: https://opencad2d.com/share
Changes since 2.1.0
- FIXED. A setting an
@on_unloadfunction sets as the app closes is written to the settings file (the save was posted to a
window thread that no longer ran, so it was lost).run_manycalled from a tool folder the app imports by its path (named like a
module, or with a dot) raises aValueErrorthat says why for more than one worker or atimeout, where the workers could not
import the function and failed with a traceback each. - FIXED. A Python tool's snap finder that reads
setting()is answered while a command of the same tool waits at a prompt
(get_point,get_entity,cmd(..., PAUSE)): the finder's thread has a connection of its own to the channel of the tools, where
before it waited for the prompt's, so the tool's snaps were dead while the user picked a point for it (the question went
unanswered until the prompt ended). - FIXED.
@on_unloadruns when the app closes, as the guide says: each tool's process is told to leave and given up to 5
seconds altogether to run its unloaders before it is ended (a tool in the middle of a command is ended at once). A tool's token
is taken back only after its unloaders have run, so an unloader can read and set the tool's settings; what an unloader prints goes
to the app's log. Theon_unloadexample no longer callswrite, which raises there. - FIXED.
connect()inside a Python tool connects to the channel of the tools, the app that started the tool, as the guide says:
it needs no "Allow other programs to connect" and is the right app when several are running (before it raised "No OpenCAD2D is
running" with the setting off).connect(pid=...)andconnect(drawing=...)look for a running app as before. - FIXED. Text a tool command printed without ending the line, before it failed or was cancelled, no longer starts the first line of
the next command (abchello): it is written to its own run, or dropped where the app has ended the run. - FIXED.
run_manyno longer lets one item bring the run down: a value the caller cannot rebuild is that item's error with a
timeout (it raised out of the call) and in the pool (it broke the pool, failing every item after it), and an item that calls
sys.exitis its error in the pool, withworkers=1and with a timeout (it raisedSystemExitout of the call, or was a
lost worker). - FIXED. A tool whose folder is named like a module that is loaded or installed (
json,queue) or has a dot or a space in its name
(Stairs.v2) loads and binds its commands: it is imported by its path under a name of its own. A snap finder that raises with a
lone surrogate in its message (an unpaired one in a Windows file name) no longer ends the tool's snap thread for good: the question
is answered with an error and the next is answered. - FIXED. The DrawRandom Python sample (PYRANDOM) ends cleanly on Enter at "Specify opposite corner" instead of failing with an
AttributeError. - FIXED. The guide's stub numbers are those of the generator now (938 types, 19 547 members, 19 namespaces, 36 members named
None,TrueorFalse, three types writtenAny), the Ctrl+C sentence for the pool path ofrun_manysays that the running
items are not waited for, and the tool tests oftests/pythonrun on both runtimes, as a tool does on a machine without .NET 8. - FIXED. A Python tool whose packages could not be installed no longer leaves a half-made venv behind: deleting it is tried again,
five times in 1.5 s, where a virus scanner or the indexer still holds a file of the pip run that has just ended (a single try that
failed left the folder in place). - FIXED. Uninstalling OpenCAD2D removes the .dxf and .dwg file association on a first install too: the uninstaller's check of
the registry ran when the setup was run, before the association existed, so it never ran--unregisterand a double-click on a DXF
afterwards said "Windows cannot find ...OpenCAD2D.exe".OpenCAD2D.exe --unregisternow decides when it runs: it leaves an
association that names another folder's OpenCAD2D.exe and removes one that names itself. - FIXED. A setup over an installed OpenCAD2D no longer overwrites a sample Plugin or Python tool you edited (a sample folder you
deleted comes back), and uninstalling removes the__pycache__that running a sample Python tool wrote. - FIXED.
OpenCAD2D.exe --screenshotremoves its settings and plugin folders under the temporary folder when it ends, and those
of earlier runs that were killed or are a day old; they piled up (1 960 folders, 137 MB after a test run). - FIXED. A save no longer writes over the drawing in place: the file is written to a temporary file beside it (
plan.dxf.<guid>.tmp)
and put in the place of the old one only when whole, so that a disk that fills, a share that drops or a crash part way leaves the old
file as it was (the old way left a truncated file and no other copy). Where the replace is refused (a file another program holds) the
finished file is copied over, as a plain write would, so a save never fails where the old way worked; a drawing that is a symbolic link
is written where it leads. QSAVE, SAVEAS and SAVE keep the old file asplan.bakbeside it, for a DXF and a DWG, as AutoCAD does with
ISAVEBAK 1 (a read-onlyplan.bakis cleared and replaced; one another program holds is left and the save made without a
backup, said in the log). NEW. ISAVEBAK (1 at the start, 0 for no backup) is kept in Global settings (saveBackup), as AutoCAD keeps it in
its registry, so every drawing and session follows it, and so do the saves Remote and the MCP attached to the app make (they go
through the window's Save As); only the MCP's local backend and plugin code callingCadDocument.Save/SaveAskeep no.bak.
A file another program holds open is still written, by copying the finished file over it, with the old one copied toplan.bak.
DXFOUT, the autosave copy and the other drawing writers (WBLOCK, the transmittal) are atomic too. - FIXED. A typed SAVEAS (FILEDIA 0 or no window), QSAVE of a drawing with no file, and DXFOUT onto a file that is there now ask
"A drawing with this name already exists." and "Do you want to replace it? :" and write only on Yes, as AutoCAD 2021 does (checked in
accoreconsole: SAVEAS asks after the file, DXFOUT after the settings, and a SAVEAS to the drawing's own file does not ask); the file was
replaced without a word, and a script written for AutoCAD that answers Y had its answer read as a command (Unknown command "Y"). - FIXED. RECOVER opens a DWG: it is read by the DWG reader and audited with its errors fixed, as a drawing of no file "plan.dwg
(recovered)"; a sound DWG was read as DXF text and gave "Nothing could be recovered". - FIXED. UNDO Mark and Back work as AutoCAD's marks do: marks stack, Back goes to the latest and uses it up (the next Back goes to
the one before, or asks "This will undo everything. OK?"), and a mark whose step an undo has taken back is gone; before, one place was
kept for ever, so a second Back said "Mark encountered" at a mark that was no more, and left objects erased. - FIXED. UNDO Control One keeps the last step alone after REDO too: after
U U,UNDO Control One,REDO REDOa second U still
undid the step before the last. - FIXED. DXFOUT, and the MCP tools that write a copy, write the objects ISOLATEOBJECTS or HIDEOBJECTS hid as shown, as SAVEAS does:
the copy of a drawing with one line isolated held every other object invisible. - FIXED. A tangent, parallel or other constraint solves far from the origin: a drawing in millimetres on a national grid
(X near 5E8, Y near 2.3E9) answered "Constraints cannot be satisfied" or left the objects not tangent, as the solver's steps and
tolerances were those of a drawing near the origin. Drawings within 1E6 mm of the origin are solved as before, bit for bit. - FIXED. A constraint correction of 0.1 mm at 2.3E9 mm from the origin is written to the object: the solution was taken for rounding
where it differed by less than 1E-10 of the number (0.23 mm there); the threshold stops growing at 1E6 (1E-4 mm). - FIXED. A save writes the editing time and the user's timer into the file (
$TDINDWG,$TDUSRTIMER,$USRTIMER), as AutoCAD does,
so TIME's total editing time and the timer carry on from the earlier sessions; they went back to what the file held when it was opened.
The clocks of TIME now start when the drawing is opened, not when TIME is first used. - FIXED. PASTECLIP of viewports copied on a layout into model space no longer puts VIEWPORT objects there: they are left out and
said, and the other objects pasted. - FIXED. Windows logging off, shutting down or restarting no longer ends OpenCAD2D with no question: the app asks
"Save changes to ...?" for the drawings with changes, as AutoCAD does, and Cancel stops the logoff or shutdown. Before, 9 minutes
of work since the last autosave were lost to a Windows Update restart. - FIXED. A drawing double-clicked in Explorer while the first start still shows a startup question (a plugin outside the
trusted folders) no longer ends in "Object reference not set to an instance of an object" with the drawing never opened: it is
kept and opens once the window runs. - FIXED. A pan with the middle button no longer sticks on when Alt+Tab, the Windows key or a prompt of another program takes the
mouse away: the view stopped following the mouse with no button held. Esc ends a pan too, and a box or a grip press that loses
the mouse is dropped. - FIXED. A fault that comes back while the "An error occurred" box is up (a timer or a render pass raising it again) is written
to crash.log but no longer stacks a second box on the first. A fatal error is written once, not twice, and an out of memory error
first saves the autosave copies of the drawings with changes and says so in its box. A crash log path the system refuses
(C:\a:b) no longer throws from the log. - FIXED.
(getfiled "Pick" "" "dwg|dxf" 0)opens the dialog (withdwg;dxfas the filter) instead of "internal error". - FIXED. Esc closes the Blocks palette, Load/Unload Applications and the Geometric Tolerance Symbol and Material Condition
pickers; Enter in the "Save changes to ...?" question answers Save, as in AutoCAD. - FIXED. DRAWINGRECOVERY shows one Drawing Recovery palette, brought to the front and given the new list, not another palette
on top each time it is typed. - FIXED. The MCP
savewith a path no longer replaces any file it is given:save path "C:\plans\A-101.pdf"over the plot of
that sheet wrote DXF text into the PDF, andsave path "...\other.dxf"replaced another drawing, with no question. It now takes
only.dxf,.dwgand.dwt(.dxfwhere there is no extension) and refuses a file that is there ("is there already") unless the new
argumentoverwriteistrue, assave_as,plot_pdfand the other writers do; the drawing's own file needs nooverwrite. - CHANGED. The MCP file tools (
save,save_as,plot_pdf,export_svg,export_to_file,open_drawing,check_standard,
compare_drawings) refuse a relative path with "Give a full path": it was read from the folder the client started the server in
(Claude Desktop's install folder, System32), which nobody had told the agent. - FIXED.
CadApplication.GetRunning(),new CadApplication()and the MCP--attachlookup no longer throwAccess is denied
when a stale instance file in%LocalAppData%\OpenCAD2D\Remotenames a process id that now belongs to a process the client may
not open (System, a service, another user's; 117 of 388 processes on a test machine). Such a file is not listed. A file whose
process id was taken by an ordinary program is ignored and removed, where it counted as a running app and made
new CadApplication()wait 5 seconds and fail: the app now writes when its process started into its file (processStarted), and
a client compares it with the process that has the id (an older file is judged by its write time). - FIXED. An MCP server attached to the app looks for it again when OpenCAD2D is closed and started again (a new process, a new
pipe): every tool failed with "did not take the connection" until the MCP client itself was restarted. It looks again only when
the old process is gone, not when the app refuses a request as busy (the drawing chosen is kept then), and it does not go on
with the new app unannounced: the first call says "OpenCAD2D was restarted ... open it again with open_drawing", so no call acts
on another app's active drawing. A server started with--pidstill says its process is gone. - FIXED.
CadApplication.GetRunning()waits at most 2 seconds for each app: an app whose window was busy with a long command
(a regeneration, a big hatch, another program's 30-secondSendCommand) held the call for as long as it lasted, and every app
listed after it. It is now listed with no drawings, as the documentation said. - FIXED. The Remote client (
RemoteJson, and the numbersCadRemoteRun.RunCommandtypes) writes and reads a coordinate as the
same double between .NET Framework and .NET 8. Framework's"R"text read a unit in the last place off on .NET 8 for 48 of
1 000 000 random coordinates (9869.0054891021009was written as9869.0054891021), and Framework's own parser read 508 of 1 000 000
numbers written by .NET 8 a unit off (4330.910343830898came back as4330.9103438308985). On the Framework a number is now written
in the first of 15, 16 and 17 digits that reads back, and read by integers, correctly rounded. - FIXED. The MCP layout reads of an attached server (
query_entitiesand the others of a layout) no longer compare every
entity with the whole list of handles of the layout: a layout of 20 000 lines took 4e8 compares. - FIXED. A PDF of many pages is written faster: the sheet boxes are patched into the cross-reference table in place, not by
removing and inserting ten characters of the whole file for each entry (200 pages of 5 000 lines, 3.5 s to 2.3 s). - FIXED. The cache of decoded pictures (images and OLE frames drawn) is bounded to 512 MB, where a session or an MCP server that
opened many drawings with pictures kept every one for the life of the process: the ones asked for longest ago are let go. The
cap is soft: the pictures of the scene being drawn (this frame and the one before) are never let go, so that a drawing of nine
pictures of 64 MB keeps all nine and does not decode and draw them again for ever. A picture let go is not disposed, as the canvas
may still hold it; the garbage collector is told what each decoded picture weighs (GC.AddMemoryPressure) and that it is gone when
the picture is collected, so that it does not leave the native memory of an unreferenced picture to the next collection that happens. - FIXED. In the app (.NET 8) AutoLISP
open,loadandload_dialogread a file that is not UTF-8 as UTF-8 and wrote with
no encoding named as UTF-8: an ANSI.lspor.dclwithécame out ascaf?, and(write-line "café Ā" f)wrote UTF-8 bytes
(C3 A9) where AutoCAD writesE9 20 5C 55 2B 30 31 30 30(the system's ANSI page,\U+0100for a letter it lacks). The page
is now the system's (1252, 1258 ...), notEncoding.Default, which is UTF-8 there; a CSV read for a data link had the same fault. - FIXED.
vl-file-renameno longer loses the target when the move fails: withsrc.txtopen in the routine,
(vl-file-rename "src.txt" "dst.txt")gave nil and had already deleteddst.txt; it now gives nil anddst.txtkeeps its text. A
read-only target is not replaced (nil), and a target moved aside that cannot be deleted puts everything back. - FIXED. The
vlax-curve-*functions take an entity of a block definition (the namenentsel,tblsearchwith -2 orentnext
gives), as AutoCAD does:(vlax-curve-getEndPoint nl)of a line (0,0)-(10,0) in a block gavebad argument value: AcDbCurve 259
and now gives(10.0 0.0 0.0). An erased entity is still refused. - FIXED. After a hard error in a reactor's callback, all the callbacks still queued are dropped; they ran later
inside the next unrelated evaluation (a(getvar "CLAYER")ran the second reactor's callback). The; error: ...line a callback's
error writes now ends with a line end, so what comes next is no longer glued to it (; error: divide by zero1). - FIXED.
(vlr-notification reactor)of a reactor that never set one gives the symbolACTIVE-DOCUMENT-ONLY, so
(eq (vlr-notification r) 'active-document-only)is T. - FIXED.
vla-Itemof a block called in a loop no longer wraps every member of the block for each call: 1000 calls over a model
space of 20 000 lines took 15 s, and take under a second. - FIXED.
angtosin mode 4 (surveyor's units) writes the letter alone near an axis as AutoCAD does where the bearing rounds to the
quarter at the precision:(angtos 1e-7 4 2)is"E"(it was"N 90d0' E"),(angtos 0.0087 4 2)"N 89d30' E", 89.9999 degrees at precision 4
"N"; checked against 1477 values of AutoCAD 2021 for precision 1 to 8. Precision 0 keeps its old result. - FIXED. A string with a line break, a tab or another control character, given to AutoLISP
entmodorentmakexfor a text, no
longer breaks the drawing: it is written in the caret form of a DXF (a^Jb, a literal caret as^and a space) andentgetgives
"a\nb"back, as AutoCAD 2021 does. Before,(entmod ... (1 . "a\nb"))on a TEXT kept"a"and a drawing saved after it could
not be opened again (line 745 should be a group code); the same for an XRECORD fromentmakexwith(1 . "line1\nline2").
entmakeof a TEXT with a line break keeps it too (it gave"x y"), and a control character in a name, or in a group that holds a
path (an IMAGEDEF's file, a DIMENSION's style), gives nil inentmod,entmakeandentmakex(an XRECORD too); the groups 1 and 3 of those
records keep a^as it is. A line break in a 1000 string of extended data is written in caret form too, as AutoCAD writes it (a^Jb^ c). - FIXED. AutoLISP
entmakeof an INSERT takes a whole number for its scales and turn:(41 . 2)and(50 . 1)made scale 1
and turn 0, and now give(41 . 2.0)and(50 . 1.0)as AutoCAD does. - FIXED. AutoLISP
initgetreads a comma as AutoCAD does:"LTYPE,LT"is the one keyword LTYPE, typed as LT, LTY, LTYP or
LTYPE, and the get function gives"LTYPE"; before, LT was a keyword of its own and LTY was refused. - FIXED. AutoLISP
entmakeandentmodgive nil, as AutoCAD does, for a layer name the drawing refuses ("A<B>C";entmod
ended the routine withinternal error,entmakemade the layer), and for a colour outside 0 to 256;entmakeof a CIRCLE with a
radius of -5 makes radius 1 and writesInvalid circle radius (-5.0000) defaulted to 1.0000.; a lineweight that is none of the
standard ones ((370 . 7)) is stored as -3. A real that is infinite or not a number ((exp 1000)) gives nil, also in an XRECORD fromentmakexand in
extended data (1010 to 1013, 1040 to 1042), so a saved drawing never holdsInfinityorNaN. - FIXED. AutoLISP
wcmatchand thessgetfilter no longer freeze on a pattern with many stars:"*a*a*a*a*a*a*b"on 44
letters took 227 ms and each star or letter more multiplied it (100 letters and 8 stars took hours); it is now answered at once. - FIXED. A JSON text nested more than 256 levels deep (a Remote message, a
plugin.json, ashare.json, the answer of
the Share site, a standards file) is refused with a plain error where it ended the whole app on a stack overflow, with every
unsaved drawing; aplugin.jsonof that kind in the Plugins folder no longer ends the app at every start. - FIXED. The settings file, the plugin startup list and trusted folders, and the tool palettes are written to a temporary
file that replaces the old one when whole, so a crash or a power cut inside a save leaves the old file; one that does not read
(cut off) is copied beside it assettings.json.badbefore the defaults are used, so the next save no longer writes
them over the user's settings for good (an empty file is not copied: it holds nothing to keep). An empty settings file no
longer stops the start with an error. A settings file or workbook that is a symbolic link is written where the link leads,
and a file another program holds open so that it cannot be replaced is still written (over, as before). - FIXED. A Remote message that declares a length of up to 512 MiB no longer makes the app reserve that much memory before
one byte of it arrives; the message is read in as it comes. - FIXED. A workbook (
.xlsx) with a cell beyond Excel's sheet (past row 1 048 576 or column XFD, asA2000000000) is read
with that cell passed over, where a data link to it failed with an out-of-memory error. - FIXED. Writing cells back into a workbook goes through a copy that replaces the workbook when whole, so a failure (a text
with a control character no XML part can hold) leaves the workbook as it was, with its sheet. - CHANGED.
AttachReferenceViewModel.Close(CadDialogAction)(OpenCAD2D.Wpf) now returnsbool, false where OK was refused
(a scale typed as 0) and the dialog must stay open; it returned nothing before. Callers that ignore the result compile as they did. - FIXED. The Attach PDF Underlay dialog no longer rounds the scale the Unit box sets to two places: millimetres in a drawing
of metres gave0.00, which OK read as scale 1 (an underlay 1000 times too big), and inches in metres gave 0.03 for 0.0254.
The box shows four places and OK keeps the exact factor until the box is edited; the point, scale and rotation of the xref and
image Attach dialogs are kept whole the same way. A scale typed as 0 in an Attach dialog is refused with "Value must be positive
and nonzero." and the dialog stays open, where it was silently read as 1. - FIXED. BLOCK and WBLOCK keep the base point exactly as picked: after Pick point the dialog showed 1234.57, 987.65 for a point
at 1234.5678, 987.6543 and the block was made at the rounded point (up to 5 mm off in a drawing in metres). The point is read
from the boxes only where one was edited. - FIXED. FIND's Replace after Find what or an option was changed no longer replaces in the result found for the old text: it
searches again first, and with no match it records no undo step and leaves the drawing unmodified. - FIXED. OK and Apply in Global settings keep the recent files, command uses and plugin setting values recorded while the
dialog was open (by Remote, MCP or a tool), instead of putting back those it opened with. - FIXED. The sheet set dialogs say "The sheet is no longer in the sheet set." (or "subset") on OK when another copy took it out
of the file, instead of raising an error, and a sheet set file that cannot be read again as a dialog opens shows the set as it
was last read with a yellow notice instead of failing to open. - FIXED. A second drawing recovered from the same file (room.dxf opened twice after it was damaged, or room.dxf in two
folders), and a second BTESTBLOCK of one block, no longer replace the first without asking: the first, with its unsaved
changes, stays open and the second is titled and listed as "room.dxf (recovered 2)". A drawing given to the window under the key of one with
changes not saved is numbered the same way (a file already open with changes is shown, not opened twice), and one with none that it replaces is closed as CLOSE closes it (the extensions
told, AutoLISP's reactors raised and its files closed, the Xrefs let go). - FIXED. Save As, Ctrl+S and Save All write the drawing they were asked to save and keep the list right even when work queued
on the window's thread (a file handed over by a second start, the Remote channel) runs while the status bar's meter repaints: the
drawing shown at that moment was saved to the file chosen and the drawing asked about left the list. Work sent by Remote, the
MCP server or a Python tool, CLOSE and QUIT, and a file handed over by a second start now wait for a save to end, and the window
does not close in the middle of one. - FIXED. The settings file is no longer written for every command (Undo, Redo and Delete each wrote it): the commands used and
Recent Commands are written once a minute and when the window closes. - FIXED. A drawing opened in the background and stopped (Esc) after it was read now tells the extensions it is closed, as it
told them it opened. - FIXED. Autosave of plan.dwt (or plan.dws) and plan.dxf in one folder no longer write one copy: the copy of plan.dwt is
plan.dwt.autosave.dxf. Autosave leaves a drawing in a reference edit alone (its copy held the working set twice), writes a
drawing again only when it changed since its last copy, and removes the copy it wrote when the drawing is saved or closed. - FIXED. Quitting, and closing the window, let go of each drawing as CLOSE does: AutoLISP's
vlr-beginClosereactors are raised,
the files a routine left open are closed and the extensions are told the drawing is closed. - FIXED. A Python tool's packages no longer run any code before you say yes: the list for the question is made from wheels only
(--only-binary :all:), where pip's dry run used to build a package that came as a source archive (running itssetup.py)
and to fetch aname @ https://...link; the install after the yes takes wheels only too. A package with no wheel for the
Python is refused with pip's lines andA tool's packages come as wheels only, and a line ofrequirements.txtthat is a
link or a path (name @ url,git+https://...,./pkg, a.whlor.tar.gzfile) is refused,requirements.txt line 2: a link or a path is not taken, only the names of packages. - CHANGED. A Python tool's packages install as wheels only, before the question and after it: a package, or a dependency of
one, that has only a source archive is refused (A tool's packages come as wheels only) where pip used to build it. To use such
code, put it in the tool's own folder (the tool imports from there) or ask the package's author for a wheel; and a line of
requirements.txtis kept only where all of it is a package requirement in plain ASCII: a name, optional[extras], optional
version clauses (>=1.26,<2,==1.0.*,~=1.4), an optional; markerof letters, digits, spaces, quotes, dots, brackets and
comparison signs, then a comment. Anything else is refused with its line number: a word that starts with-(pip reads it, and
the rest of the line, as options:evil --no-binary evilmade it build the package), ``, a link or a path, a name that ends
as an archive does, a character that is not ASCII (a byte order mark only as the first character of the file), a control
character or line break pip splits at, and a line that ends in a backslash. - FIXED. A DCL dialog is modal to the whole app, as AutoCAD's are: a floating palette (Tool Palettes, Design Center and the
rest) takes no input and the taskbar cannot close the window while a routine waits instart_dialog, where only the window
under the dialog was switched off and a palette tool could start a command under the suspended routine. Each window has its
input back when the dialog ends, nested dialogs from the inside out. - FIXED. A DCL dialog opened with no position over a maximized window on a second monitor is centred on that monitor, not on
the primary one. - FIXED. A pip run of a Python tool that takes over 10 minutes is ended with every program it started (the build of a package
runs in children of pip), and the wait for its output has an end: before, the run waited for those children, and with it every
other tool's first command, which waits for the same gate. - FIXED. A cover picture of a Share tool that the decoder rejects with any error (a bad argument, an overflow, a COM error) is no
picture on the Download from Share card, not a crash box. - FIXED. The Intersection snap no longer shows at the sample points of a spline or an ellipse: two pieces of one curve drawn
in pieces that meet end to end are not a crossing (an ellipse 200 by 100 gave Intersection at any of its 180 sample points
under the cursor). A spline that crosses itself still gives Intersection at the crossing, and so does any other object
crossing the curve. - FIXED. Starting a command (a ribbon button, or a
^C^Cmacro) while an AutoLISP form waits at another command's prompt now
ends that command too, with its*Cancel*and the close of its undo step; before, the form ended and the next command ran inside
the first one's undo step (LINE,(getpoint), then CIRCLE and U took back the line as well). - FIXED. A wild-card pattern with a range back to front (
[Z-A]) or an empty set ([~]) no longer raises an error in Quick
Select, the Layer Translator filter, FIND, -PURGE and the other commands that take a pattern:[Z-A]matches nothing,[~]any one
character. - FIXED. SELECTSIMILAR with Name on takes the references of a dynamic block in any state, as AutoCAD does: it compared the
anonymous block names (*U12,*U13), so a stretched DOOR was not like the unstretched one. - FIXED. FILTER's Text Height of an MTEXT is its letter height (group 40), not the height of its box (group 46, 0 for most):
an MTEXT of 2.5 mm letters with no box height passedText Height = 2.5for none of the objects, and Add Selected Object wrote
Text Height = 0.0000for it. - FIXED. LAYOFF, LAYFRZ,
(nentsel)and the snaps of plugins no longer reach an object inside a block that is not drawn (on a
frozen or switched-off layer, layer 0 taking the layer of the reference it is in, or invisible): picking the visible line over a
circle of 1 mm radius on a frozen layer turned off the circle's layer, not the line's. - FIXED. A filter.nfl whose element holds text where a number is needed, or a group code past 2 147 483 647, now gives "Syntax error
in Named Filter List file. Delete filter.nfl." and FILTER goes on, instead of failing every time it is used. - FIXED. The preview of Add Vertex with Copy (and of Base point in the grip menu's Lengthen, Radius and similar items) is drawn
again at once after Undo, a vertex added or a new base point, where it showed the drawing as it was until the mouse moved. - FIXED. OVERKILL missed a duplicate of a near-vertical line that leans the other way: a line (100, 0)-(100, 50) and one
(100, 0)-(99.9999999, 50), 1E-7 apart at the far end and under the default tolerance of 1E-6, were left as two ("0 duplicate(s)
deleted") while the same pair leaning right was found. A line a hair either side of vertical is now compared with the ones across
the wrap of its direction. - FIXED. FILLET and CHAMFER now apply a sharp corner when the second object is picked with Shift held, as AutoCAD 2021 does
("Select second object or shift-select to apply corner"): the two lines 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 they were set. - FIXED. LENGTHEN (shortening), TRIM and BREAK keep the handle of a polyline, an elliptical arc and a spline as they do a line
and an arc: the object is changed in place, with the first piece kept, and only the other pieces are new objects. Before, they
were erased and drawn again under new handles, so a group, an associative dimension or hatch, or a Remote client that held the
handle lost the object. (A POLYLINE of the old kind and a 3D polyline are still drawn again.) - FIXED. REVERSE of a closed old-style POLYLINE of straight and arc segments puts its first vertex last, as it does a
LWPOLYLINE: a closed triangle (0, 0), (10, 0), (10, 10) is (10, 10), (10, 0), (0, 0) afterwards. - FIXED. ARRAYEDIT Replace (Source objects) on a polar array put the replacement at twice the radius: its base point was
counted twice. A circle of radius 3 picked with its own centre as base point now stands where the radius-5 circles of an array
of 6 about (0, 0) at radius 60 stood, at radius 60. - FIXED. MOVE and the grips no longer turn a path array into a plain block when its path is in the same selection and they
only move it: the array stays associative and its items follow the path to where it is now. Moved on its own, or turned, scaled
or mirrored with its path, the array is still made plain. - FIXED. MLSTYLE Save of a bare file name (
walls) wrote it in the folder the app was started from, and Load could not find it.
A name with no folder is now looked for in the support folders and else taken beside the drawing (in Documents where the
drawing has none yet) by Save and Load alike, and Save says the full path it wrote. - FIXED. A SKETCH of type Spline writes SKTOLERANCE as the spline's fit tolerance; it was always 0.
- FIXED. POLYGON with a typed radius lays its bottom side along the UCS X axis, as AutoCAD does, not the world's: in a UCS
turned 30 degrees the square of radius 10 is turned 30 degrees too. - FIXED. A table formula that reads its own cell, directly (
=Sum(B3:B5)in B5) or through other formulas, grew at every
regen, save, open and plot (B3 = 4 and B4 = 6 gave 20, then 40, then 60). The cells of such a loop now show#####, as
AutoCAD 2021 shows an error for them, and stay the same at every update; a formula that reads one shows#####too. - FIXED. Rows and columns put in or taken out of a table now move the references of its formulas, as AutoCAD 2021 does
(checked in its console):=Sum(A3:A5)with a row put in above row 4 becomes=Sum(A3:A6), with row 4 taken out
=Sum(A3:A4); a$anchor moves too; a reference to a cell taken out becomes#ERR, which shows#####. - FIXED. A formula over a range typed far past the table (
=Sum(A1:ZZ99999), 6 seconds;A1:ZZZ999999, half an hour) is
cut to the table before it is worked out, the result the same. - FIXED. A field format with a number too long for an int (
%pr99999999999) or written in non-ASCII digits made
opening, saving or regenerating the drawing throw: the number is now read as ASCII digits and clamped, and a field that
cannot be worked out is skipped without stopping the fields after it. - FIXED. A DIESEL field with an argument out of range (
$(index,1e20,abc),$(edtime,1e12,YYYY)) threw while the drawing
opened. A negative index, a division by nought and a date past what a date holds now give AutoCAD's error text
($(INDEX,??),$(/,??),$(EDTIME,??)); an index past the list gives nothing, as before. An expression that
evaluates itself (a file name$(eval,$(getvar,dwgname))) ends after 256 levels, and a formula nested more than about 128 brackets deep (each bracket counts twice) is no formula, instead of
overflowing the stack. - FIXED. A field, a table or a drawing whose fields could not be worked out and was skipped is written to
crash.log(not fatal, "Caught by: GeometryHelperLog.Err"), not only to the trace; the code pages Import Text and TABLEEXPORT need are registered by the engine itself, in the MCP server and the Python wheel as in the app. - FIXED. The Angle field of a line that points down is between 0 and 2 pi, as AutoCAD's (a line from (30, 40) to (0, 0)
shows 233.13 degrees, not -126.87). - FIXED. ANNOAUTOSCALE 3 gives the scale to the objects on layers that are not locked, off and frozen ones too, and not to
those on locked layers (checked in AutoCAD 2021's console: 1 on, thawed and unlocked; 2 on and thawed, locked or not;
3 unlocked; 4 all). It had it the other way round. - FIXED. An AcExpr field whose whole result is beyond a 32-bit integer (
3000000000,2147483647+1) shows####, as AutoCAD
shows it, instead of a number saved as -2147483648. - FIXED. TABLEEXPORT writes the file in the system's ANSI code page on .NET 8 as it did on .NET Framework (it wrote UTF-8
without a mark there), and Import Text reads a text file that is not UTF-8 in that page too. - FIXED. Import Text reads the letters of an RTF's
\'hhin the code page of their font's\fcharsetor the document's
\ansicpg: a Cyrillic, Greek, Vietnamese or Japanese RTF written that way imports as its letters, not as Latin-1 ones. - FIXED. TXT2MTXT leaves attribute definitions alone ("1 was filtered out.") instead of erasing them and putting their
default value into the MTEXT; a TEXT's%%uand%%obecome the MTEXT's\L \land\O \oand%%nnnits character; the
MTEXT keeps the elevation of the first text. - FIXED. An MTEXT with static columns and a column count of billions, from a damaged DXF, is laid out in at most 1000
columns instead of hanging or running out of memory. - FIXED. DIMJOGLINE on a linear dimension whose two points coincide no longer writes NaN into the jog's extended data.
- FIXED. BATTMAN with "Apply changes to existing references" (or Sync) after a tag was renamed dropped the value of that
attribute in every INSERT of the block, giving the new attribute its default (GRID renamed AXIS: the INSERT valued B read
AXIS=A). Each INSERT now keeps its attribute under the renamed tag, also in INSERTs nested in other blocks, one definition
moved and two tags swapped included. - FIXED. ATTREDEF with a user coordinate system other than World moved the new block's origin by the UCS a second time
(UCS 100,50 and a base point picked at (5, 0) made the origin (105, 50)); the base point is now the point picked. ATTREDEF
also stops, leaving every reference as it was, when the block is refused ("Block "TB" references itself.") and no longer puts
the references anew on the current layer. - FIXED. INSERT's opposite corner and MINSERT's unit cell were measured along the world axes, so in "UCS Z 90" a corner at UCS
(2, 3) gave the scales (-3, 2) and a mirrored block; they are measured along the UCS axes (scale 2 by 3), the drag preview too. - FIXED. -HATCHEDIT Origin, Default to boundary extents, boxed a loop by its corners and left out the bulges of its arcs, so a
hatch of a circle drawn as two half circles took its top corners 10 too low; it boxes the loop through its arcs, as HATCH does
when it makes the hatch. - FIXED. REFSET Add took another INSERT of the block being edited (or of a block that places it), and REFCLOSE Save then failed
with "would make the block DOOR insert itself. Parameter name: entity"; such objects are left out. -INSERT of the block being
edited in BEDIT saysBlock "DOOR" references itself. - FIXED. MINSERT refused a block with attributes; AutoCAD 2021 places it and asks the values once.
- FIXED. XATTACH and -XREF Attach of the drawing that is open attached it to itself; AutoCAD refuses ("Possible circular
reference to current drawing."), and so does the app now. - FIXED. U after -XREF Unload left the reference unloaded (only its layer flags went back); it is loaded again, and REDO unloads it.
-XREF Reload of an unloaded reference is an undo step of its own too, even where the file brings no layers: U unloads it again. - FIXED. -INSERT of
*BOX(exploded) in the Block Editor of BOX reached the library and printed its raw exception; it says
Block "BOX" references itself.like INSERT. An INSERT whose opposite corner lies on a UCS axis in a turned UCS no longer makes a
block of scale 1E-16; it says "Value must be nonzero." - FIXED. The hatch and boundary finder dropped the sides of a polyline that lie off the screen, so a boundary partly off the
screen was not found ("Valid hatch boundary not found."); an object with any part in the view is now taken whole. - FIXED. Picking a hatch inside an area next to a very long open polyline (32 000 vertices touching a wall) took 3.8 s, and HATCH's
hover preview froze for that long on every mouse move; the dangling pieces are dropped in one pass, and the finder no longer
counts every pair of overlapping boxes of a long thin chain to choose its sweep (a 200 000-vertex polyline crossing the view took
15.4 s, now under a second), 3.8 s to about 0.1 s for 32 000 vertices. - FIXED. REGION left out an open heavy 2D POLYLINE that closes a loop with other curves ("0 loops extracted.").
- FIXED. UNGROUP of an object in more than one group exploded all of them; it asks "Object is a member of more than one
group [Accept/Next] " as AutoCAD 2021 does and explodes the group accepted; so does a selection made first, and with
PICKSTYLE taking groups whole a group that holds only members the pick added is not offered. - FIXED. Object Grouping's Rename, Description, Selectable and Re-Order said they were made when the edit was refused; the
dialog now shows why. - FIXED. A drawing saved, copied with DXFOUT, autosaved, plotted, printed, published, previewed or handed out by Remote (the
copy MCP and Python save, plot and export from) while a viewport is maximized (VPMAX)
now has the layout as it was before: before, the viewport was written 392 wide instead of 200, the other viewports of the
layout off, and a drawing reopened could not be put back with VPMIN ("No viewport is currently maximized."). The drawing in the
window stays maximized after the write. - FIXED. Deleting the layout that holds
*Paper_Space(the first tab, normally) keeps the layer overrides (colour, linetype,
lineweight, transparency, plot style) of the viewports of the layout moved into its place, a deleted layout takes the overrides of its
own viewports with it (they stayed in the layer), and -LAYOUT Copy and the Template
layouts give the viewports they copy the overrides of the originals; before, a layer DIM overridden red in a viewport lost the
override on the move and the copy showed it in its own colour. - FIXED. VPLAYER Newfrz with a name a layer cannot have (
A<B) saysInvalid layer name.and goes on; before it took the
whole command back, the Freeze options before it among them, after the raw text of an exception. - FIXED. LAYDEL, LAYMRG, the Layer manager's Delete and LAYWALK's Purge Layers delete a layer frozen in a viewport, thawing it
there in the same undo step (which one undo takes back), as LAYTRANS does; before they failed with "The layer TMP is pointed at by
an object of the file", and in LAYWALK the failure took back the layers purged before it and the walk's own switches. - FIXED. A layer filter expression is no expression where it comes to more than 10 000 alternatives once AND is distributed
over OR (fourteen groups of two joined by AND), to more than 100 000 rules counted over all its alternatives (fifty-one chains of
2 000 ANDs joined by OR), or where its brackets nest deeper than 64: thirty groups(NAME=="a" OR NAME=="b") AND ...from a crafted
DXF needed over a billion lists and froze the Layer manager. - FIXED.
CadViewportLayerEditor.SetColorandSetTransparencythrowArgumentNullExceptionfor a null drawing, as their
documentation says, instead of refusing it as one older than AutoCAD 2004. - FIXED. A plot style table (.ctb) is read by the object's colour index, not by the index nearest its RGB: colours 10, 50, 90, 130,
170, 210 and 255, which have the RGB of colours 1 to 7, plotted with the style of 1 to 7 (a table giving colour 1 0.13 mm and colour 10
0.50 mm plotted a colour 10 line at 0.13 mm). PLOT, EXPORTPDF, PUBLISH and the image plot now carry the index of the object, its
layer's or its block's resolved as the display does; a true colour still takes the index nearest it. - FIXED. Walking a drawing to its shapes (the drawing JSON, graph and diff of the MCP server and Python) places no more than
2 000 000 entities through block references: blocks nested a few deep with many references each (40 in each of four levels is 102
million lines) filled the memory. Each reference it refuses stays as one INSERT and is named in therefusedlist of the report. - FIXED. A TIFF in one strip or tile too big for an array, over about 2 GiB unpacked (40 000 by 20 000 pixels of RGB in one strip; a one-strip scan of 19 000 by 19 000 is still read) is refused, as a picture
that cannot be read, where it threw an overflow error out of the reader (IMAGEADJUST crashed); a BMP of the smallest height an
intholds is no picture, not an error that dropped the whole image from the display; a PDF stream whose predictor columns passed
anintis left undecoded, not decoded to wrong bytes or allocated at hundreds of megabytes; a PDF picture with a soft mask of
millions of rows is kept; the TIFF predictor of a PDF picture works for 16 and 1, 2 and 4 bit samples; a true colour TGA with a
colour map is read by its own pixels. - FIXED. A plot stamp file (.pss) with NaN for an offset or the text height keeps the stamp's own, and a user field that ends in
a brace is read back whole with the fields after it. - FIXED. The transmittal zip is written through a temporary file with a name of its own, so a file
<zip>.tmpbeside it is no
longer overwritten and deleted (and a sheet set drawing saved as DWG likewise).