Message 1 of 2
How to create your own build-in command

Not applicable
03-02-2017
07:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have built a button on a customized tab and I want to create customized functions for this button. How should I define this button?
for example, I have define the button with an internal name "OpenStepCmd". How should I associate it with my own code? For example, to count component number of an assembly. From my understanding, each controldefinition is referenced with its only internal name, but it is a string. How to add functions to it?
m_sampleButton = controlDefs.AddButtonDefinition("Open STEP", "OpenStepCmd", CommandTypesEnum.kFileOperationsCmdType, AddInClientID, "", "Open a STEP file", largeIcon)
Thanks