ExternalDataManagerTool
Description:
Represents an item of a content tool.
Represents an item of a content tool.
Remarks:
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.
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.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.UI.ExternalDataManagerTool
System.Object
Autodesk.Revit.UI.ExternalDataManagerTool
public class ExternalDataManagerTool : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| ExternalDataManagerTool(ExternalDataManagerCommandId) | None | Constructor | |
| ExternalDataManagerTool(ExternalDataManagerTool) | None | Create a copy of the object. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the ExternalDataManagerTool | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetChildCommandIds() | IList<ExternalDataManagerCommandId> | Obtains the sub menu of the item. | |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| SetChildCommandIds(IList<ExternalDataManagerCommandId>) | None | Sets the sub menu of the item | |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| CommandId | ExternalDataManagerCommandId | The id of the root command represented by this tool item. | |
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. |