InventorApiExamples
Copy contents of bin\debug to C:\ProgramData\Autodesk\Inventor Addins\ReproduceVaultBug\
Alternatively change the *.addin file to point to the output directory of the build and copy only the *.addin file to the addins folder.
- Make sure auto-login is disabled in the Inventor Vault Add-in, if not, run Inventor, log out of Vault and then exit Inventor
- Run Inventor and open the "Tools" ribbon tab.
- Click all 4 buttons. All of them should open one or two small dialog windows.
- Log in to Vault in Inventor
- Click the "Fails After Login" button. This will throw an error. If debugging, notice how the Synchronization Context is lost and the appartment state has changed to MTA after the awaited call
- Click any of the other three buttons. All should succeed and open dialog windows. If debugging, observe the debug output to see how the Synchronization context and thread appartment state behaves.
Copy the contents of bin\Debug to C:\ProgramData\Autodesk\Inventor Addins\InvDwgCheckIn\
-
Run Inventor, and make sure you're logged in to Vault through the Inventor add-in
-
Create a new drawing using the *.dwg template
-
Save the drawing somewhere in the Vault workspace
-
Under the "Drawing Check-In" ribbon tab, click the "Check In Drawing" button Expected result: An error should be thrown saying the file is used by another process
-
Create a new drawing, using the *.idw template this time
-
Save the drawing somewhere in the Vault workspace
-
Click the "Check In Drawing" button again Expected result: File should be checked in to Vault and a message box should say "Success!" Refreshing the Vault browser in Inventor should reflect the successful check-in as well