- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone,
I have automatic view creation by API and view capture (code below), I have some following problems:
Code:
rbApp = new RobotApplication();
struc = rbApp.Project.Structure;
rbSelectPanels = struc.Selections.Get(IRobotObjectType.I_OT_OBJECT);
rbSelectPanels.FromText(dicStories[item]);
IRobotView3 viewRobot = (IRobotView3)rbApp.Project.ViewMngr.CreateView(IRobotViewType.I_VT_STANDARD);
viewRobot.Selection.Set(IRobotObjectType.I_OT_PANEL, rbSelectPanels);
viewRobot.Visible = 1;
viewRobot.Redraw(0);
viewRobot.Title = item;
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_FE_PANEL_CONTOURS, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_OTHER_GRID, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_OTHER_STRUCTURAL_AXIS, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_OTHER_STRUCTURAL_AXIS_DESCRIPTION, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_VALUES, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_SYMBOLS_UNIFORM_SIZE, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_SYMBOLS_PLANAR, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_SYMBOLS_LINEAR, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_SYMBOLS_CONCENTRATED, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_AUTOMATICALLY, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_DISTRIBUTION_REGIONS, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_STRUCTURE_SUPPORT_SYMBOLS, false);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_DISTRIBUTION_REGIONS, true);
viewRobot.ParamsDisplay.Set(IRobotViewDisplayAttributes.I_VDA_LOADS_VALUES, true);
rbSelectPanels.Clear();
rbApp.Project.ViewMngr.Refresh();
RobotViewScreenCaptureParams scPar = rbApp.CmpntFactory.Create(IRobotComponentType.I_CT_VIEW_SCREEN_CAPTURE_PARAMS);
scPar.Name = item;
scPar.UpdateType = IRobotViewScreenCaptureUpdateType.I_SCUT_CURRENT_VIEW;
scPar.Resolution = IRobotViewScreenCaptureResolution.I_VSCR_4096;
viewRobot.MakeScreenCapture(scPar);
rbApp.Project.PrintEngine.AddScToReport(item);
rbApp.Project.PrintEngine.SaveReportToOrganizer();
rbApp.Project.PrintEngine.SaveReportToFile(@"D:\2.API\API Robot\All\Pic tesst\" + item + nameCas[1] + ".rtf",
IRobotOutputFileFormat.I_OFF_RTF_JPEG);
1. is there any way i can select the Maximize box of the newly created view ? (Pic 1)
Pic1
2. when i create auto view and use photo capture function the photo is black, is there any way to fix it using API?
(Pic 2)
Pic2
Thanks for your help.
Solved! Go to Solution.