TheSwamp

Code Red => .NET => Topic started by: Atook on January 23, 2018, 01:17:48 PM

Title: What can remove a dictionary from a drawing?
Post by: Atook on January 23, 2018, 01:17:48 PM
Just had a weird bug show up in my app where a dictionary that was created on the NOD via .NET disappeared. Two other dictionaries created with the same methods remained, so I don't think it's a problem with the dictionary creation/saving code.

I'm trying to figure out how this could have happened, I tried the purge command, but that didn't do it.

I imagine WBLOCK could do it, but only one of the three dictionaries was removed. I would imagine WBLOCK would remove all the dictionaries, keeping only drawing entities.

The drawing may have been opened in both AutoCAD and Bricscad, but again, I've tested that a few times and it hasn't been a problem.

Any ideas?
Title: Re: What can remove a dictionary from a drawing?
Post by: dgorsman on January 23, 2018, 02:43:31 PM
UNDO?

Did it go missing after closing the drawing/application, or was this in the same session?
Title: Re: What can remove a dictionary from a drawing?
Post by: Atook on January 23, 2018, 02:57:26 PM
Different sessions.

Title: Re: What can remove a dictionary from a drawing?
Post by: MP on January 23, 2018, 03:24:46 PM
Different sessions.

(http://www.sott.net/image/s21/436146/full/22bf0db5_ac2f_4f7f_aa24_65fc04.jpg)

Title: Re: What can remove a dictionary from a drawing?
Post by: ChrisCarlson on January 23, 2018, 04:57:29 PM
perhaps dictremove?

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-0A888F13-7C2A-4CB6-B849-56B72EAC972A-htm.html