Are there any known issues with the Application.Ready property when the Application.UserInterfaceManager.UserInteractionDisabled = True and Application.SilentOperation = True options are used?
I have an issue when these two options are used, the Application.Ready property never becomes true, yet when these options are missed out, the ready property becomes true.
Is this a known issue?
Is there any other operation after setting the UserInteractionDisabled = True and SilentOperation = True? Better that you can post some code here. And is your Inventor 32bit or 64bit?
This is the module code exported from Access - it is designed to convert open SolidWorks parts and save them as Inventor parts. It extracts the custom properties from the database and inserts them into the part before saving it.
It is Inventor 2012 32-bit.
Thanks
I could not reproduce the same issue just according to your code. But I have a suggestion that you could modify your code like below:
If (Err) Then Err.Clear Set oIVApp = CreateObject("Inventor.Application") oIVApp.Visible = True Do While (Not IVReady) Sleep (100) DoEvents If (oIVApp.Ready) Then IVReady = True Sleep (5000) End If Loop oIVApp.UserInterfaceManager.UserInteractionDisabled = True oIVApp.Documents.Add (kNoDocument) oIVApp.SilentOperation = True On Error GoTo skip End If
Before the Inventor initialization is compoleted, I would like to wait untill it is ready, then start to do any other operations. So I modify your code to set the UserInteractionDisabled and SilentOperation after the Inventor is ready. Please try and see if it works there.