m_DialogEvents_OnFileSaveDialog - Get "Document SubType Name"

m_DialogEvents_OnFileSaveDialog - Get "Document SubType Name"

isocam
Collaborator Collaborator
238 Views
1 Reply
Message 1 of 2

m_DialogEvents_OnFileSaveDialog - Get "Document SubType Name"

isocam
Collaborator
Collaborator

Can anybody help?

 

I am creating a Vb.Net "AddIn", for Autodesk Inventor.

 

I need to know, for testing purposes, the "Document SubType Name" of a part, or assembly and display it in a MsgBox prior to actually saving the part or assembly.

 

This "Document SubType Name" could be "Assembly", "Modelling" or "Sheet Metal"

 

Does anybody know how I can achieve this??

 

Many thanks in advance!

 

Darren

0 Likes
239 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor

When saving a file I expect that you are saving the active document. In that case you can get the document of the Inventor.Application object. Something like this.

Dim doc as Document = InventorApp.ActiveDocument

For getting the correct (sub)Document type you should see this post "Inventor document sub-types" It contains a very good example.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes