sceneRoot->SetXRefFlags(index, XREF_DISABLED, true);
This does seem to change the enabled value in the xref scene dialog, but it does not seem to actually unload/load the xref in the scene. When I try the same in maxscript however, it works fine:
(xrefs.getXRefFile (index + 1)).disabled = true
Any ideas what could be going wrong here?