I just happen to be working on a method that requires this, and it is based on the code here: http://adndevblog.typepad.com/autocad/2012/05/acce
Or in the case it is useful, the counter part in C#, that works for me here:
var nodDictionary = transaction.GetObject(database.NamedObjectsDiction
if (nodDictionary != null)
conststring acadImageVars = "ACAD_IMAGE_VARS";
var acadImageVarsId = nodDictionary.GetAt(acadImageVars);
rasterVariables = transaction.GetObject(acadImageVarsId, OpenMode.ForWrite) as RasterVariables;
rasterVariables = new RasterVariables();
if (rasterVariables != null)
rasterVariables.ImageFrame = FrameSetting.ImageFrameOff;
But it IS already equal to 0 when the program starts, so checking to see if it's 0 won't help. It must be changed to 1, then set back to 0 to get it to work. I've tested this several times.
Access a broad range of knowledge to help get the most out of your products and services.