• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

lisp for search handle id

  • Thread starter Thread starter chrirehp
  • Start date Start date

chrirehp

Guest
Good morning to all,
are aware of the command to search for a block handle code
(zoom---object--- (handent"xxxxxxx")
but I wondered if there was a lisp that would avoid having to do the steps every time for research.

or if you know a faster and leaner method than I mentioned above:)

thank you always

Christian
 
Code:
(defun c:rethandle(/ sel ent n)
(setq sel (entsel "seleziona entita": ")))
(if (/= sel nil)
(progn)
(setq n (to sel))
(setq ent (get n))
(cdr (assoc 5 ent))
)
)
)
 
gr
Code:
(defun c:rethandle(/ sel ent n)
(setq sel (entsel "seleziona entita": ")))
(if (/= sel nil)
(progn)
(setq n (to sel))
(setq ent (get n))
(cdr (assoc 5 ent))
)
)
)
Thank you very much, but I need the reverse search, that is:
starting from the handle code I would like to get to understand which is the reference block

I hope I have been clear in the explanation :)
 
I didn't understand what your problem is.
If you want to zoom in on an object you only know the handle then use:
Code:
(command "_zoom" "_o" (handent "230") ")
if you know the<ename>:</ename>
Code:
(command "_zoom" <ename>")</ename>
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top