public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: base.Parse(propIndex, value, nestedIndex); return; case 4: _relatingSpace = (IfcSpace)(value.EntityVal); return; case 5: _relatedBuildingElement = (IfcElement)(value.EntityVal); return; case 6: _connectionGeometry = (IfcConnectionGeometry)(value.EntityVal); return; case 7: _physicalOrVirtualBoundary = (IfcPhysicalOrVirtualEnum)System.Enum.Parse(typeof(IfcPhysicalOrVirtualEnum), value.EnumVal, true); return; case 8: _internalOrExternalBoundary = (IfcInternalOrExternalEnum)System.Enum.Parse(typeof(IfcInternalOrExternalEnum), value.EnumVal, true); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
/// <summary> /// Construct a IfcRelSpaceBoundary with all required attributes. /// </summary> public IfcRelSpaceBoundary(IfcGloballyUniqueId globalId, IfcSpaceBoundarySelect relatingSpace, IfcElement relatedBuildingElement, IfcPhysicalOrVirtualEnum physicalOrVirtualBoundary, IfcInternalOrExternalEnum internalOrExternalBoundary) : base(globalId) { RelatingSpace = relatingSpace; RelatedBuildingElement = relatedBuildingElement; PhysicalOrVirtualBoundary = physicalOrVirtualBoundary; InternalOrExternalBoundary = internalOrExternalBoundary; }
public IfcRelSpaceBoundary(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcSpaceBoundarySelect relatingSpace, IfcElement relatedBuildingElement, IfcConnectionGeometry connectionGeometry, IfcPhysicalOrVirtualEnum physicalOrVirtualBoundary, IfcInternalOrExternalEnum internalOrExternalBoundary) : base(globalId, ownerHistory, name, description) { RelatingSpace = relatingSpace; RelatedBuildingElement = relatedBuildingElement; ConnectionGeometry = connectionGeometry; PhysicalOrVirtualBoundary = physicalOrVirtualBoundary; InternalOrExternalBoundary = internalOrExternalBoundary; }
public IfcRelSpaceBoundary(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcSpaceBoundarySelect __RelatingSpace, IfcElement __RelatedBuildingElement, IfcConnectionGeometry __ConnectionGeometry, IfcPhysicalOrVirtualEnum __PhysicalOrVirtualBoundary, IfcInternalOrExternalEnum __InternalOrExternalBoundary) : base(__GlobalId, __OwnerHistory, __Name, __Description) { this._RelatingSpace = __RelatingSpace; this._RelatedBuildingElement = __RelatedBuildingElement; this._ConnectionGeometry = __ConnectionGeometry; this._PhysicalOrVirtualBoundary = __PhysicalOrVirtualBoundary; this._InternalOrExternalBoundary = __InternalOrExternalBoundary; }
public static void AddBoundingElement(this IfcSpace space, IModel model, IfcElement element, IfcPhysicalOrVirtualEnum physicalOrVirtualBoundary, IfcInternalOrExternalEnum internalOrExternalBoundary) { //avoid adding element which is already defined as bounding element if (space.HasBoundingElement(model, element)) { return; } IfcRelSpaceBoundary relation = model.Instances.New <IfcRelSpaceBoundary>(rel => { rel.RelatingSpace = space; rel.InternalOrExternalBoundary = internalOrExternalBoundary; rel.RelatedBuildingElement = element; rel.PhysicalOrVirtualBoundary = physicalOrVirtualBoundary; }); }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _relatingSpace = (IfcSpace)value.EntityVal; break; case 5: _relatedBuildingElement = (IfcElement)value.EntityVal; break; case 6: _connectionGeometry = (IfcConnectionGeometry)value.EntityVal; break; case 7: _physicalOrVirtualBoundary = (IfcPhysicalOrVirtualEnum)Enum.Parse(typeof(IfcPhysicalOrVirtualEnum), value.EnumVal, true); break; case 8: _internalOrExternalBoundary = (IfcInternalOrExternalEnum)Enum.Parse(typeof(IfcInternalOrExternalEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcRelSpaceBoundary2ndLevel(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcSpaceBoundarySelect relatingSpace, IfcElement relatedBuildingElement, IfcConnectionGeometry connectionGeometry, IfcPhysicalOrVirtualEnum physicalOrVirtualBoundary, IfcInternalOrExternalEnum internalOrExternalBoundary, IfcRelSpaceBoundary1stLevel parentBoundary, IfcRelSpaceBoundary2ndLevel correspondingBoundary) : base(globalId, ownerHistory, name, description, relatingSpace, relatedBuildingElement, connectionGeometry, physicalOrVirtualBoundary, internalOrExternalBoundary, parentBoundary) { Corresponds = new List <IfcRelSpaceBoundary2ndLevel>(); CorrespondingBoundary = correspondingBoundary; }
} // inverse /// <summary> /// Construct a IfcRelSpaceBoundary2ndLevel with all required attributes. /// </summary> public IfcRelSpaceBoundary2ndLevel(IfcGloballyUniqueId globalId, IfcSpaceBoundarySelect relatingSpace, IfcElement relatedBuildingElement, IfcPhysicalOrVirtualEnum physicalOrVirtualBoundary, IfcInternalOrExternalEnum internalOrExternalBoundary) : base(globalId, relatingSpace, relatedBuildingElement, physicalOrVirtualBoundary, internalOrExternalBoundary) { Corresponds = new List <IfcRelSpaceBoundary2ndLevel>(); }
public IfcRelSpaceBoundary2ndLevel(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcSpaceBoundarySelect __RelatingSpace, IfcElement __RelatedBuildingElement, IfcConnectionGeometry __ConnectionGeometry, IfcPhysicalOrVirtualEnum __PhysicalOrVirtualBoundary, IfcInternalOrExternalEnum __InternalOrExternalBoundary, IfcRelSpaceBoundary1stLevel __ParentBoundary, IfcRelSpaceBoundary2ndLevel __CorrespondingBoundary) : base(__GlobalId, __OwnerHistory, __Name, __Description, __RelatingSpace, __RelatedBuildingElement, __ConnectionGeometry, __PhysicalOrVirtualBoundary, __InternalOrExternalBoundary, __ParentBoundary) { this.CorrespondingBoundary = __CorrespondingBoundary; this.Corresponds = new HashSet <IfcRelSpaceBoundary2ndLevel>(); }
internal IfcRelSpaceBoundary2ndLevel(IfcSpaceBoundarySelect s, IfcElement e, IfcConnectionGeometry g, IfcPhysicalOrVirtualEnum virt, IfcInternalOrExternalEnum intern, IfcRelSpaceBoundary1stLevel parent, IfcRelSpaceBoundary2ndLevel corresponding) : base(s, e, g, virt, intern, parent) { if (corresponding != null) mCorrespondingBoundary = corresponding.mIndex; }
internal IfcRelSpaceBoundary1stLevel(IfcSpaceBoundarySelect s, IfcElement e, IfcConnectionGeometry g, IfcPhysicalOrVirtualEnum virt, IfcInternalOrExternalEnum intern, IfcRelSpaceBoundary1stLevel parent) : base(s, e, g, virt, intern) { mParentBoundary = parent.mIndex; }
internal IfcRelSpaceBoundary(IfcSpaceBoundarySelect s, IfcElement e, IfcConnectionGeometry g, IfcPhysicalOrVirtualEnum virt, IfcInternalOrExternalEnum intern) : base(s.Database) { mRelatingSpace = s.Index; s.BoundedBy.Add(this); mRelatedBuildingElement = e.mIndex; if (g != null) mConnectionGeometry = g.mIndex; mPhysicalOrVirtualBoundary = virt; mInternalOrExternalBoundary = intern; }
internal IfcRelSpaceBoundary(IfcRelSpaceBoundary p) : base(p) { mRelatingSpace = p.mRelatingSpace; mRelatedBuildingElement = p.mRelatedBuildingElement; mConnectionGeometry = p.mConnectionGeometry; mPhysicalOrVirtualBoundary = p.mPhysicalOrVirtualBoundary; mInternalOrExternalBoundary = p.mInternalOrExternalBoundary; }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _relatingSpace = (IfcSpace) value.EntityVal; break; case 5: _relatedBuildingElement = (IfcElement) value.EntityVal; break; case 6: _connectionGeometry = (IfcConnectionGeometry) value.EntityVal; break; case 7: _physicalOrVirtualBoundary = (IfcPhysicalOrVirtualEnum) Enum.Parse(typeof (IfcPhysicalOrVirtualEnum), value.EnumVal, true); break; case 8: _internalOrExternalBoundary = (IfcInternalOrExternalEnum) Enum.Parse(typeof (IfcInternalOrExternalEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public static void AddBoundingElement(this IfcSpace space, IModel model, IfcElement element, IfcPhysicalOrVirtualEnum physicalOrVirtualBoundary, IfcInternalOrExternalEnum internalOrExternalBoundary) { //avoid adding element which is already defined as bounding element if (space.HasBoundingElement(model, element)) return; IfcRelSpaceBoundary relation = model.Instances.New<IfcRelSpaceBoundary>(rel => { rel.RelatingSpace = space; rel.InternalOrExternalBoundary = internalOrExternalBoundary; rel.RelatedBuildingElement = element; rel.PhysicalOrVirtualBoundary = physicalOrVirtualBoundary; }); }