By Wayne Brill
You may want to get the status of a file that was opened from Vault. See this blog post for a discussion on a way to do this.
This Inventor 2016 AddIn example uses the EntityStatusImageInfo to get the status of the Inventor active document. The example is only getting the status of a part but could be enhanced to get other file types. (The reason it is only working with parts is because the button is added to the "PMxPartFeatureCmdBar" command bar).
A form is used to display the image returned from this call.
The Graphics.DrawImage() of the Windows.Forms.PaintEventArgs passed into the Paint event for the form is used to show the image on the form.
Download the Inventor Add-In (Visual Studio 2013 project)
Click this button the Add-In adds to the ribbon to run the code.
Here is the procedure that gets the vault connection, the name of the active document and then uses a FileIteration to get the status. The FileIteration object is returned by using the name of the document. (that code is not shown here).