Elasticity module algorithm

Elasticity module algorithm

Anonymous
Not applicable
217 Views
0 Replies
Message 1 of 1

Elasticity module algorithm

Anonymous
Not applicable

Dear Autodesk Community:

Good afternoon

I hope you are fine

I am designing an algorithm in Dynamo for Autodesk Robot to create a steel material in which I must define the elasticity module as a free variable (with Python language). In other words, you can edit or adopt a value, for example, from an Excel sheet. I'm just getting started with the Robot API. Therefore, the algorithm does not work for me, I think I need to update the algorithm language. As an example, I have used an algorithm made in the Robot API manual for concrete elements. Could someone correct it with this specification, please? I would appreciate it very much.

 

Kind regards

PS: I attach current algorithm below

 

import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('DSCoreNodes')

clr.AddReferenceToFileAndPath(r"C:\Program Files\Autodesk\Robot Structural Analysis Professional 2023\Dynamo\2.13\Rsa\package\SAD\bin\RSA\interop.RobotOM.dll")

from RobotOM import *

 

dataEnteringNode = IN

SectionName = IN[0]
SectionMaterial = IN[1]
Material.E = IN[2]

 

robapp = RobotApplicationClass()
RLabelServer = RobotLabelServer
RLabelServer = robapp.Project.Structure.Labels

 

MaterialName = "Concrete 30"
Set Label = labels.Create(I_LT_MATERIAL, MaterialName)
Dim Material As RobotMaterialData
Set Material = Label.Data
Material.Type = I_MT_CONCRETE
Material.E = xxx-xxxxxxxx# ' Young
Material.NU = 1# / 6# ' Poisson
Material.RO = 25000# ' Unit weight
Material.Kirchoff = Material.E / (2 * (1 + Material.NU))
labels.Store Label

0 Likes
218 Views
0 Replies
Replies (0)