How to save active document as pngfile without license key in c#?
Shital Thigale wrote: How to save active document as pngfile without license key in c#?
Shital Thigale wrote:
Could you elaborate more on your question? Are you talking about saving active view of the active document opened in SolidWorks as PNG file?
I assume you are talking about using the Document Manager API (SwDMDocument[something]).
This is not necessary if you have a document open in SolidWorks.
Just use Extension::SaveAs method. Specify filename ending in ".PNG". SolidWorks will do the rest.
There is no way to use the Document Manager API without a license key string.
Thanks, it was a right solution
Another option if you do no want to open the files in SOLIDWORKS but you still have SOLIDWORKS installed on the system you can extract the thumbnail icon from the shell file: c# - Extract thumbnail for any file in Windows - Stack Overflow
Retrieving data ...