How to accept automatic file resolutions while using silent option

How to accept automatic file resolutions while using silent option

matt_jlt
Collaborator Collaborator
394 Views
3 Replies
Message 1 of 4

How to accept automatic file resolutions while using silent option

matt_jlt
Collaborator
Collaborator

Is there a way to have inventor automatically accept file resolutions when using silent application operation?

Currently, the silent operation will just  open a file, ignore any issues and if there is a file that can automatically resolve, it seems like the default operation is to just cancel / no and it means the drawing opens with unresolved references until you manually run resolve references.

 

I can't work this out. Is there a command that i can call that will achieve the same outcome?

 

Thanks, Matt.

0 Likes
395 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Not sure about the whole situation you are working on, but within the online help page for that option is a hint about another option (Application.Visible) where you could just make the Inventor application not visible, or use the Application.WindowState property to minimize the application while processing stuff.  I haven't used either of them for anything before, so I don't know if they have the same effect or not.  Another popular option for helping to reduce resource usage is to turn the Application.ScreenUpdating off just before a batch of code runs, then turn it back on at the end.  It all kind of depends on what is causing the problems.  If it is being caused by opening files with issues, and you want to avoid dealing with these issues, here is a method that might be able to help with that:  Documents.OpenWithOptions()

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

matt_jlt
Collaborator
Collaborator

Thanks Crihfield, I checked out your suggestions, the closest i could see was the open with options setting of "SkipAllUnresolvedFiles", but i want it to do the opposite, resolve automatically instead of user having to manually do it.

The issue i have is that a lot of files have (for some reason that i don't know / before my time) have been moved / checked in and moved, when they are downloaded from the vault, they ask for a bunch of files to be resolved. It's just the prompt that says the file is different / may cause issues or whatever but on accept everything is fine.

 

So I am intentionally running the silent operation but would like to manually run the code to repair the resolve files.

 

I just can't work out how to do it without user interaction and running on silent?

 

Thanks, Matt.

0 Likes
Message 4 of 4

matt_jlt
Collaborator
Collaborator

Does anyone know how to solve this issue? It has been bugging me for weeks and I can't work it out,

 

I have tried so many different ways but still no luck.

 

If I didn't have so many files to run i would probably just not run silent operation but it's not possible in this case.

 

0 Likes