几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】string for dwg preview (http://www.dimcax.com/hust/showthread.php?t=4924)

yang686526 2009-04-12 10:30 PM

【转帖】string for dwg preview
 
string for dwg preview
the vb code for the solidworks files preview could be something 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 code for the dwg preview.
thanks
quick


所有的时间均为北京时间。 现在的时间是 10:54 PM.