Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello... simple question about VL.
Digging into Lee Mac's code... I just want to make a minor change.... what is (vla-delete ss) for? Why this does not erase the original objects? What should I change to do that? Thx.
(defun c:edb () (c:ebd)) (defun c:ebd ( / *error* of undo doc ss ) ;Ekv Both (defun *error* ( msg ) (and undo (vla-EndUndomark doc)) (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*") (princ (strcat "\n** Error: " msg " **"))) (princ)) (if (and (ssget '((0 . "ARC,CIRCLE,ELLIPSE,*LINE"))) (setq of (getdist "\nSpecify Offset Distance: "))) (progn (setq undo (not (vla-StartUndomark (setq doc (vla-get-ActiveDocument (vlax-get-acad-object)))))) (vlax-for obj (setq ss (vla-get-ActiveSelectionSet doc)) (mapcar (function (lambda (o) (vl-catch-all-apply (function vla-offset) (list obj o)))) (list of (- of)))) (vla-delete ss) (setq undo (vla-EndUndoMark doc)))) (princ) )
Solved! Go to Solution.