IMAGEATTACH use in script files (Suppress Dialog box showing)

IMAGEATTACH use in script files (Suppress Dialog box showing)

Anonymous
Not applicable
1,318 Views
3 Replies
Message 1 of 4

IMAGEATTACH use in script files (Suppress Dialog box showing)

Anonymous
Not applicable

I am using a script file to attach many images into multiple AutoCAD drawings. Each line in the script file looks like this:

 

_imageattach "C:\Images\test.jpg" 5.0,-2.xxx-xxxxxxxx 5.0

 

where the 5.0,-2.xxx-xxxxxxxx is the bottom left coordinate and the 5.0 is the scaling. 

 

Although this works fine, a dialog box pops up for every image. For each dialog box I have to click 'ok' before the image attaches. Is there any way to avoid the dialog box popping up? 

 

Thanks

 

Tom

0 Likes
1,319 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant
-IMAGE command?
0 Likes
Message 3 of 4

pendean
Community Legend
Community Legend
0 Likes
Message 4 of 4

Anonymous
Not applicable

i did this unintetionaly and foud the solution to get my popup dialog box back,

enter comand:

 

SYSVARMONITOR

 

cange FILEDIA from 1 to 0

 

and all popups are blocked:

 

FILEDIA (System Variable)

Suppresses display of file navigation dialog boxes.

Type:Integer
Saved in:Registry
Initial value:1

Value

Description

0

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.

1

Displays dialog boxes. However, if a script is active, an ordinary prompt is displayed.

Prompts are also displayed if an AutoLISP or ObjectARX™ program is active. (Not applicable to AutoCAD LT.)

0 Likes