Model#
The API is primarily built around object types that represent model entities in the Dlubal software (e.g. Nodes, Sections, Members, Loads etc.). This section is further divided to RSECTION specific objects and objects that are common accross Dlubal applications.
The RSECTION specific object types are organized into submodules based on their functionality.
# Define and create objects
object_lst = [
# Define material
rsection.structure_core.Material(
no=1,
name='S235',
),
# Define section
rsection.structure_core.Section(
no=1,
name='HE 300 A',
material=1,
),
# Define nodes
rsection.structure_core.Node(
no=1,
),
]
rsection_app.create_object_list(object_lst)
// Step 3: Define and create objects
var structure = new List<IMessage> {
new rsection.StructureCore.Material{
Name="S235"
},
new rsection.StructureCore.Section{
Name="HE 300 A",
Material=1,
},
new rsection.StructureCore.Node{
No=1,
Coordinate1=0,
},
};
await rsection_app.create_object_list(structure);