
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I want screen captures for MXX,MYY and so on (sectional forces and moments) for the structure that I have. I want to just save these screen captures in jpeg format in a folder so that I can use them later.
I have written the following code:
IRobotView3 mavuerobot = Robapp.Project.ViewMngr.GetView(1) as IRobotView3;
mavuerobot.Selection.Get(IRobotObjectType.I_OT_CASE).FromText("1");
mavuerobot.Redraw(1);
mavuerobot.Projection = IRobotViewProjection.I_VP_3DXYZ;
mavuerobot.ParamsFeMap.CurrentResult = IRobotViewFeMapResultType.I_VFMRT_DETAILED_MOMENT_XX;
mavuerobot.Visible = 1;
mavuerobot.Redraw(1);
Robapp.Project.ViewMngr.Refresh();
RobotViewScreenCaptureParams ScPar = Robapp.CmpntFactory.Create(IRobotComponentType.I_CT_VIEW_SCREEN_CAPTURE_PARAMS);
ScPar.Name = "First capture";
ScPar.UpdateType =IRobotViewScreenCaptureUpdateType.I_SCUT_CURRENT_VIEW;
ScPar.Resolution =IRobotViewScreenCaptureResolution.I_VSCR_4096;
mavuerobot.MakeScreenCapture(ScPar);
Could you please help me as to how I should save the screen capture in .jpeg now? And I am correctly capturing the screen capture for panel MXX through the above code?
Solved! Go to Solution.