1

I am new in using AutoCAD and I am trying to work with its API in C#.

At some point, I am trying to send a list of commands to save an external reference without the interference of the user.

SendCommand("_-REFEDIT OK All Yes REFCLOSE Save ");

But a blocking pop-up (dialog box) appears right after, pop-up image:

pop-up image

It can be closed only by clicking on it.

Can anyone tell me if there is a way to avoid this pop-up appearing or to close it programmatically?

Thanks

Ramil Aliyev 007
  • 4,437
  • 2
  • 31
  • 47
do.ma
  • 11
  • 2
  • Have you tried like this? `SendCommand("_-REFEDIT OK All Yes REFCLOSE Save\n");` `SendCommand("Save\n");` – BouRHooD Sep 29 '22 at 06:31

1 Answers1

0

Have you investigated setting the FILEDIA variable to 0 before running the command?

To quote:

Does not display dialog boxes. You can still request a file dialog box to appear by entering a tilde (~) in response to the Command prompt.

Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
  • 1
    Already tried to set FILEDIA to 0, but it doesn't change anything for this dialog box – do.ma Jun 08 '21 at 07:41