Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Cancel Vault Commands

3 REPLIES 3
Reply
Message 1 of 4
georg_michalik
388 Views, 3 Replies

How to Cancel Vault Commands

Hi,

 

I'am trying to disable the MoveToFolder Command with DragAndDrop. Sometimes customers are moving documents by accident and there is no way to stop.

 

I tried with CommandBegin and the Command id MoveToFolder and then Application.Exit or something else but this doesn't work.

Than I tried GetRestriction for Delete but it seems that the Command doesn't fire this event. To hide the MoveToFolder Command hides the Command in the menu but doesn't block the Command.

 

Thanks for Help.

 

Georg

 

 

3 REPLIES 3
Message 2 of 4
Redmond.D
in reply to: georg_michalik

Did you try GetRestriction for the MoveFile and MoveFolder events?  I would expect one of those to fire.



Doug Redmond
Software Engineer
Autodesk, Inc.

Message 3 of 4

Hello Doug,

 

Thank you for answering, but my request is for 2012. Sorry I forgot about it. The move event doesn't exist in 2012, right?

 

Georg

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

Correct, there is no move event.  There is no way to block move commands in the Vault 2012 API.



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