Table of Contents

Class Model

Namespace
FemDesign
Assembly
FemDesign.Core.dll

Model. Represents a complete struxml model.

public class Model
Inheritance
Model
Inherited Members
Extension Methods

Constructors

Model(Country, List<IStructureElement>, List<ILoadElement>, List<LoadCase>, List<LoadCombination>, List<ModelGeneralLoadGroup>, ConstructionStages, SoilElements, bool)

Initialize a model with elements.

public Model(Country country, List<IStructureElement> elements = null, List<ILoadElement> loads = null, List<LoadCase> loadCases = null, List<LoadCombination> loadCombinations = null, List<ModelGeneralLoadGroup> loadGroups = null, ConstructionStages constructionStage = null, SoilElements soil = null, bool overwrite = false)

Parameters

country Country

Country/Annex of the FEM-Design model.

elements List<IStructureElement>

Structural elements.

loads List<ILoadElement>

Load elements

loadCases List<LoadCase>

Load cases

loadCombinations List<LoadCombination>

Load combinations

loadGroups List<ModelGeneralLoadGroup>

Load groups

constructionStage ConstructionStages

Construction stages object instance.

soil SoilElements

Soil element

overwrite bool

Properties

BoltTypes

public List<Bolt_lib_type> BoltTypes { get; set; }

Property Value

List<Bolt_lib_type>

CltPanelTypes

public CltPanelTypes CltPanelTypes { get; set; }

Property Value

CltPanelTypes

Composites

public Composites Composites { get; set; }

Property Value

Composites

ConstructionStages

public ConstructionStages ConstructionStages { get; set; }

Property Value

ConstructionStages

ConvertId

public string ConvertId { get; set; }

Property Value

string

Country

National annex of calculation code

public Country Country { get; set; }

Property Value

Country

End

public string End { get; set; }

Property Value

string

EndTime

The data is partial data, so the newest entity latest modification date and time is this value in UTC. This date and time always in UTC!

public string EndTime { get; set; }

Property Value

string

Entities

public Entities Entities { get; set; }

Property Value

Entities

Geometry

public DatabaseGeometry Geometry { get; set; }

Property Value

DatabaseGeometry

GlcPanelTypes

public GlcPanelTypes GlcPanelTypes { get; set; }

Property Value

GlcPanelTypes

Guid

public Guid Guid { get; set; }

Property Value

Guid

LineConnectionTypes

public LineConnectionTypes LineConnectionTypes { get; set; }

Property Value

LineConnectionTypes

LineSupportGroupTypes

public LineSupportGroupTypes LineSupportGroupTypes { get; set; }

Property Value

LineSupportGroupTypes

Materials

public Materials Materials { get; set; }

Property Value

Materials

OrthotropicPanelTypes

public OrthotropicPanelTypes OrthotropicPanelTypes { get; set; }

Property Value

OrthotropicPanelTypes

PointConnectionTypes

public PointConnectionTypes PointConnectionTypes { get; set; }

Property Value

PointConnectionTypes

PointSupportGroupTypes

public PointSupportGroupTypes PointSupportGroupTypes { get; set; }

Property Value

PointSupportGroupTypes

PtcStrandTypes

public PtcStrandType PtcStrandTypes { get; set; }

Property Value

PtcStrandType

ReinforcingMaterials

public ReinforcingMaterials ReinforcingMaterials { get; set; }

Property Value

ReinforcingMaterials

Sections

public ModelSections Sections { get; set; }

Property Value

ModelSections

SoilAsSolid

public bool SoilAsSolid { get; set; }

Property Value

bool

SourceSoftware

Name of the StruSoft or 3rd party product what generated this XML file.

public string SourceSoftware { get; set; }

Property Value

string

Standard

Calculation code

public string Standard { get; set; }

Property Value

string

StartTime

The data is partial data, so the oldest entity latest modification date and time is the value in UTC. If the current XML contains the whole database, the start_time value is "1970-01-01T00:00:00Z". The date and time always in UTC!

