Add selected shortcut

Add selected shortcut

Anonymous
Not applicable
3,320 Views
2 Replies
Message 1 of 3

Add selected shortcut

Anonymous
Not applicable

I've have a two-key shortcut for "add selected" that works on standard autocad objects, but it doesn't work on architectural objects. Each object type (door, wall, etc..) seams uses it's own "add selected" command (Dooraddselected, walladdselected, etc..). Does anyone have a Lisp or is it even possible to create a one that works on everything. 

0 Likes
Accepted solutions (1)
3,321 Views
2 Replies
Replies (2)
Message 2 of 3

David_W_Koch
Mentor
Mentor
Accepted solution

It is possible, but I have never had a reason to write one prior to this.  The attached file is a first pass, and will support most of the AEC Object ...ADDSELECTED commands.  I chose not to support vanilla AutoCAD objects.  Two command functions are defined by this file:C:AecAddSelected (AutoCAD command AecAddSelected), which does all the work, and C:AAS  (AutoCAD command AAS), which is a more keyboard-friendly way of running C:AecAddSelected.

 

Here are the limitations of which I am aware:

  • Schedule Tags will not be added as such; they will be added by the MVBLOCKADDSELECTED command.  As such, the new copy/copies will not be tag anchored to any objects.  You can add the object for the tag anchor later, but it may be easier to just use the TAGADDSELECTED command directly.  A means of telling whether or not a Multi-View Block is a Schedule Tag would be required to add support for Schedule Tags.
  • Keynotes are not supported.  A means of telling whether or not a Multileader is a Keynote is required to add support for Keynotes.
  • Detail Components are not supported.  A means of telling whether all of the object types created by the Detail Component feature are in fact Detail Components would be necessary to add support for Keynotes.

David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 3 of 3

Anonymous
Not applicable

Thanks for the quick reply. That Lisp Works excelent.

 

Thanks Again!

0 Likes