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


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 11:44 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】help with a downloaded pdf macro

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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】execute a sw macro from a macro of another software, is it possible yang686526 SolidWorks二次开发 0 2009-04-13 10:46 AM
【转帖】how to silent printing pdf from sw macro yang686526 SolidWorks二次开发 0 2009-04-12 09:24 PM
【转帖】macro to save as pdf from sw2009 missing geometric tolerance symbols yang686526 SolidWorks二次开发 0 2009-04-12 06:56 PM
【转帖】how to silent printing pdf from sw macro yang686526 SolidWorks二次开发 0 2009-04-12 06:39 PM
下载好多软件 ping CAD资料交换区 6 2007-03-03 09:13 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多