News:

Please note new Forum URL: forum.designcad.com

Main Menu

Bug Killer for Linear Dimensions

Started by bdeck, July 07, 2025, 07:39:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

Here's another improvement to the dfix macro that corrects bugs in linear dimensions to make them render correctly in Dcad and export for proper rendering in Acad.

It allows users to draw using standard Dcad commands, and then simply run this macro to eliminate bugs in rendering and export of any linear dimensions in a single operation.  It can be run as often as necessary.   

The macro does 4 things:


It now makes the following corrections to dimensions drawn using standard Dcad tools.

1) For dimensions drawn with "DimLineWithText" motion and "custom" horizontal text location, it replaces "DimLineWithText" motion with "NoLeader", so that the text location will export properly (rather than moving text to "centered" location, as it does now).

2) It replaces all Type 79 Progressive dimensions with corrected Type 75 dimensions, so that they can be rendered correctly and exported as dimensions, rather than as exploded text, lines, and arrows.

3) It eliminates the point-4-vector bug that makes all linear dimensions problematic. Failure to diagnose this bug presumably led to the  advent of Type 79 years ago.

4) For the small number of dimensions that stumble when fixing Type 79 location in silent mode (sys(36)=1)), I added a subroutine to "Verify" the "axis" setting, and to redraw any dimensions having a corrupted "axis" in normal mode.

Text orientation appears mostly in tact after the fix, but has needed a flip after fixing a baseline dimension.

Note that a long list of query/change parameters is included in the macro, but the ones I rarely use are commented out in the Archive section and ignored in the Mod75 section. If you add those parameters to the macro, please post.

Please advise any errors or suggestions.

bd

Revised 7/7/25 to add "custom" text fix.  A few "flip" bugs left to fix .