how to attach reference drawing from tool palette without dialog box
In AutoCAD I have a tool with this command:
^C^C-Xref Attach O:/CAD_Files/05_TOPO_NL-ALGEMEEN/Gemeenten/_Totaal/Gemeenten_NL.dwg;0,0;1;1;0;
When I use this in BricsCAD I get a dialog box and I have to locate the map manually.
How can I tell Bricscad to open the file, and not give me the attach dialog box?
Sander
0
Comments
-
Try
[code]^c^c(setvar 'filedia 0);_-xref;_attach;D:/Test.dwg;0,0;1;1;0;(setvar 'filedia 1)[/code]
Note: in your original macro you are using both spaces and semicolons as enter. I prefer to use semicolons only.0 -
Yes - that works perfect.Thanks for the advice Roy.0
-
Dear All.
however, there is a strange thing ...
using "_-XREF" should never open the filedialog. as the "-" hyphen in command name indicates.
If "_-XREF" would indeed open the dialog, please send us a support request, likely with you menu
(trying _-xref ...) on commandline works fine - no dilaog.
Many greetings !0 -
I double checked, and without 'setvar 'filedia 0' the dialogue box opens.I have send in a support call.0
This discussion has been closed.