Hello
I'm looking for an example of how to use SolidWorks.Interop.swdocumentmgr.dll in Windev, without opening Solidworks.
In Solidworks V2011, I used the custom settings of the Solidworks documents as interfaces with my specific ERP in Windev. I was using DsoFiles, which had access to these settings. This allowed me to update these settings without opening Solidworks; An example:
Make a copy of a +parts +drw assembly from one customer to another customer by changing all custom properties to those of the new customer. BOM lines are created dynamically (Windev) and the information passed by DSOFiles to the Solidworks docs. (The copy continues by a change of name of the parts and the recopy of the dependencies but it's a part that still works in 2015 because the compatibility has been kept, at least I hope :) ).
Custom settings for Solidworks V2015 documents are no longer available with DSoFiles -> this is a Microsoft (Office) decision, followed by Solidworks.
Now you have to use the APIs of the SolidWorks.Interop.swdocumentmgr.dll DLL, to manage these parameters. It's well documented in VB but I couldn't call this DLL in Windev (V20).
I can use the Solidworks kernel APIs very well:
SwAppDocDepencies is a Dynamic Automation object
SwAppDocDepencies = allocate Automation object "sldworks. Application"
On the other hand, impossible with SolidWorks.Interop.swdocumentmgr.dll. In 2 weeks, I tried everything that the Hot Line gave me as information (but in VB.NET), everything I found on the NET... But there is nothing on the subject in Windev!
So I can't switch to V2015 until I find the solution!
So if you've already done that, please send me a piece of code, I promise you 1st praise :)
Sincere greetings.
PS: I haven't found an ERP interface or API domain to determine the domain of the qustion