Click or drag to resize

StructuralCurveEdge Class

[This is preliminary documentation and is subject to change.]

Inheritance Hierarchy
SystemObject
  ModelExchanger.AnalysisDataModel.BaseStructuralAnalysisObjectBase
    ModelExchanger.AnalysisDataModel.StructuralElementsStructuralCurveEdge

Namespace:  ModelExchanger.AnalysisDataModel.StructuralElements
Assembly:  ModelExchanger.AnalysisDataModel (in ModelExchanger.AnalysisDataModel.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class StructuralCurveEdge : StructuralAnalysisObjectBase, 
	IStructuralElementAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IEquatable<StructuralCurveEdge>, 
	IHasParentId

The StructuralCurveEdge type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyId
The ID of the Analysis object. Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.)
Public propertyMember2D
The StructuralSurfaceMember in which the internal edge is defined
Public propertyName
The name of the Analysis object. Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.)
Public propertyParentId
The ID of the parent object of the same type
Public propertySegments
Top
Methods
  NameDescription
Public methodEquals(Object)
Check if this object is the same as the provided object.
(Overrides StructuralAnalysisObjectBaseEquals(Object).)
Public methodEquals(StructuralAnalysisObjectBase)
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.)
Public methodEquals(StructuralCurveEdge)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.)
Top
Events
  NameDescription
Public eventPropertyChanged (Inherited from StructuralAnalysisObjectBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodToObjectIdentifier
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier
(Defined by IAnalysisObjectExtensions.)
Top
Examples
Creating an instance
using System;
using System.Collections.Generic;
using System.Linq;
using ModelExchanger.AnalysisDataModel.Enums;
using ModelExchanger.AnalysisDataModel.Models;
using ModelExchanger.AnalysisDataModel.StructuralElements;
using ModelExchanger.AnalysisDataModel.Subtypes;

namespace ModelExchanger.AnalysisDataModel.Example.StructuralElements
{
    public sealed class StructuralCurveEdgeExample : BaseExample<StructuralCurveEdge>
    {
        protected override IReadOnlyCollection<StructuralCurveEdge> CreateAnalysisObjects(AnalysisModel model)
        {
            IReadOnlyDictionary<string, StructuralPointConnection> nodes = model.OfType<StructuralPointConnection>().ToDictionary(x => x.Name, x => x);
            IReadOnlyDictionary<string, StructuralSurfaceMember> surfaces = model.OfType<StructuralSurfaceMember>().ToDictionary(x => x.Name, x => x);

            return new[]
            {
                new StructuralCurveEdge(Guid.NewGuid(), "ES1", surfaces["S8"], new []
                {
                    new Curve<StructuralPointConnection>(CurveGeometricalShape.Line, new []{ nodes["N87"], nodes["N88"]}),
                }),
                new StructuralCurveEdge(Guid.NewGuid(), "ES2", surfaces["S8"], new []
                {
                    new Curve<StructuralPointConnection>(CurveGeometricalShape.Line, new []{ nodes["N89"], nodes["N90"]}),
                }),
                new StructuralCurveEdge(Guid.NewGuid(), "ES3", surfaces["S8"], new []
                {
                    new Curve<StructuralPointConnection>(CurveGeometricalShape.Arc3P, new []{ nodes["N87"], nodes["N90"], nodes["N94"]}),
                }),
            };
        }
    }
}
See Also