I am new to the API and need to be able to see and print documents from the vault using an ASPX page. I'm not sure which DLLs to import to my code behind and what their dependencies might be. Basically, I need a starting point.
Here are a couple links to look at.
API/Macros - There is a lot of reference material here showing how to do specific tasks with the API
2014 SOLIDWORKS API Help - Getting Started - This should hopefully help get you started with a project and references.
To elaborate, you will want to include the following .dll files as reference in your project. You may not need to use them all but it won't hurt to have them included as a reference until you get further along and determine if you can remove them or not.
These are located in your SolidWorks installation directory by default.
I'm not sure how to help much further without more information. I haven't made an ASPX page before so that is pretty new to me. I am assuming you are using Visual Studio and will be programming some of the code behind the page with wither C# or VB.NET. There are a lot of resources on the SolidWorks help page for both of these languages. A google search with a short description of what you want to do and the words "Solidworks API" will help with 90% of roadblocks along the way regarding specific tasks you want to perform.
Thanks for the response. When I research this, everything I see indicates that I have to log into the vault from my page. Researching the vault seems to tell me that it's part of this DLL: EPDM.Interop.epdm. However, I don't have that DLL that I can find. In a nutshell, I need to open the vault, search it for a specific document where the document name is known, and then display that document. I can't seem to get off square one - open the vault.
You're correct. I wasn't aware you were going to be working in EPDM. I may be wrong but I think EPDM.Interop.epdm installs standard to your local machine but I want to say it only works with EPDM Professional. I checked to make sure that's what ours is by opening the Administration tool and clicking Help and then the About Solidworks PDM Administration.
DLL Location: C:\Program Files\SolidWorks Enterprise PDM
That just might explain everything! Just to be clear, though, I think you are saying that without the Professional version we cannot interact with the vault programmatically. Is that correct? I believe we have the Premium version.
SOLIDWORKS PDM Standard is included with SOLIDWORKS Professional and Premium. PDM Standard does not allow you to access the PDM API. You must purchase SOLIDWORKS PDM Professional to use the PDM API.
Thanks much for your help to date. We are still having issues. Let me ask this: is the installation of the API separate and distinct from the installation of Solid Works itself?
Yes Gary, the PDM API installs only when a client of PDM is installed. Professional only, as Michael Dekoning mentioned. The SOLIDWORKS APIs are installed when SOLIDWORKS is installed.
Here are a few references to get you started.
2018 SOLIDWORKS API Help - Getting Started
searching the PDM vault (look through the code in the OnTaskRun procedure, starting at Dim Search As IEdmSearch6)
2018 SOLIDWORKS API Help - Create a Task that Finds Files in Workflow States Example (VB.NET)
And a shameless plug for a book that has chapters dedicated to the PDM Professional API...
Thank you. For some reason I wasn't able to reply before, but now I can, and wanted to thank you for your help.
May I ask why you don't just use Web2?
Hi Michael -- I guess I really don't know what it would mean to "use Web2", but nonetheless I am constrained by an underlying application within which I need to develop this ASPX page. Thanks for the input!
Web2 is a way to access a PDM Professional vault using a browser instead of Windows File Explorer.
Retrieving data ...