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

HiddenCommands Method

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
simonsson
568 Views, 3 Replies

HiddenCommands Method

I found the HiddenCommands Method in the IExtension Interface in the new API (2011).

I just wonder what this is for and how to use it.

- What is this for?
- When is this method called?
- Can I hide standard commands in the Vault Explorer?

Thanks!
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: simonsson

Yes, the HiddenCommands function is used to hide standard commands in
VaultExplorer. This is useful if you want to replace an existing command
with your custom command.

You can use IApplication.CommandIds to see the list of command strings.

HiddenCommands is invoked after OnStartup and before OnLogOn, I think. You
can set breakpoints to confirm.
It shouldn't matter when the function is called. All the function needs to
do is pass back a list of commands that should be hidden.

--
-- Doug Redmond
Software Engineer, Autodesk Inc.
http://justonesandzeros.typepad.com/
Message 3 of 4
simonsson
in reply to: Anonymous

Getting back to this thread again...

 

I just tried this and it works fine, but what is the best (correct) way to get back the hidden command again? Reset toolbars didn't bring it back.

 

Message 4 of 4
Redmond.D
in reply to: simonsson

If you remove the extension that is hiding the command, then the command should be visible again.



Doug Redmond
Software Engineer
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report