Suppress "Erasing Image" Dialog

Suppress "Erasing Image" Dialog

BL_Apex
Enthusiast Enthusiast
1,591 Views
5 Replies
Message 1 of 6

Suppress "Erasing Image" Dialog

BL_Apex
Enthusiast
Enthusiast

I have a lisp that's running a -WBLOCK command on an attached image. The image is being deleted from the drawing when the WBLOCK finishes, which is what I want it to do, but it's giving me this dialog:

 

quickcap.PNG

 

Is there a way to suppress the dialog and input "Yes"?

 

 

Thanks.

0 Likes
Accepted solutions (1)
1,592 Views
5 Replies
Replies (5)
Message 2 of 6

cadffm
Consultant
Consultant

Is this usual?

I can not test for the next hours, but then..

 

Please share a simple sample dwg(and image file), like to test it on my side.

 

Every day we can learn new things, also inside [please share program name and productversion here, command ABOUT]

 

 

Sebastian

0 Likes
Message 3 of 6

BL_Apex
Enthusiast
Enthusiast

When using the command below in LISP, the selected "last" object is deleted when the block is written.

(vl-cmdf "-wblock" "T:/Library/Electrical/CLIENTLOGO.dwg" "" "0,0" "L" "")

 

It's normal to get the dialog when deleting an image if it's the only instance of the image in the .dwg

 

 

I can attach samples in a bit.

 

 

AutoCAD 2019

 

0 Likes
Message 4 of 6

CodeDing
Advisor
Advisor

@cadffm ,

 

I can confirm that this is normal behavior. It appears when you delete the last remaining instance of a Raster XREF. I cannot find a way to duplicate it though, but I do see it often since I work with Rasters frequently.

 

AutoCAD 2020

 

Best,

~DD

Message 5 of 6

cadffm
Consultant
Consultant
Accepted solution

Thx  @BL_Apex (@codeDing)

I am right with my guessing: You are NOT running AutoCAD, you are running CIVIL3D?

(Productname and Productversion, see Command: ABOUT is always an well information in a thread)

 

 

C3D has more features about images.

2h ago:

I read the C3D-Help[F1], i found the information about erasing the last reference of an image attachment

(There should be an option for erasing the last reference for an image attachment. Also delete image data YES/NO/ASK

(so far i am guessing, i am not a C3D guy. never learned, never used.)

1h ago:

I downloaded C3D2021, I installed C3D2021,

<break> not enough memory at the drive where i want to create an admin image, clearing the drive a bit..

Start C3D the fitsz time

<break> it will not loaf the C3D cuix . grrrrrrrhhhhh

I used an old C3D.cuix from the internet, this way i can see some C3D specials, but

Nothing what would looking useful.

 

10min ago:

Now i was fishing in the dark (auto-complete feature of the commandline) and i found MAPIOPTIONS

I started MAPIOPTIONS command, checked the first tab, switched to the second, the GERNAL(?) tab

and there is it, the option you are after

I think you can find the rest yourself (command or registry key), or set the option simply by hand.

 

Happy to help

 

Your setting is not set to yes and not to no for the case: if the last reference deleted, should the program also delete the ExternalReferenc Information (hard to describe for me, i mean the line in XREF or -Image dialog)

 

The first hint from an old help (2013 C3D)

http://docs.autodesk.com/CIV3D/2013/ENU/index.html?url=filesMAPC3D/GUID-482D931B-9B53-43E1-9934-8A52...

 

Help [F1] about mapioptions

http://help.autodesk.com/view/CIV3D/2021/ENU/?guid=GUID-92323BCB-F8D7-4DB5-B72D-52A5404662ED

 

If you like to see the dialog in german version: Attached

 

 

After 2 1/2h solved

Sebastian

Message 6 of 6

BL_Apex
Enthusiast
Enthusiast

It's so simple 🙂 

 

And yes, as a correction, I am running "Civil 3D as Autocad 2019".

 

These options dialogs you never hear anyone talk about always seem to hold the answers. I set the Image Detach Preference to "Always Detach" and it worked like a charm. I'll go ahead and mark this as a solution.

 

Some day I may try to attack it with lisp. It looks like you have to change the setting through the registry as mentioned here:

https://forums.autodesk.com/t5/autocad-map-3d-forum/how-do-i-change-mapioptions-with-vba-or-lisp/td-... 

 

I appreciate your time and effort, @cadffm. Thanks!

0 Likes