Discussion Groups

Robot Structural Analysis

Reply
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010

Reduced forces and moments of a panel cut with Robot API

381 Views, 2 Replies
10-27-2011 02:53 PM

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.

 

 

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 4,931
Registered: ‎04-26-2010

Re: Reduced forces and moments of a panel cut with Robot API

10-29-2011 01:26 PM in reply to: LuisCRodrigues

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

 

reduced.jpg



Rafal Gaweda
Please use plain text.
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010

Re: Reduced forces and moments of a panel cut with Robot API

10-30-2011 04:49 AM in reply to: Rafal.Gaweda

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?

Please use plain text.