几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】bundel of individual drawing sheets in to one big file (http://www.dimcax.com/hust/showthread.php?t=5125)

yang686526 2009-04-13 09:23 AM

【转帖】bundel of individual drawing sheets in to one big file
 
bundel of individual drawing sheets in to one big file?
hi guys,
i am a new user of solidworks and just want to know,
is there any possible way to join individual drawing files in to one big drawing file having multiple sheets.
yes it is possible. i am just adding a new "tools" system to batchprocess and this will be one of the tools to do exactly this. i will be releasing the new bp in a day or so so will let you know.
alternately you can have a crack at creating a macro to do this. basically you would gather the required drawing file locations from the user, then open each drawing (swapp.opendoc6), get all the drawing sheets (drawingdoc.getsheetnames), perform a copy command on each, and a paste command to a new file to paste each sheet into a single file (modeldoc.editcopy, modeldoc.paste). you would check for filename collisions and rename them if so to prevent errors.


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