几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】incorporating 3d pdf into existing file saving macro (http://www.dimcax.com/hust/showthread.php?t=5446)

yang686526 2009-04-13 12:14 PM

【转帖】incorporating 3d pdf into existing file saving macro
 
incorporating 3d pdf into existing file saving macro
i need to incorporate 3d pdf into an existing macro. every day i deal with many (100-700) files that i need to save as step, iges, sat, etc... i already have a macro that incorporates all of these files. within that macro, i added 3d pdf. if i first open a sldprt file save as pdf and check the 3d pdf box, the macro will create 3d pdf. but if i do not, it will just create a pdf of the screen shot.
how do i tell the macro to make the file a 3d pdf without having to first save a file as pdf and check the 3d pdf button? i am not too familiar with api but this is how i have it set up.
newsavedname = (exportdirname & name2 & "3d" & ".pdf") 'pass new name to variable
bret = swmodel.saveas4(newsavedname, swsaveascurrentversion, swsaveasoptions_silent, _
nerrors, nwarnings)
if bret = false then
nretval = swapp.sendmsgtouser2("problems saving file.", swmbwarning, swmbok)
end if
any help is greatly appreciated!
quick


所有的时间均为北京时间。 现在的时间是 09:29 AM.