Hello,
I want to ask if the "esri_maplayer_extract" function works correctly or where I'm making a mistake
When I use this function: (esri_maplayer_extract 1 "C:\RASTER\TESTING.png")
The map is not saved in the correct directory. It looks like the function ignores backslashes and the directory name is appended to the file name.
Am I making a mistake when entering?
AutoCAD 2020 En
Kind regards,
Michal Janda
Solved! Go to Solution.
Hello Michal,
In AutoLISP and Common LISP the backslash is considered an escape character. So, if we want a literal backslash it must be escaped.
(esri_maplayer_extract 1 "C:\\RASTER\\TESTING.png")
https://www.cadtutor.net/forum/topic/49426-insert-quot-symbol-in-a-string/#comment-409254
https://www.cadtutor.net/forum/topic/64553-how-can-i-translate-to/?do=findComment&comment=531755
Hello Michal,
In AutoLISP and Common LISP the backslash is considered an escape character. So, if we want a literal backslash it must be escaped.
(esri_maplayer_extract 1 "C:\\RASTER\\TESTING.png")
https://www.cadtutor.net/forum/topic/49426-insert-quot-symbol-in-a-string/#comment-409254
https://www.cadtutor.net/forum/topic/64553-how-can-i-translate-to/?do=findComment&comment=531755
Hello Dan, thank you. It works 👍
Kind regards
Michal Janda