Jump to content

LM:UnFormat and variable lispsys in AutoCAD 2021


Mara821

Recommended Posts

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

Link to comment
Share on other sites

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 by BIGAL
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...