Jump to content

how to find a block handle in a drawing


Recommended Posts

Posted

Looking for a lisp to find a handle

 

Mike

Posted

Here is direct way from the command line .....

 

(sssetfirst nil (ssget "_x" '((0 . "INSERT")(2 . "YourBlockName"))))

Posted

No sorry that is not what i`m searching for. I`m using Autoad electrical and do a export to Excel. Some of the blocks missing attribute data. Autocad generates handles of all the used blocks. So i need a lisp where i can give in a handle and Autocad zooms into to that block.

 

Mike

Posted

look into ( handent ) -David

Posted

i`m not so into lisp and so i do not know how to make a lisp with this

Posted

I suppose the simplest would be something like:

 

(defun c:zoomhandle ( / e )

 (if (setq e (handent (getstring "\nSpecify Handle: ")))
   (command "_.zoom" "_O" e "")
 )

 (princ)
)

 

In the mean time, use AfraLISP to learn LISP.

Posted

works great,.................thanks

Posted
works great,.................thanks

 

It was intended to be a starting point for your program - demonstrating how to use 'handent'.

 

*shrug*

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...