Roadmap 0.13, Fixes
FX.782 CadCraft: clipped blocks (XCLIP) from AutoCAD files open with their clip — clips drawn in a turned UCS, on array blocks, and switched off
Report: "XCLIP boundaries on blocks are not retained when opening a DWG file." The reporter's file was not at hand, so the faults were found with drawings that store clips the way AutoCAD does (tools/cadcraft-test/fixtures/xclip/make-acad.py, saved as DWG 2000 and 2018 by the ODA File Converter); our earlier fixtures only had clips with identity matrices. Three faults, all fixed in /lab/cadcraft: (1) a clip drawn in a turned or moved UCS was put through the clip transform the wrong way round, so it landed far from the block and the block drew empty or uncut (xclip.js clipFromFilter: boundary -> inverse clip transform -> inverse block transform); (2) a clip on an array block (MINSERT) was dropped when reading DWG, and in DXF every cell got the clip unshifted (dwg-import.js, dxf.js, xclip.js cellClip); (3) a clip switched off with XCLIP OFF still cut the block; it is now kept as clip.off, cuts nothing, and is saved back switched off (dwg-save.js, dxf2000.js). Also DXF: a front clip distance no longer makes the reader skip the two matrices. Not done: inverted clips (cut the inside away) still cut to the inside; a clip on a dynamic block is still not saved to DWG (the save says so); the Rust fork (forks/cadcraft-rust io-cad) has the old reading; no XCLIP ON/OFF option in the command yet.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.