Block corruption with AutoCAD 2020

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Old routine (circa 2005) to “ghost” at the correct scale prior to insertion. It cancels the insert prior to filling out the attributes. I then retrieve the lastpoint value for user later.
(ok, gotta admit not my best code, but it’s been working fine for 14 years)
Client installed a new seat of AutoCAD 2020 and now it breaks and causes some other routines to fail…
(Setvar "Attdia" 0)
(Princ "\nBubble location ")
(Command
"-Insert"
"Bubble"
"S" (Getvar "Dimscale")
"R" 0
Pause
(Command)
)
(Setq Pt2 (Getvar "LastPoint"))
Seems that AutoCAD 2020 will insert the block but instead of canceling the insertion like previous releases, it places the block with NO GRAPHICS at the insertion point. If you use the LIST command and select Last, it lists the location of the block, AND the block it will have no attributes (the original bubble block has 2 attributes).
If you run BEDIT when exit you will see the graphics, but still no attributes
If you run BATTMAN it will restore graphics AND the attributes.
Yes, I can program around this.
But one of the tenants that Autodesk always followed was that commands called in code ALWAYS followed the “old school” methods. This one actually corrupts the block.
Steven LaKose
CAD Consultant
860.588.8360 cell