Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where can I find the ControlDefinitions list in Red String?

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Stakin
753 Views, 5 Replies

Where can I find the ControlDefinitions list in Red String?

Sub AddCommandsToFileBrowser()

    ' Get the application menu controls collection
    Dim oFileBrowserControls As CommandControls
    Set oFileBrowserControls = ThisApplication.UserInterfaceManager.FileBrowserControls

    ' Get the "Zoom All" and "Home View" commands
    Dim oDef1 As ButtonDefinition
    Set oDef1 = ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomAllCmd")

    Dim oDef2 As ButtonDefinition
    Set oDef2 = ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd")

    ' Create button controls, positioned before the "Manage" control
    Call oFileBrowserControls.AddButton(oDef1, True, True, "Manage", True)
    Call oFileBrowserControls.AddButton(oDef2, True, True, "Manage", True)
    Call oFileBrowserControls.AddSeparator("Manage", True)

 

 

 

5 REPLIES 5
Message 2 of 6
mrattray
in reply to: Stakin

You'll likely get better help for programming type questions in the Inventor Customization forum.

I couldn't find anything in the help that lists command names. Perhaps you could write a for each loop that runs through the entire ControlDefinitions collection and outputs each name to the immediate window?

Mike (not Matt) Rattray

Message 3 of 6
Stakin
in reply to: mrattray

thanks very much

i will try to make a loop to write up all the commands.

 

Message 4 of 6
jdkriek
in reply to: Stakin

Answered here

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 5 of 6
Stakin
in reply to: jdkriek

Thanks Very Much.



It work for Me??
Message 6 of 6
jdkriek
in reply to: Stakin

Very welcome 😉

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report