几何尺寸与公差论坛

 找回密码
 注册
查看: 848|回复: 0

【转帖】help with a downloaded pdf macro

[复制链接]
发表于 2009-4-13 11:44:52 | 显示全部楼层 |阅读模式
help with a downloaded pdf macro
i downloaded this macro to create pdf files and it has 3 options as to choose what to be exported.
1. all sheets to be converted
2. select the sheets to be converted
3. all sheets to individual files.
i have tried the various options, but it seems that the pdf files that are created still contain all the sheets. does anyone know why this would happen? your help is much appreciated. this would greatly aid in our document control department.
i am currently using sw2008 sp3.1.
thanks again.
ben conners
lovat inc.
bconn@lovat.com
it looks like this macro is for older versions of solidworks. solidworks now uses adobe to create pdf's. this macro is for versions that use the bluebeam pdf writer. i do not remember which version solidworks switched in, but i do remember it was in one of the service packs.
wayne matus
texas engineering systems
your problem is a bug in the api. i have encountered it before.
to fix it go to manually save a file as a pdf, and in the save as window select options. the options for which sheets to save will be in this window and you have to change them here. the api calls do not actually change these values even though they report that they do! yet another bug.
hey luke,
i looked at the options for pdf export, but there seems to be nothing really there that i can change. i have attached a screen shot of the pdf options, although i would think all machines should be the same for this.
would you happen to have any other ideas. i have a few of these little pdf programs that we would like to find one that i could get working to use in the doc control department. they all seem to be writing all the sheets to the pdf file. i would of liked to give them your batch process, but there is just too much built into it for them. i am reserving the batch process program for the engineering department and possibly for production.
thanks again for your help.
click for full image
the only other option is to use the modeldoc2.extension.saveas with exportdata, unless the macro you are using already uses that?
hey luke,
it seems that none of the macros i have contain modeldoc2.extension.saveas. this type of stuff is a little too advanced for me. i'm only capable of simple modifications. i even tried a macro that was written by stephane demers (thread entitled "pdf export page select" in the forum but i had to create a form with some listbox and select button, but i cannot even get that to work.
are there any other simple macros a little more to date towards sw2008 that you may think work. i just need it to create pdfs for all sheets, or for selected sheets, and to be saved in the same directory as the drawing.
thanks for your help.
ben conners
the macro listed above doesn't really use bluebeam if you are using 2006+. it only tries to activate it if it's not turned on. even still, since 2006+ doesn't use bluebeam, i wouldn't use this macro if you are using 2006+.
either way, it (and most pdf save as macros) use saveas4 to save the drawing as a pdf. i know there is a modification somewhere on eng-tips.com in the solidworks section that has code for a similar pdf save as macro that allows the user to print each sheet as a its own pdf file. you may want to look there.
matt lorono
solidworks 2007 sp3.1
cad engineer/ecn analyst
i will write another tool (macro this time) for saving all sheets to pdf for you and put it on a6 some time next week.... busy fitting a pc and tft screen into my car and amping the speakers this weekend
thanks very much for all your help.
its much appreciated.
i'll do this macro friday morning ben, i haven't forgot.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 18:53 , Processed in 0.035404 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表