public string StartTime { get; set; }

Property Value

string

StruxmlVersion

The actual struXML version; should be equal to the schema version the xml file is conformed to.

public string StruxmlVersion { get; set; }

Property Value

string

SurfaceConnectionTypes

public SurfaceConnectionTypes SurfaceConnectionTypes { get; set; }

Property Value

SurfaceConnectionTypes

SurfaceSupportTypes

public SurfaceSupportTypes SurfaceSupportTypes { get; set; }

Property Value

SurfaceSupportTypes

UserDefinedFilters

public List<Userfilter_type> UserDefinedFilters { get; set; }

Property Value

List<Userfilter_type>

UserDefinedViews

public DatabaseUser_defined_views UserDefinedViews { get; set; }

Property Value

DatabaseUser_defined_views

VehicleTypes

public VehicleTypes VehicleTypes { get; set; }

Property Value

VehicleTypes

Xmlns

public string Xmlns { get; set; }

Property Value

string

Methods

AddCurve3d(Curve)

public void AddCurve3d(Curve obj)

Parameters

obj Curve

AddDrawings<T>(IEnumerable<T>, bool)

public Model AddDrawings<T>(IEnumerable<T> elements, bool overwrite) where T : IDrawing

Parameters

elements IEnumerable<T>
overwrite bool

Returns

Model

Type Parameters

T

AddElements<T>(IEnumerable<T>, bool)

Add structural elements to Model.

public Model AddElements<T>(IEnumerable<T> elements, bool overwrite = true) where T : IStructureElement

Parameters

elements IEnumerable<T>

Structural elements to be added.

overwrite bool

Returns

Model

Type Parameters

T

Structural elements (IStructureElement).

AddElements<T>(params T[])

Add structural elements to Model.

public Model AddElements<T>(params T[] elements) where T : IStructureElement

Parameters

elements T[]

Structural elements to be added.

Returns

Model

Type Parameters

T

Structural elements (IStructureElement).

AddEntities(List<Bar>, List<FictitiousBar>, List<Slab>, List<FictitiousShell>, List<Panel>, List<Cover>, List<object>, List<LoadCase>, List<LoadCombination>, List<ISupportElement>, List<Storey>, List<Axis>, List<ModelGeneralLoadGroup>, bool)

Add entities to Model.

public Model AddEntities(List<Bar> bars, List<FictitiousBar> fictitiousBars, List<Slab> shells, List<FictitiousShell> fictitiousShells, List<Panel> panels, List<Cover> covers, List<object> loads, List<LoadCase> loadCases, List<LoadCombination> loadCombinations, List<ISupportElement> supports, List<Storey> storeys, List<Axis> axes, List<ModelGeneralLoadGroup> loadGroups, bool overwrite)

Parameters

bars List<Bar>
fictitiousBars List<FictitiousBar>
shells List<Slab>
fictitiousShells List<FictitiousShell>
panels List<Panel>
covers List<Cover>
loads List<object>
loadCases List<LoadCase>
loadCombinations List<LoadCombination>
supports List<ISupportElement>
storeys List<Storey>
axes List<Axis>
loadGroups List<ModelGeneralLoadGroup>
overwrite bool

Returns

Model

AddEntity(Curve, bool)

public void AddEntity(Curve obj, bool overwrite)

Parameters

obj Curve
overwrite bool

AddEntity(Point3d, bool)

public void AddEntity(Point3d obj, bool overwrite)

Parameters

obj Point3d
overwrite bool

AddEntity(Layer_type, bool)

public void AddEntity(Layer_type obj, bool overwrite)

Parameters

obj Layer_type
overwrite bool

AddLabelledSection(LabelledSection, bool)

Add LabelledSection to Model

public void AddLabelledSection(LabelledSection obj, bool overwrite)

Parameters

obj LabelledSection
overwrite bool

