Mara821 Posted May 3, 2020 Share Posted May 3, 2020 Hi, the function LM:UnFormat from Lee Mac stopped working for me in Autocad 2021. Function returns only first line of multi line text for example. It could work with variable lispsys set to 2 (support ascii) by reference manual, but it doesn't seems to work. I would like use VS, so set lispsys back to 0 is not solution . So is there another way to solve this? http://www.lee-mac.com/unformatstring.html Thanks Quote Link to comment Share on other sites More sharing options...
BIGAL Posted May 4, 2020 Share Posted May 4, 2020 (edited) I am sure Lee will answer what happens if you paste this line to command line. (setq rx (vlax-get-or-create-object "VBScript.RegExp")) Command: (setq rx (vlax-get-or-create-object "VBScript.RegExp")) #<VLA-OBJECT IRegExp2 00000162219e3b60> VBScript.RegExp is a VBA application may need to load the vba extension for Autocad. Edited May 4, 2020 by BIGAL Quote Link to comment Share on other sites More sharing options...
Steve Doman Posted May 7, 2020 Share Posted May 7, 2020 FYI: What you are experiencing is bug in AutoCAD 2021. l reported it to Autodesk a couple weeks ago. They confirmed it is a bug and said hopefully it will be fixed on the next AutoCAD update. Until then, I am keeping LISPSYS set to 1. Steve Quote Link to comment Share on other sites More sharing options...
Mara821 Posted May 11, 2020 Author Share Posted May 11, 2020 On 5/4/2020 at 2:00 AM, BIGAL said: I am sure Lee will answer what happens if you paste this line to command line. (setq rx (vlax-get-or-create-object "VBScript.RegExp")) Command: (setq rx (vlax-get-or-create-object "VBScript.RegExp")) #<VLA-OBJECT IRegExp2 00000162219e3b60> VBScript.RegExp is a VBA application may need to load the vba extension for Autocad. (setq rx (vlax-get-or-create-object "VBScript.RegExp")) return this: Command: (setq rx (vlax-get-or-create-object "VBScript.RegExp")) #<VLA-OBJECT IRegExp2 000002b2904ca4e0> No error occures. On 5/7/2020 at 3:18 PM, Steve Doman said: FYI: What you are experiencing is bug in AutoCAD 2021. l reported it to Autodesk a couple weeks ago. They confirmed it is a bug and said hopefully it will be fixed on the next AutoCAD update. Until then, I am keeping LISPSYS set to 1. Steve Ok, thanks for info. I will be waiting for update. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.