StructuralGeneralCrossSection Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.Libraries
public sealed class StructuralGeneralCrossSection : StructuralCrossSection, IEquatable<StructuralGeneralCrossSection>, IStructuralCrossSectionWithProfile, IStructuralCrossSectionWithDefinition
The StructuralGeneralCrossSection type exposes the following members.
Name | Description | |
---|---|---|
![]() | StructuralGeneralCrossSection |
Creates a cross section which is general
|
Name | Description | |
---|---|---|
![]() | CrossSectionalProperties |
Additional properties which define the cross section
(Inherited from StructuralCrossSection.) |
![]() | CrossSectionType |
Defines the type of cross section
(Inherited from StructuralCrossSection.) |
![]() | Definition |
Defines the polygons for the profile shape of a cross section
|
![]() | Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) |
![]() | Material |
The material out of which the Cross Section exists.
(Inherited from StructuralCrossSection.) |
![]() | Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) |
![]() | Profile | |
![]() | StructuralName |
The name of the cross section in a Structural Model to which this cross section is mapped.
(Inherited from StructuralCrossSection.) |
Name | Description | |
---|---|---|
![]() | Equals(Object) |
Check if this object is the same as the provided object.
(Overrides StructuralCrossSectionEquals(Object).) |
![]() | Equals(StructuralAnalysisObjectBase) |
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.) |
![]() | Equals(StructuralCrossSection) | Indicates whether the current object is equal to another object of the same type. (Inherited from StructuralCrossSection.) |
![]() | Equals(StructuralGeneralCrossSection) | Indicates whether the current object is equal to another object of the same type. |
![]() | GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralCrossSectionGetHashCode.) |
Name | Description | |
---|---|---|
![]() | PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
/// <summary> /// Create general cross sections, specifying the shape of the cross section by using polygons /// </summary> /// <param name="materials">The available materials from the model</param> /// <returns>A collection of general cross sections</returns> private IReadOnlyCollection<StructuralCrossSection> CreateGeneralCrossSections( IReadOnlyDictionary<string, StructuralMaterial> materials) { StructuralMaterial mat2 = materials["MAT2"]; return new StructuralCrossSection[] { new StructuralGeneralCrossSection(Guid.NewGuid(), "CS29", mat2, new CompositeProfileDefinition("general1", new PolygonDefinition[] { new PolygonDefinition(mat2, new [] { new Point2D(Length.FromCentimeters(20), Length.FromCentimeters(20)), new Point2D(Length.Zero, Length.FromCentimeters(20)), new Point2D(Length.Zero, Length.Zero), new Point2D(Length.FromCentimeters(20), Length.Zero) }) })) }; }