ACAD 2022 Getangle Mid-Command Issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I just upgraded from AutoCAD 2020 to AutoCAD 2022 & loaded my customization files, & tested a few custom commands to make sure they loaded properly. In short one of them isn't working correctly. I did some troubleshooting & ended up writing a much shorter version to narrow down the issue. This is the simplified command:
(defun c:dro2 ()
(princ "\nDRO Simplified Test\n")
(command ".dimlinear" pause pause)
(princ "\nSpecify angle for setq: ")
(setq ang1 (getangle))
(command "r" (* ang1 (/ 180 pi)))
(princ)
)
When I run this in AutoCAD 2020 (or Advance Steel 2021), I get my expected outcome. I'm able to select 2 points to locate the dimension. Then I'm able to select 2 more points for the angle. At the end, I can place my dimension.
When I run this in AutoCAD 2022, I pick my first 2 points normally, but when I try to select the points for the angle, my cursor disappears completely. I cannot see where I've picked, & have no idea whether osnaps are even active. Once I pick those 2 points, things seem to return to normal.
I looked & didn't find any mention of lsp changes in 2022, so I'm assuming this is a bug, but I'm not sure. My original full code stores this angle selection for repeat use as well as handling layer selection & error control. I'd rather not give up that functionality. Can anyone else confirm if this happens for them as well? I have some ideas for rewriting the command to avoid the issue, but I'm not sure what other issues I'll create or where else this type of issue is going to appear.