Jaap Marchal Posted December 6, 2010 Posted December 6, 2010 Looking for a lisp to find a handle Mike Quote
Michaels Posted December 6, 2010 Posted December 6, 2010 Here is direct way from the command line ..... (sssetfirst nil (ssget "_x" '((0 . "INSERT")(2 . "YourBlockName")))) Quote
Jaap Marchal Posted December 6, 2010 Author Posted December 6, 2010 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 Quote
Lee Mac Posted December 6, 2010 Posted December 6, 2010 WHS ^^ Or vla-HandletoObject if you want to go the VL route. Quote
Jaap Marchal Posted December 7, 2010 Author Posted December 7, 2010 i`m not so into lisp and so i do not know how to make a lisp with this Quote
Lee Mac Posted December 7, 2010 Posted December 7, 2010 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. Quote
Jaap Marchal Posted December 7, 2010 Author Posted December 7, 2010 works great,.................thanks Quote
Lee Mac Posted December 7, 2010 Posted December 7, 2010 works great,.................thanks It was intended to be a starting point for your program - demonstrating how to use 'handent'. *shrug* Quote
Recommended Posts
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.