Hey! The link @Rafal.Gaweda sent is not working for me. Can somebody direct to me to it? I am in the same situation as the author of the post!
I am creating the view and later trying to close it/delete it as it slows down Robot quite a lot with so many views:
var panelSelection = GetPanelSelection(panelGroupName);
var rsaView = _rProject.ViewMngr.CreateView(IRobotViewType.I_VT_MAPS_ON_FINITE_ELEMENTS) as IRobotView3;
var selectedCombinations = GetCombGroupSelList(_rStructure.Groups, combType);
var getObjectsInView = rsaView.Selection.Get(IRobotObjectType.I_OT_CASE);
getObjectsInView.FromText(selectedCombinations);
rsaView.Selection.Set(IRobotObjectType.I_OT_PANEL, panelSelection);
var scrCaptureName = $"{panelGroupName} - {resultName} ({combType})";
CaptureRsaView(rsaView, scrCaptureName);
rsaView.Visible = -1;
Marshal.ReleaseComObject(view);
rsaView = null;