I'm trying to make a macro using Robot API to get the reduced forces and moments of panel cuts.
The idea is to make some cuts along a panel and get the reduced forces and moments for all combinations.
Does any one has a small sample of code to get the reduced forces and moments of a panel cut?
Thanks in advance.
For any arbitrary panel cut it is not possible - you can only display this value on screen
Dim PanelCut As RobotPanelCut
Set PanelCut = RobApp.Project.Structure.Results.FiniteElems.Panel
PanelCut.DefinitionType = I_PCDT_FULL_PLANE
PanelCut.Point1.Set 0, 2, 0
PanelCut.Point2.Set 2, 0, 0
PanelCut.Point3.Set 2, 0, 2
PanelCut.Active = True
Dim RView As IRobotView3
Set RView = RobApp.Project.ViewMngr.GetView(1)
RView.Projection = I_VP_3DXYZ
RView.ParamsPanelCut.CurrentResult = I_VFMRT_DETAILED_MOMENT_XX
RView.ParamsPanelCut.IntegralValue = True
RView.ParamsPanelCut.Position = I_VDPT_NORMAL
RView.ParamsPanelCut.Smoothing = I_VFMST_SMOOTHING_WITH_PANEL
RView.ParamsPanelCut.Layer = I_VFMLT_MIDDLE
RView.ParamsPanelCut.Descritpions = I_VDDT_LABELS
RView.ParamsPanelCut.Filling = I_VDFT_FILLED
or you can get Reduced force for predefined cuts (available in Reduced Results table)
Dim ReResults As RobotFeResultReduced
Set ReResults = RobApp.Project.Structure.Results.FiniteElems.Reduc
ReducedMy = ReResults.MY
What I wanted to achieve was getting the forces along a beam defined as a panel.
For beams defined as bars, I have made a Macro that is working ok. It reads the forces in some points along the bar and writes in Excel the maximums and minimums values as long as other information.
I tough that making cuts along a panel I could get the same information.
Do you know another way of getting the reduced forces along the panel?