Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(API) Geting Required Reinforcement on panels

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
psynan
414 Views, 4 Replies

(API) Geting Required Reinforcement on panels

What is the way to get Required Reinforcement values on panels from API?

 

robapp.Project.Structure.Results ... ???

 

Slab Req Reinf List.png

4 REPLIES 4
Message 2 of 5
Rafal.Gaweda
in reply to: psynan

Public Sub CommandButton1_Click()

Dim RobApp = New RobotApplication


Dim FeReinRes As RobotFeResultReinforcement

row = 10

For i = 1 To 24

   
    Set FeReinRes = RobApp.Project.Structure.Results.FiniteElems.Reinforcement(i)
    
    Cells(row, 2) = FeReinRes.AX_BOTTOM * 10000
    Cells(row, 3) = FeReinRes.AX_TOP * 10000
    Cells(row, 4) = FeReinRes.AY_BOTTOM * 10000
    Cells(row, 5) = FeReinRes.AY_TOP * 10000
    
    row = row + 1

Next i

End Sub

 



Rafal Gaweda
Message 3 of 5
psynan
in reply to: Rafal.Gaweda

As I understand,

 

robapp.Project.Structure.Results.FiniteElems.Reinforcement() -> expects an integer (node number)

 

however it doesn't work.

 

RobotSelection NodeSelection = robApp.Project.Structure.Selections.CreateFull(IRobotObjectType.I_OT_NODE); // Select Nodes
IRobotCollection NodeCollection = (IRobotCollection)robApp.Project.Structure.Nodes.GetMany(NodeSelection); // Collect Nodes
for (int i = 1; i <= NodeCollection.Count; i++)
{
RobotNode RN = NodeCollection.Get(i); var FeRein = (RobotFeResultReinforcement)robApp.Project.Structure.Results.FiniteElems.Reinforcement(RN.Number); double asax = FeRein.AX_BOTTOM * 1000; double asay = FeRein.AY_BOTTOM * 1000; double asux = FeRein.AX_TOP * 1000; double asuy = FeRein.AY_TOP * 1000; }

 

this doesn't work.

all values are 0.0

 

Message 4 of 5
Rafal.Gaweda
in reply to: psynan

No

robApp.Project.Structure.Results.FiniteElems.Reinforcement(FE.Number)

or

robApp.Project.Structure.Results.FiniteElems.Reinforcement(FE.Number, Node.Number)



Rafal Gaweda
Message 5 of 5
psynan
in reply to: Rafal.Gaweda

No. Its not working that way!

 

One should provide the panel number together with the node number, instead of FE number.

 

Check out the image!

Panel Reinforcement.png

 

 

So the correct way is:

 

robApp.Project.Structure.Results.FiniteElems.Reinforcement(Panel.Number, Node.Number)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report