几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】exporting certain pages to certain file types (http://www.dimcax.com/hust/showthread.php?t=5331)

yang686526 2009-04-13 10:49 AM

【转帖】exporting certain pages to certain file types
 
exporting certain pages to certain file types
i've written up a macro to create a pdf, dxf, and e-drawing file for my active drawing. it's not the most efficient but it's my first foray into vb programming so bear with me/it.
currently the macro:
1) generates a pdf of all the sheets in the drawing
2) generates an e-drawing of all the sheets in the drawing
3) jumps to the last sheet of the drawing, generates a dxf of that sheet, and then jumps back to the first sheet of the drawing and ends
4) all files are saved in the source file folder
what i'd like to add/modify in the macro is:
1) export just the sheet named "dxf" to the dxf file format if it exists
2) export all sheets except the sheet named "dxf" to pdf format
3) export all sheets except the sheet named "dxf" to e-drawing format
4) close the document after the files are created. do not dismiss any "save" pop-ups, let the user decide.
i know it's asking for a bunch of help but at my current skill level and pace it would take me a while to figure this out.
thanks for any/all help. i've attached my macro below.
-jody
mechanical engineer
temptronic corp
.temptronic.com


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