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
countryCountryCountry/Annex of the FEM-Design model.
elementsList<IStructureElement>Structural elements.
loadsList<ILoadElement>Load elements
loadCasesList<LoadCase>Load cases
loadCombinationsList<LoadCombination>Load combinations
loadGroupsList<ModelGeneralLoadGroup>Load groups
constructionStageConstructionStagesConstruction stages object instance.
soilSoilElementsSoil element
overwritebool
Properties
BoltTypes
public List<Bolt_lib_type> BoltTypes { get; set; }
Property Value
CltPanelTypes
public CltPanelTypes CltPanelTypes { get; set; }
Property Value
Composites
public Composites Composites { get; set; }
Property Value
ConstructionStages
public ConstructionStages ConstructionStages { get; set; }
Property Value
ConvertId
public string ConvertId { get; set; }
Property Value
Country
National annex of calculation code
public Country Country { get; set; }
Property Value
End
public string End { get; set; }
Property Value
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
Entities
public Entities Entities { get; set; }
Property Value
Geometry
public DatabaseGeometry Geometry { get; set; }
Property Value
GlcPanelTypes
public GlcPanelTypes GlcPanelTypes { get; set; }
Property Value
Guid
public Guid Guid { get; set; }
Property Value
LineConnectionTypes
public LineConnectionTypes LineConnectionTypes { get; set; }
Property Value
LineSupportGroupTypes
public LineSupportGroupTypes LineSupportGroupTypes { get; set; }
Property Value
Materials
public Materials Materials { get; set; }
Property Value
OrthotropicPanelTypes
public OrthotropicPanelTypes OrthotropicPanelTypes { get; set; }
Property Value
PointConnectionTypes
public PointConnectionTypes PointConnectionTypes { get; set; }
Property Value
PointSupportGroupTypes
public PointSupportGroupTypes PointSupportGroupTypes { get; set; }
Property Value
PtcStrandTypes
public PtcStrandType PtcStrandTypes { get; set; }
Property Value
ReinforcingMaterials
public ReinforcingMaterials ReinforcingMaterials { get; set; }
Property Value
Sections
public ModelSections Sections { get; set; }
Property Value
SoilAsSolid
public bool SoilAsSolid { get; set; }
Property Value
SourceSoftware
Name of the StruSoft or 3rd party product what generated this XML file.
public string SourceSoftware { get; set; }
Property Value
Standard
Calculation code
public string Standard { get; set; }
Property Value
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
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
SurfaceConnectionTypes
public SurfaceConnectionTypes SurfaceConnectionTypes { get; set; }
Property Value
SurfaceSupportTypes
public SurfaceSupportTypes SurfaceSupportTypes { get; set; }
Property Value
UserDefinedFilters
public List<Userfilter_type> UserDefinedFilters { get; set; }
Property Value
UserDefinedViews
public DatabaseUser_defined_views UserDefinedViews { get; set; }
Property Value
VehicleTypes
public VehicleTypes VehicleTypes { get; set; }
Property Value
Xmlns
public string Xmlns { get; set; }
Property Value
Methods
AddCurve3d(Curve)
public void AddCurve3d(Curve obj)
Parameters
objCurve
AddDrawings<T>(IEnumerable<T>, bool)
public Model AddDrawings<T>(IEnumerable<T> elements, bool overwrite) where T : IDrawing
Parameters
elementsIEnumerable<T>overwritebool
Returns
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
elementsIEnumerable<T>Structural elements to be added.
overwritebool
Returns
Type Parameters
TStructural elements (IStructureElement).
AddElements<T>(params T[])
Add structural elements to Model.
public Model AddElements<T>(params T[] elements) where T : IStructureElement
Parameters
elementsT[]Structural elements to be added.
Returns
Type Parameters
TStructural 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
barsList<Bar>fictitiousBarsList<FictitiousBar>shellsList<Slab>fictitiousShellsList<FictitiousShell>panelsList<Panel>coversList<Cover>loadsList<object>loadCasesList<LoadCase>loadCombinationsList<LoadCombination>supportsList<ISupportElement>storeysList<Storey>axesList<Axis>loadGroupsList<ModelGeneralLoadGroup>overwritebool
Returns
AddEntity(Curve, bool)
public void AddEntity(Curve obj, bool overwrite)
Parameters
AddEntity(Point3d, bool)
public void AddEntity(Point3d obj, bool overwrite)
Parameters
AddEntity(Layer_type, bool)
public void AddEntity(Layer_type obj, bool overwrite)
Parameters
objLayer_typeoverwritebool
AddLabelledSection(LabelledSection, bool)
Add LabelledSection to Model
public void AddLabelledSection(LabelledSection obj, bool overwrite)
Parameters
objLabelledSectionoverwritebool
AddLayer(Layer_type, bool)
public void AddLayer(Layer_type obj, bool overwrite)
Parameters
objLayer_typeoverwritebool
AddLinearDimension(DimensionLinear, bool)
public void AddLinearDimension(DimensionLinear obj, bool overwrite)
Parameters
objDimensionLinearoverwritebool
AddLoadCases(params LoadCase[])
public Model AddLoadCases(params LoadCase[] loadCases)
Parameters
loadCasesLoadCase[]
Returns
AddLoadCases(IEnumerable<LoadCase>, bool)
public Model AddLoadCases(IEnumerable<LoadCase> loadCases, bool overwrite = true)
Parameters
loadCasesIEnumerable<LoadCase>overwritebool
Returns
AddLoadCombinations(params LoadCombination[])
public Model AddLoadCombinations(params LoadCombination[] loadCombinations)
Parameters
loadCombinationsLoadCombination[]
Returns
AddLoadCombinations(IEnumerable<LoadCombination>, bool)
public Model AddLoadCombinations(IEnumerable<LoadCombination> loadCombinations, bool overwrite = true)
Parameters
loadCombinationsIEnumerable<LoadCombination>overwritebool
Returns
AddLoadGroupTable(List<ModelGeneralLoadGroup>, bool)
Add LoadGroupTable to Model.
public void AddLoadGroupTable(List<ModelGeneralLoadGroup> generalLoadGroups, bool overwrite)
Parameters
generalLoadGroupsList<ModelGeneralLoadGroup>overwritebool
AddLoads<T>(IEnumerable<T>, bool)
Adds loads to the model.
public Model AddLoads<T>(IEnumerable<T> elements, bool overwrite = true) where T : ILoadElement
Parameters
elementsIEnumerable<T>Load elements to be added.
overwritebool
Returns
Type Parameters
TILoadElement 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
loadsT[]
Returns
Type Parameters
TILoadElement is any load object in FEM-Design.
AddPoint3d(Point3d)
public void AddPoint3d(Point3d obj)
Parameters
objPoint3d
AddSoilElement(SoilElements, bool)
Add Soil to the model.
public Model AddSoilElement(SoilElements element, bool overwrite = true)
Parameters
elementSoilElementsoverwritebool
Returns
AddSupports<T>(IEnumerable<T>, bool)
Add supports to the model.
public Model AddSupports<T>(IEnumerable<T> elements, bool overwrite = true) where T : ISupportElement
Parameters
elementsIEnumerable<T>Support elements to be added.
overwritebool
Returns
Type Parameters
TISuppotElement is any support object.
AddSupports<T>(params T[])
Add supports to the model.
public Model AddSupports<T>(params T[] supports) where T : ISupportElement
Parameters
supportsT[]
Returns
Type Parameters
TISuppotElement is any support object.
AddTextAnnotation(TextAnnotation, bool)
public void AddTextAnnotation(TextAnnotation obj, bool overwrite)
Parameters
objTextAnnotationoverwritebool
DeserializeFromFilePath(string)
Deserialize model from file (.struxml).
public static Model DeserializeFromFilePath(string filePath)
Parameters
filePathstring
Returns
SerializeModel(string)
Serialize Model to file (.struxml).
public void SerializeModel(string filePath)
Parameters
filePathstring
SerializeToString()
Serialize Model to string.
public string SerializeToString()
Returns
SetConstructionStages(List<Stage>, bool, bool)
public void SetConstructionStages(List<Stage> stages, bool assignModifedElement = false, bool assignNewElement = false)