The VB code for the Solidworks files preview could besomething like that :
Dim Extractor As SldWorks_ExtractBitmap.SldWorks_ExtractBitmap
Dim nErrors As Long
Set Extractor = New SldWorks_ExtractBitmap.SldWorks_ExtractBitmap
nErrors = Extractor.ExtractBitmap(percorso5, "C:\file.bmp", 297,210)
If nErrors = 1 Then
abcdefg = "C:\file_vuoto.bmp"
Else
abcdefg = "C:\file.bmp"
band1 = "1"
End If
OLE1.Visible = False
Image1.Visible = True
Image1.Picture = LoadPicture(abcdefg)
I would like to know the Library Name to load and the string codefor the dwg preview.
Thanks
SolidworksApi macros
Dim Extractor As SldWorks_ExtractBitmap.SldWorks_ExtractBitmap
Dim nErrors As Long
Set Extractor = New SldWorks_ExtractBitmap.SldWorks_ExtractBitmap
nErrors = Extractor.ExtractBitmap(percorso5, "C:\file.bmp", 297,210)
If nErrors = 1 Then
abcdefg = "C:\file_vuoto.bmp"
Else
abcdefg = "C:\file.bmp"
band1 = "1"
End If
OLE1.Visible = False
Image1.Visible = True
Image1.Picture = LoadPicture(abcdefg)
I would like to know the Library Name to load and the string codefor the dwg preview.
Thanks
SolidworksApi macros