Add references EPDM.Interop.epdm.dll and
EPDM.Interop.EPDMResultCode.dll by:
- Right-clicking the
project name in the Solution Explorer.
- Selecting Add
> Reference or Add > Project Reference (depending on the
project template you selected).
- Clicking Browse tab > Browse... and navigating
to the top folder of your SOLIDWORKS PDM Professional installation.
- Locating and selecting
EPDM.Interop.epdm.dll.
- Clicking Add and
OK.
- Repeating step 3.
- Locating and selecting EPDM.Interop.EPDMResultCode.dll.
- Repeating step 5.
Prevent failures when
calling methods that pass arrays of structures by:
- Right-clicking References > EPDM.Interop.epdm
or Dependencies > Assemblies > EPDM.Interop.epdm
(depending on the project template you selected)
in the Solution Explorer
and selecting Properties.
- Setting Embed Interop Types to No.
- Right-clicking References > EPDM.Interop.EPDMResultCode
or Dependencies > Assemblies > EPDM.Inerop.EPDMResultCode (depending
on the project template you selected)
in the Solution Explorer
and selecting Properties.
- Setting Embed Interop Types to No.
- Initializing arrays of structures in your code to: