![]() ![]() It looks like the function errors or returns on the first line break it receives and exits, although in the debugger I can see the regex pairs being processed. However when we process this function with the same input in Autodesk 2021 the output (for str) is: Ranford Rd, Perth WA, Australia ![]() The output (for str) in the function should be: AA P100 312F - SMOF FNPEHJC/STDCNVL F CNVL 4701:CNVL AD-CNVL AE/1-312 The input string from the paste is: Ranford Rd, Perth WA, Australia (prompt (strcat "\nError: " (vl-catch-all-error-message str))) (setq str (vlax-invoke rgx 'replace str (car pair))) (vlax-put-property rgx 'pattern (cdr pair)) (vlax-put-property rgx 'ignorecase acfalse) (vlax-put-property rgx 'multiline actrue) Modified Lee mac's unformat function - removes formatting from a string The script is below: GDD parser to remove unnecessary info from the paste to prepare for processing We are getting different results using Autodesk 2021 from a script migrated from 2019 and I can't figure out why there is a difference. We have a function, called via the input paste reactor to process some text in a drawing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |