public IfcBridgeSegment(IfcProduct host, IfcObjectPlacement p, IfcProductRepresentation r, IfcBridgeSegmentType type, List <IfcCivilElementPart> parts) : base(host, p, r) { if (mDatabase.mRelease == ReleaseVersion.IFC2x3 || mDatabase.mRelease == ReleaseVersion.IFC4 || mDatabase.mRelease == ReleaseVersion.IFC4A1) { throw new Exception(KeyWord + " only supported in IFC5!"); } mSegmentType = type; mSegmentParts = parts.ConvertAll(x => x.mIndex); }
internal IfcBridgeSegmentType mSegmentType = IfcBridgeSegmentType.CANTILEVER; //: IfcBridgeSegmentType; #endregion Fields #region Constructors public IfcBridgeSegment(IfcProduct host, IfcObjectPlacement p, IfcProductRepresentation r, IfcBridgeSegmentType type, List<IfcCivilElementPart> parts) : base(host, p, r) { if (mDatabase.mRelease == ReleaseVersion.IFC2x3 || mDatabase.mRelease == ReleaseVersion.IFC4 || mDatabase.mRelease == ReleaseVersion.IFC4A1) throw new Exception(KeyWord + " only supported in IFC5!"); mSegmentType = type; mSegmentParts = parts.ConvertAll(x => x.mIndex); }