Hi all,
I am working on a stand alone program. Program opens drawings in a given folder, adds 4 more sheets (actually translates first sheet to four diff languages), saves the drawing, saves the drawing in PDF and DWG, closes the drawing and, while checking in the drawing, program throws the exception while:
1. setting the variables for all sheets (iEdmEnumeratorVariable8::SetVar)
2. getting configurations from file (iEdmFile7::GetConfigurations)
3. unlocking file (iEdmFile7::UnlockFile)
The exception is : An invalid pointer was supplied to the method
I have set 'Embed Interop Types' to False
Any help is appreciated.
Thanks a lot in advance...
The API help file recommends using the Interop dll for standalone apps. Are your following the instructions in the API help file. http://help.solidworks.com/2020/English/api/epdmapi/Using_NET_Framework_in_Applications.htm?id=c223a28695e84bee850c6ca2904efc95#Pg0
It could be the wrong target framework is wrong for the interop dll. If still does not work, can you upload your project so others can look at it?