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
