Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
I need attached lisp changed - command sets elevation to zero. I want to have elevations not changed
Body
;; QuickMOVE originaly written by CAB ;; Version 1.2 - 02.11.2010 ;; No UCS support ;; If set to Loop, Press ENTER or ESCape to exit. ;; Use DXF 10 if it exist except for Hatch ;; Else use Pick Point of LL of bounding box if flag is set ;; ;; Note that the DXF code 10 my not be desirable on some objects ;; (defun c:p () (c:Quickmove)) (defun c:Quickmove (/ ent elst BasePt minpt maxpt Loop pkPoint NoDXF10) (setq loop t) ; set to nil to make routine not Loop (setq pkPoint nil) ; t = use pickpoint if no dxf 10 ;; nil = use lower left of bounding box if no dxf 10 (setq NoDXF10 '("HATCH" "LWPOLYLINE")) ; list to exclude use of DXF 10 (command "._undo" "_begin") (while (and (setq ent (entsel "\nSelect object to move: ")) (progn (setq BasePt (cadr ent)) ; default move point (setq elst (entget (car ent))) (if (and (assoc 10 elst) (not (member (cdr(assoc 0 elst)) NoDXF10))) (setq BasePt (cdr (assoc 10 elst))) (if (not pkPoint) (progn (vla-getboundingbox (vlax-ename->vla-object (car ent)) 'minpt 'maxpt) (and (setq minpt (vlax-safearray->list minpt)) (setq BasePt minpt)) ) ) ) (command "._undo" "_mark") (command "._move" (car ent) "" "_non" BasePt pause) ;; Test for ENTER pressed ILO point picked (if (equal 0.0 (distance BasePt (getvar "lastpoint")) 0.0001) (command "._undo" "_back") ; & exit t ) ) Loop ) ) (princ) )
Solved! Go to Solution.