几何尺寸与公差论坛

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

【转帖】incorporating 3d pdf into existing file saving macro

[复制链接]
发表于 2009-4-13 12:14:27 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 13:45 , Processed in 0.036986 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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