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 = (IfcSpaceBoundarySelect)(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()));
            }
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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>();
 }
Exemplo n.º 4
0
		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; }
Exemplo n.º 5
0
		internal IfcRelSpaceBoundary1stLevel(IfcSpaceBoundarySelect s, IfcElement e, IfcConnectionGeometry g, IfcPhysicalOrVirtualEnum virt, IfcInternalOrExternalEnum intern, IfcRelSpaceBoundary1stLevel parent)
			: base(s, e, g, virt, intern) { mParentBoundary = parent.mIndex; }
Exemplo n.º 6
0
		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;
		}