API for Load Express Mode

API for Load Express Mode

Anonymous
Not applicable
832 Views
1 Reply
Message 1 of 2

API for Load Express Mode

Anonymous
Not applicable

Dear All,

 

Greetings....

 

I am currently doing a R&D on Inventor 2014 64-Bit. There is a Option in Inventor Open Express Or Load Express newly introduced in 2014.

I need to monitor the activites(Pre-Events and Post-Events) when Load Express or Open Express is Enabled during File Open(Assembly) or when Assembly is switched to Expressed Mode.


I have tried UIEvents, ApplicationEvents, DocumentEvents but am unable to figure this out.

 

Can any one help me..

 

Note: I have enclosed the images where the Load Express & Open Express Can be Found/Enabled

 

0 Likes
Accepted solutions (1)
833 Views
1 Reply
Reply (1)
Message 2 of 2

MistakenEngineer
Enthusiast
Enthusiast
Accepted solution

Sorry that this is posted many years later but I just had this same question and I found the answer so I figure I might as well post it to help others who find this post. To open a document in express mode you add the "ExpressModeBehavior", "OpenExpress" to the name value map:

 

Sub OpenFileInExpress()
    Dim oFileName As String
    oFileName = "C:\MyAssembly.iam"
    
    Dim oOptions As NameValueMap
    Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap
    Call oOptions.Add("ExpressModeBehavior", "OpenExpress")
    
    Call oApp.Documents.OpenWithOptions(oFileName, oOptions, True)
End Sub