equitysasa.blogg.se

Autocad lisp delete layer containing no objects
Autocad lisp delete layer containing no objects












autocad lisp delete layer containing no objects

And I always create the selection set before executing the command. Of course I work with PickAdd turned off, so that selecting anything deselects everything else unless the shift key is held down. And my Home key gives me a Zoom Extents and my End key gives me Zoom Previous. And I have a function key that makes the selection set rotate 90 degrees around its centroid each time I press it. My Rotate command similarly expects 3 points - the fulcrum point and then the from and to points of the rotation, just as in VW. My Scale command expects me to pick 3 points - the base point and then the from and to points for the change in size, as in VW. My Join command just converts all the coterminal lines, arcs, and polylines in the selection set into a single polyline. So, for example, my Break command expects me to select an object and then pick the break point, as in VW.

AUTOCAD LISP DELETE LAYER CONTAINING NO OBJECTS PLUS

They're combinations of a built-in command plus one or more option letters, so that the command normally behaves the way I normally want it to.

autocad lisp delete layer containing no objects autocad lisp delete layer containing no objects

For commands that create new entities, I get the number of the last entity created, then execute the command, then select and highlight all the entities with numbers higher than that. For editing commands, I do that by ending the lisp function with (sssetfirst nil (ssget "P")), so that whatever was highlighted before the command is also highlighted afterward. Most of them are just the built-in command but terminating with a selection set that's highlighted and ready to be used as the preselection for the next command. I used lisp to make custom versions of all the commands I normally use. I can't get rid of the space bar, but I have completely eliminated L's and P's. But I execute most commands by typing one or two letters plus the space bar. Another is for variables, and a third is for scales. I do have a few custom pull-down menus in my CUI.














Autocad lisp delete layer containing no objects