Jaap Marchal Posted December 6, 2010 Share Posted December 6, 2010 Looking for a lisp to find a handle Mike Quote Link to comment Share on other sites More sharing options...
Michaels Posted December 6, 2010 Share Posted December 6, 2010 Here is direct way from the command line ..... (sssetfirst nil (ssget "_x" '((0 . "INSERT")(2 . "YourBlockName")))) Quote Link to comment Share on other sites More sharing options...
Jaap Marchal Posted December 6, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
Michaels Posted December 6, 2010 Share Posted December 6, 2010 It's a DXF . for example (5 . "19C") Quote Link to comment Share on other sites More sharing options...
David Bethel Posted December 6, 2010 Share Posted December 6, 2010 look into ( handent ) -David Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 6, 2010 Share Posted December 6, 2010 WHS ^^ Or vla-HandletoObject if you want to go the VL route. Quote Link to comment Share on other sites More sharing options...
Jaap Marchal Posted December 7, 2010 Author Share Posted December 7, 2010 i`m not so into lisp and so i do not know how to make a lisp with this Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 7, 2010 Share 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 Link to comment Share on other sites More sharing options...
Jaap Marchal Posted December 7, 2010 Author Share Posted December 7, 2010 works great,.................thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 7, 2010 Share 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 Link to comment Share on other sites More sharing options...
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.