Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need a LISP that is able to select all OLE objects, specifically Metafile Images if that helps. I have a LISP which sends all images to back or front, but some images are input as OLE objects. Does anyone know of a LISP which will do this?
Below is a post on another forum I found about deleting them, but I can't work out what I need to remove in order to just select them. I tried to use vla-movetobottom, but I don't fully understand how to use it. Apparently replacing vla-delete with vla-movetobottom isn't good enough!
(defun C:getole () (vl-load-com) (if (ssget "_x" (list '(0 . "OLE2FRAME"))) (vlax-for n (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object))) (vla-delete n) ) ) )
Solved! Go to Solution.