AddLayer(Layer_type, bool)

public void AddLayer(Layer_type obj, bool overwrite)

Parameters

obj Layer_type
overwrite bool

AddLinearDimension(DimensionLinear, bool)

public void AddLinearDimension(DimensionLinear obj, bool overwrite)

Parameters

obj DimensionLinear
overwrite bool

AddLoadCases(params LoadCase[])

public Model AddLoadCases(params LoadCase[] loadCases)

Parameters

loadCases LoadCase[]

Returns

Model

AddLoadCases(IEnumerable<LoadCase>, bool)

public Model AddLoadCases(IEnumerable<LoadCase> loadCases, bool overwrite = true)

Parameters

loadCases IEnumerable<LoadCase>
overwrite bool

Returns

Model

AddLoadCombinations(params LoadCombination[])

public Model AddLoadCombinations(params LoadCombination[] loadCombinations)

Parameters

loadCombinations LoadCombination[]

Returns

Model

AddLoadCombinations(IEnumerable<LoadCombination>, bool)

public Model AddLoadCombinations(IEnumerable<LoadCombination> loadCombinations, bool overwrite = true)

Parameters

loadCombinations IEnumerable<LoadCombination>
overwrite bool

Returns

Model

AddLoadGroupTable(List<ModelGeneralLoadGroup>, bool)

Add LoadGroupTable to Model.

public void AddLoadGroupTable(List<ModelGeneralLoadGroup> generalLoadGroups, bool overwrite)

Parameters

generalLoadGroups List<ModelGeneralLoadGroup>
overwrite bool

AddLoads<T>(IEnumerable<T>, bool)

Adds loads to the model.

public Model AddLoads<T>(IEnumerable<T> elements, bool overwrite = true) where T : ILoadElement

Parameters

elements IEnumerable<T>

Load elements to be added.

overwrite bool

Returns

Model

Type Parameters

T

ILoadElement is any load object in FEM-Design.

AddLoads<T>(params T[])

Adds loads to the model.

public Model AddLoads<T>(params T[] loads) where T : ILoadElement

Parameters

loads T[]

Returns

Model

Type Parameters

T

ILoadElement is any load object in FEM-Design.

AddPoint3d(Point3d)

public void AddPoint3d(Point3d obj)

Parameters

obj Point3d

AddSoilElement(SoilElements, bool)

Add Soil to the model.

public Model AddSoilElement(SoilElements element, bool overwrite = true)

Parameters

element SoilElements
overwrite bool

Returns

Model

AddSupports<T>(IEnumerable<T>, bool)

Add supports to the model.

public Model AddSupports<T>(IEnumerable<T> elements, bool overwrite = true) where T : ISupportElement

Parameters

elements IEnumerable<T>

Support elements to be added.

overwrite bool

Returns

Model

Type Parameters

T

ISuppotElement is any support object.

AddSupports<T>(params T[])

Add supports to the model.

public Model AddSupports<T>(params T[] supports) where T : ISupportElement

Parameters

supports T[]

Returns

Model

Type Parameters

T

ISuppotElement is any support object.

AddTextAnnotation(TextAnnotation, bool)

public void AddTextAnnotation(TextAnnotation obj, bool overwrite)

Parameters

obj TextAnnotation
overwrite bool

DeserializeFromFilePath(string)

Deserialize model from file (.struxml).

public static Model DeserializeFromFilePath(string filePath)

Parameters

filePath string

Returns

Model

SerializeModel(string)

Serialize Model to file (.struxml).

public void SerializeModel(string filePath)

Parameters

filePath string

SerializeToString()

Serialize Model to string.

public string SerializeToString()

Returns

string

SetConstructionStages(List<Stage>, bool, bool)

public void SetConstructionStages(List<Stage> stages, bool assignModifedElement = false, bool assignNewElement = false)

Parameters

stages List<Stage>
assignModifedElement bool
assignNewElement bool