几何尺寸与公差论坛

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

【转帖】external file references and sw api

[复制链接]
发表于 2009-4-13 10:50:37 | 显示全部楼层 |阅读模式
external file references and sw api
hello all,
i am trying to create a macro that will copy a drawing and it's referenced parts to a new directory, rename all the documents copied, and update the references in the drawing to point to the new parts. i am having trouble with finding out what parts are referenced and then updating the references. is there a way to get the reference from the drawing without opening it? or maybe i'm going about this all wrong.
thanks in advance,
brad
you may want to look into the document manager api.  it's basically the api for solidworks explorer.  if you want to use it, though, you will need to get a license key from solidworks.  just email apisupport at solidworks dot com.
-handleman, cswp (the new, easy test)
thanks handleman, i will look into that. does the sw explorer need to be open to use that api?
no, sw explorer doesn't need to be open.  sw doesn't even need to be open.  you can run the document manager stuff from any vb/vba/whatever.
-handleman, cswp (the new, easy test)
cool beans! this will solve many, many, many issues. thanks again handleman, a star for you good sir!
handleman,
thanks for letting us know about the document manager api. i sent in my request. another star for you.
standing
solidworks pro 2009 x64, sp3.0
pdmworks workgroup, solidworks bom,
hp xw8600, 64-bit windows vista business, service pack 1
intel xeon cpu, 3.00 ghz, 16 gb ram, virtual memory 166682 mb,
nvidia quadro fx 4600
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 01:27 , Processed in 0.035228 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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