几何尺寸与公差论坛------致力于产品几何量公差标准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, 10:00 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】create dxf macro

"create dxf" macro
i've been trying to make a macro that will create a dxf of a part file that is currently open. i am not very familiar with vb so it seems impossible. to somebody that knows vb very well it would probably be very easy. if anybody has one that they are willing to share that would greatly appreciated. thanks
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
as far as i know you can create a dxf from a drawing, not a part or assembly.
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
in 2008 you can just open part and click save as dxf.
it is a lot faster then in 2007 but what i eventually want is to make a macro that will prompt me to open a folder and or select a file and save them all as dxf. for now i could work with one that just saves as dxf.
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
edited: 03/05/2008 at 11:20 am by ben guenther
guess i was wrong then. i am still using 2007.
wasn't there anything in the 08 api help file about saving as dxf?
what do you get when you record a macro by clicking on save as and then saving as a dxf?
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
yes there was but that one does not save it make the drawing but it does not save it and it does not hide the template and for as dumb as i am i can not figure out how to make it save or remove the template.
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
i don't quite understand what you mean or need for your macro. i am not a programmer and just do super simple macros to make my job easier. maybe someone who knows more and is running 08 could help out.
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
all i need is a macro that will save my open part as a dxf file. thanks for checking in though it is greatly appreciated.
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
originally posted by: ben guenther
in 2008 you can just open part and click save as dxf.
it is a lot faster then in 2007 but what i eventually want is to make a macro that will prompt me to open a folder and or select a file and save them all as dxf. for now i could work with one that just saves as dxf.
in 2008 there is no save as dxf for parts. per the help file;
the dxf/dwg translator exports only drawing documents as .dxf or .dwg files. when you export a drawing as a .dxf or .dwg file, the drawing's sheet scale is used for the new file. all entities (such as edges, annotations, and assembly components) on layers are exported to the assigned layer.
do you mean drawings? if so this attachment will save the drawing as dxf in the directory that the macro is being run in.
if you need it more automated that would take a little more coding that i don't have time for right now. but this is a start for you, but i think it would be just as easy to run the saveas through solidworks until this is automated to grab the filename from solidworks and change the extension.
sw 2008 sp5
sw 2009 sp2 (evaluating)
dell precision 690, 2gigs
quadro fx 4600
cswa, cswp, cswp-smtl
sorry guys there is a direct export for a part file to dxf i use it quite often
regards,
neal rusy
mechanical designer
meyer mfg. corp.
intel c2q 2.4ghz w/ 4gb ram
nvidia quadro fx 1700
2009 sp 2.1
pdm workgroup sp 2.1
click for full image
for some reason i don't have that option. do you need to turn on an add-in to get this export?
sw 2008 sp5
sw 2009 sp2 (evaluating)
dell precision 690, 2gigs
quadro fx 4600
cswa, cswp, cswp-smtl
click for full image
originally posted by: neal rusy
sorry guys there is a direct export for a part file to dxf i use it quite often
does this work only with sheet metal parts?
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】auto create 11 flat pattern and save as dxf yang686526 SolidWorks二次开发 0 2009-04-13 09:08 AM
【转帖】macro for inserting and mating a new part in an assembly yang686526 SolidWorks二次开发 0 2009-04-12 09:38 PM
【转帖】how do i slow a macro down yang686526 SolidWorks二次开发 0 2009-04-12 09:10 PM
【转帖】copy an existent sketch into a macro yang686526 SolidWorks二次开发 0 2009-04-12 08:31 PM


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


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