Can anyone give me brief description about Document managerAPI?
What can I do with it?
How can I use it?
Thanks in advance.SolidworksApi macros
What can I do with it?
How can I use it?
Thanks in advance.SolidworksApi macros

Did you study the API Help? It has a section describing DocumentManager. You can also search the forum. The question has been askedbefore. Anyway, it's a toolbox (not an application) with toolswhich makes it possible to perform certain operations on SolidWorksfileswithout opening them in SolidWorks - and therefore doing itmuch faster. Examples of things to do are:reading/changing/deleting properties, getting configuration namesand changing references between files.
Study the 'Sample application' in the 'Getting started' section ofthe API Help - and the other examples. It should give you a goodidea about how you can use it.
It seems to instantate an instance you need to enter a license key.I have yet to find any calls in swApp or the like to get thelicense key? Anyone.
Edit: Apparently this license key is not required after 2006. So,that leaves me to the conclusion the API examples are very out ofdate.
Is the Document Manager becoming obsolete?
Luke Malpass wrote:
It seems to instantate an instance you need to enter a licensekey. I have yet to find any calls in swApp or the like to get thelicense key? Anyone.
You have to get the license key from SW. See how at the page"Welcome to SolidWorks Document Manager API Help" in the DocumentManager API Help.
Luke Malpass wrote:
Edit: Apparently this license key is not required after 2006.So, that leaves me to the conclusion the API examples are very outof date.
Is the Document Manager becoming obsolete?
For a period you didn't need license key for Document Manager butfrom SW2007 you need it again.
Document Manager is not obsolete. I have played around with it.It's a great tool.
Luke Malpass wrote:
How then would you create an application that can be sold ordistrubuted if you need a license key and cannot get it usingAPI?
Solution: Compile your projects - do not publish ordinary SW macrosusing Document Manager functionality unless your customers requesttheir own license key and enter it in the macro.
Luke Malpass wrote:
Well I happen to know DriveWorks uses the document manager, yetit is distributed without the need for a SW license file. Is thatlegal?
Can somebody point me in the right direction? I would like to usethe Document Manager API that the SwDocumentMgr.dll exposes. I amassuming that I need to register the .dll in the GAC since I am adeveloper without SolidWorks installed on my machine. Could someoneplease provide instructions for this or how to include it a C#windows app (.net 2)? Also, can we export/save SolidWorks files(.sldprt, .sldasm, .slddrw) files as their equivalent EDrawingformat (eprt, easm, edrw respectively) through theSwDocumentMgr.dll? We would like to automate this process.
Thanks.
https://forum.solidworks.com/forum/messageview.cfm?catid=11&threadid=16724&highlight_key=y&keyword1=%20%20%09%20Document%20manager%20api
Thanks
Georg Draxler wrote:
Now i have also a license for the DM. So i understand thisright: i can sold a compiled application which use the DM Manager?If someone sells such an application he has to attache theSwdocumentmgr.dll am i right? is this legal? Is i legal to attachethe SolidWorks.Interop.sldworks.dll files to applications whichdon't use the DM?
"Document Manager is a free, lightweight library that can beinstalled and redistributed independently of SolidWorks, per theEULA. Information is currently distributed separately fromSolidWorks on an as-need basis.
Please do not share this key with anyone outside your company ordistribute it with any software you ship in plain-text format.Instead, specify the key in a compiled binary module."
As I read this you are free to distribute Swdocumentmgr.dll withyour application but you must NOT ship any code with your licensekey in readable format i.e. your code must be compiled (a macrofile with security enabled won't do).
Travis Clarke wrote:
Also, can we export/save SolidWorks files (.sldprt, .sldasm,.slddrw) files as their equivalent EDrawing format (eprt, easm,edrw respectively) through the SwDocumentMgr.dll? We would like toautomate this process.
Can anyone else confirm that this is what the method allows? Iwon't be able to test this until next week.
Thanks!
Wayne Matus wrote:
That is the method that you will use, but I think you have tohave the document properties, image quality, "Save tessellationwith part document" checked for it to work properly.
I have been doing some testing and I am not able to save theeDrawing. I get an error swDmEDwgDataErrorNoData even though themodel is saved with tessellated data. I can open the SolidWorksmodel in eDrawings Viewer. Reported the problem to API support andwill let you know when I hear something.