External
|
Represents an item of a content tool.
System
Object
Autodesk.Revit.UI ExternalDataManagerTool
Autodesk.Revit.UI ExternalDataManagerTool
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
The ExternalDataManagerTool type exposes the following members.
| Name | Description | |
|---|---|---|
|
|
ExternalDataManagerTool(ExternalDataManagerCommandId) | Constructor |
|
|
ExternalDataManagerTool(ExternalDataManagerTool) | Create a copy of the object. |
| Name | Description | |
|---|---|---|
|
|
CommandId | The id of the root command represented by this tool item. |
|
|
IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
| Name | Description | |
|---|---|---|
|
|
Dispose | Releases all resources used by the ExternalDataManagerTool |
|
|
Equals |
Determines whether the specified object is equal to the current object.
(Inherited from Object ) |
|
|
GetChildCommandIds | Obtains the sub menu of the item. |
|
|
GetHashCode |
Serves as the default hash function.
(Inherited from Object ) |
|
|
GetType |
Gets the
Type
of the current instance.
(Inherited from Object ) |
|
|
SetChildCommandIds | Sets the sub menu of the item |
|
|
ToString |
Returns a string that represents the current object.
(Inherited from Object ) |
A tool item represents either a single actionable command (leaf)
or a container that owns one or more child commands (parent/branch).
Tool items are returned by IExternalDataManagerServer.getContentTools and
are used to populate the context-sensitive content tools panel or right-click menus.
A typical workflow is:
1. The server constructs a tool item providing the id of the root command.
2. If the root command has sub-commands the server fills ChildCommandIds
with the ids of those sub-commands.
3. Revit uses the ids to look-up command metadata in ExternalDataManagerCommand
and builds the appropriate UI.
All user-visible strings associated with commands (name, tooltip) should be
localized by the server.