Autodesk-AutoCAD / AutoLispExt

Visual Studio Code Extension for AutoCAD® AutoLISP
https://marketplace.visualstudio.com/items?itemName=Autodesk.autolispext
Apache License 2.0
83 stars 30 forks source link

Regular Expression code not executed properly #219

Closed jtoverka closed 1 year ago

jtoverka commented 1 year ago

Describe the bug VBScript.RegExp COM object does not execute code properly when LISPSYS system variable is 1 or 2 (required to use Visual Studio Code extension)

To Reproduce Steps to reproduce the behavior: Have AutoCAD 2021 or newer. (To "run code below", copy and paste entire code into AutoCAD command line.)

Expected behavior Expected: ACADE 2020 or older result: '(("081" . 0)) ACADE 2021 LISPSYS value 0: '(("081" . 0)) Test Program Output: "Passed"

Unexpected: ACADE 2021 LISPSYS value 1 or 2: nil Test Program Output: "Failed"

Screenshots N/A

Desktop:

Additional context Clips of this code is provided by Lee Mac Information on LISPSYS I have ran the code provided above in AutoCAD Electrical 2018 and AutoCAD Electrical 2021.

Sen-real commented 1 year ago

Hi @jtoverka , thanks for logging this issue. I reproduced the problem on ACAD 2021, but it seems fixed already on newer versions of ACAD (2022+). Would you please have a try?

Sen-real commented 1 year ago

@jtoverka I'm closing this issue as it has been fixed in newer versions of ACAD. Please let me know if I'm missing anything.