查看单个帖子
旧 2009-04-13, 01:56 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】resolve xref dialog

resolve xref dialog
is there any way to programmicatlly skip or turn off the resolve xref dialog?
i have a program to open dwg files and print after opening, but i have a few files that have references that i'd like to skip when i open the file to print, (if they can't be located), i'd like to set an option or someting to skip all references that can't be located.
thanks in advance.
roger
post the code you are using to open the file with
me.axemodelviewcontrol1.opendoc(filename, false, false, true, "")
ah you are using edrawings; then unfortunately no. edrawings api is just too limited.
yes, i'm using edrawings.
a little background of my app, it attempts to open docs and print and then close the doc, all unattended. but when i hit a file with an external reference, i get the xref dialog, which causes the app to simply wait until i close it.
is there anyway that i can check the file for external references that don't exist before i try to open it, and if so, skip it. if i can't turn off the xref dialog, or auto skip?
with edrawings, unfortunately no, no and no.
your only other option is to use the solidworks document manager to check for xrefs
well fudge!
thanks for the comments and comformation!
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)