create_object_list#
- dlubal.api.rfem.Application.create_object_list(self, objs, model_id=None)#
Creates a list of objects in the model.
- Parameters:
objs (list[obj]) – A list of objects to be created.
model_id (ModelId | None) – Unique identifier of the model. If None, the active model is used.
- Returns:
None
Method Type: Core
Usage
objects_to_create = [
rfem.structure_core.Material(
no=1,
name="S235",
),
rfem.structure_core.Section(
no=1,
material=1,
name="IPE 300",
),
rfem.structure_core.Node(
no=1,
coordinate_1=1.5
),
]
rfem_app.create_object_list(objects_to_create)
var objectsToCreate = new List<Google.Protobuf.IMessage>
{
new Rfem.StructureCore.Material
{
No = 1,
Name = "S235"
},
new Rfem.StructureCore.Section
{
No = 1,
Material = 1,
Name = "IPE 300",
},
new Rfem.StructureCore.Node
{
No = 1,
Coordinate1 = 1.5
}
};
await RfemApp.create_object_list(objectsToCreate);