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.
Hi
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.PanelCuts.Create
PanelCut.DefinitionType = I_PCDT_FULL_PLANE
PanelCut.Point1.Set 0, 2, 0
PanelCut.Point2.Set 2, 0, 0
PanelCut.Point3.Set 2, 0, 2
RobApp.Project.Structure.Results.FiniteElems.PanelCuts.Store PanelCut, "pc"
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
RView.Redraw 1
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.Reduced(panel_number, I_FRRCP_HORIZONTAL_MIDDLE, case_number)
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?
I am also interested in getting user defined Panel Cut Integral Values (MXX, MYY) out of Robot via API. I see that some years ago it was not possible. Is it possible today in Robot 2016?
Best Regards
Daniel
@Rafal.Gaweda do you know why after recalculating robot values taken by api for reduced results for panels do not match values shown in Robot?
I have python script in Dynamo that take reduced results. When I open Dynamo and robot for the first time and run script results match those in robot. However when i change something in definition of panel or i change loads and run script for the second time results are not matching. Any ideas? Can i somehow update results or refresh them? is there any method for this?
Is there any news on this topic?
Is it still not possible to get the reduced forces/moments of a panel cut via API?
Can't find what you're looking for? Ask the community or share your knowledge.