I'm working in AutoCAD MEP 2011.
When running a clash detection of a 6-story building in Navisworks (each floor is a separate construct file), I can select an MvPart in the view and get that element's handle (unique identifier). How can I find that particular part in the construct file, by searching for its handle?
Is there a lsp routine out there that allows the user to enter a MvPart's handle, and have the program zoom to that part?
Solved! Go to Solution.
Try the below
(defun C:HANDLE ( / handle ent ) (setq handle (getstring "\nEnter handle to search for: ")) (setq ent (handent handle)) (if ent (progn ;line added (sssetfirst nil (ssadd ent)) (command "_zoom" "_Object" ent) ) ;Else (ALERT "The handle you entered does not exist in this drawing!") ) (princ) ) ;; ;; ;; (defun OwnerName (handle) (cdr (assoc 2 (entget (cdr (assoc 330 (entget (handent handle))))))) )
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register