My apologies but I meant to say:
I am building a tool which will open solidworks assemblies. For my computer I manually turned off the option to check out the file on open, but others have not done so and do not know how.
So would you believe I was continuing my search and got excited someone else finally had my problem only to realize I found my own post! Ha!
Anywho, does this lack of response mean that there is no answer for me? I have the following code:
swpart_model = swApp.OpenDoc6(Result.Path, swDocumentTypes_e.swDocASSEMBLY, swOpenDocOptions_e.swOpenDocOptions_ReadOnly + swOpenDocOptions_e.swOpenDocOptions_Silent, "", longstatus, longwarnings)
Part = swAssembly.AddComponent4(Result.Path, "", 0, 0, 0)
but ePDM does not recognize the readonly option and asks if the user wants to check it out. Very frustrating when you have 20+ to open.
Thanks for your attention.
This is exactly the behavior I need to mimic in my VB.NET program.
I need to set the user up the way you are showing, open the files, and reset back to on. I only want to change these boxes temporarily while I am opening my reference files.
Is there a possibility?
This option is stored on a per user basis in the registry.
Edit the value ReadOnlyWarning; 1 = checked; 0 = unchecked.
You would need to edit this via Microsoft.Win32 namespace in .NET. You can edit the value as part of your program. Hope this helps~