Share

ControlDefinitions Object


Description

The ControlDefinitions collection object provides access to existing objects.

Methods

Name Description
AddButtonDefinition Method that adds a newButtonDefinition object.
AddComboBoxDefinition Method that creates a new ComboBoxDefinition object.
AddMacroControlDefinition Method that creates a new MacroControlDefinition object. The MacroControlDefinition object is used to define the information associated with a button that can be used to execute an Inventor VBA macro, insert an iPart, insert an iFeature or execute an EXE.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Count Property that returns the number of items in the collection.
Item Returns the specified ControlDefinitionobject from the collection.
Type Returns an ObjectTypeEnum indicating this object's type.
UseDefaultMultiCharAliases Gets/Sets whether the multi-character Command Aliases delivered with Inventor should be used. The equivalent UI option is found under the 'Keyboard' tab of the Customize dialog.

Accessed From

CommandManager.ControlDefinitions

Samples

Name Description
Add commands to the application menu Demonstrates adding command to the application menu.
Add parallel environment with contextual tabs The following sample demonstrates the use of parallel environments and contextual ribbon tabs.
Print list of all Inventor Commands This sample prints the internal names and descriptions of all commands (aka ControlDefinitions) in Inventor.
Create a ribbon panel in an existing tab Demonstrates creating a new ribbon panel within an existing ribbon tab.
Break alignment of a section view Sample showing how to break the alignment of a drawing section view by calling the DrawingBreakViewAlignment command.

Version

Introduced in version 6

Was this information helpful?