GetCommandsForAdd Method


IExternal Data Manager Server Get Commands For Add Method

Retrieves commands in the Add menu.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
IList<ExternalDataManagerCommandId> GetCommandsForAdd()

Return Value

IList ExternalDataManagerCommandId
The commands ids for the Add menu.
Remarks
The returned ids define the drop-down list attached to the "Add" button in the dialog toolbar. Return an empty array if the server does not support adding new content. The ids must correspond to commands previously registered via ExternalDataManagerCommand.registerCommand.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →