Message 1 of 3
Geomap image selection with Civil 3D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I'm trying to write a lisp that would clean my file and delete heavy objects, and I can't find a way to select (and then delete) the captured satellite image that Autocad Civil calls Geomap Image.
I'm also doing this for surfaces object and my code is as below. I would like to get a feedback on it because it only works partially and sometimes does not delete the surfaces. I'm quite new to this and I'm mostly copying and mixing from different forums, so maybe you can already spot something wrong.
Surface:
(setq ss (ssget "_X" '((0 . "AECC_*"))))
(if ss
(progn
(princ (sslength ss))
(princ "\n surface(s) found")
(setq i 0)
(repeat (sslength ss)
(setq ent (ssname ss i))
(entdel ent)
(setq i (1+ i))
)
)
(princ "\n No surfaces found.")
)
Thank you in advance.