private static string Structural1DElementTypeToString(Structural1DElementType t) { switch (t) { case Structural1DElementType.Beam: return "BEAM"; case Structural1DElementType.Column: return "COLUMN"; case Structural1DElementType.Cantilever: return "CANTILEVER"; default: return "1D_GENERIC"; } }
public Structural1DElementPolyline(double[] value, Structural1DElementType elementType, string propertyRef, StructuralVectorThree[] zAxis, StructuralVectorBoolSix[] endRelease, StructuralVectorThree[] offset, string applicationId = null, Dictionary <string, object> properties = null) { if (properties != null) { Properties = properties; } Value = value.ToList(); ElementType = elementType; PropertyRef = propertyRef; ZAxis = zAxis == null ? null : zAxis.ToList(); EndRelease = endRelease == null ? null : endRelease.ToList(); Offset = offset == null ? null : offset.ToList(); ApplicationId = applicationId; GenerateHash(); }