Can someone confirm that above posted code ^^^^ works fine only in BricsCAD, but in AutoCAD it shows Dialog Box, but when choosing an option AutoCAD freezes and you have to kill AutoCAD session by Ending Task through Task Manager... If that's true (I've checked on PC and Laptop with AutoCAD 2022), can someone propose workaround for AutoCAD program if that's possible...