Map extraction / path problem (Arcgis For Autocad 410)

478
2
Jump to solution
10-23-2022 03:43 AM
michaljanda
New Contributor II

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

arcgis_path.png

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DanWade
Esri Contributor

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

View solution in original post

2 Replies
DanWade
Esri Contributor

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

michaljanda
New Contributor II

Hello Dan, thank you. It works 👍

Kind regards

Michal Janda

 

0 Kudos