Esempio n. 1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 7:
                _relatingPriorities.InternalAdd(value.IntegerVal);
                return;

            case 8:
                _relatedPriorities.InternalAdd(value.IntegerVal);
                return;

            case 9:
                _relatedConnectionType = (IfcConnectionTypeEnum)System.Enum.Parse(typeof(IfcConnectionTypeEnum), value.EnumVal, true);
                return;

            case 10:
                _relatingConnectionType = (IfcConnectionTypeEnum)System.Enum.Parse(typeof(IfcConnectionTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
 public IfcRelConnectsPathElements(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcConnectionGeometry connectionGeometry, IfcElement relatingElement, IfcElement relatedElement, List <IfcInteger> relatingPriorities, List <IfcInteger> relatedPriorities, IfcConnectionTypeEnum relatedConnectionType, IfcConnectionTypeEnum relatingConnectionType) : base(globalId, ownerHistory, name, description, connectionGeometry, relatingElement, relatedElement)
 {
     RelatingPriorities     = relatingPriorities;
     RelatedPriorities      = relatedPriorities;
     RelatedConnectionType  = relatedConnectionType;
     RelatingConnectionType = relatingConnectionType;
 }
 /// <summary>
 /// Construct a IfcRelConnectsPathElements with all required attributes.
 /// </summary>
 public IfcRelConnectsPathElements(IfcGloballyUniqueId globalId, IfcElement relatingElement, IfcElement relatedElement, List <IfcInteger> relatingPriorities, List <IfcInteger> relatedPriorities, IfcConnectionTypeEnum relatedConnectionType, IfcConnectionTypeEnum relatingConnectionType) : base(globalId, relatingElement, relatedElement)
 {
     RelatingPriorities     = relatingPriorities;
     RelatedPriorities      = relatedPriorities;
     RelatedConnectionType  = relatedConnectionType;
     RelatingConnectionType = relatingConnectionType;
 }
Esempio n. 4
0
 public IfcRelConnectsPathElements(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcConnectionGeometry __ConnectionGeometry, IfcElement __RelatingElement, IfcElement __RelatedElement, IfcInteger[] __RelatingPriorities, IfcInteger[] __RelatedPriorities, IfcConnectionTypeEnum __RelatedConnectionType, IfcConnectionTypeEnum __RelatingConnectionType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ConnectionGeometry, __RelatingElement, __RelatedElement)
 {
     this._RelatingPriorities     = new List <IfcInteger>(__RelatingPriorities);
     this._RelatedPriorities      = new List <IfcInteger>(__RelatedPriorities);
     this._RelatedConnectionType  = __RelatedConnectionType;
     this._RelatingConnectionType = __RelatingConnectionType;
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
                base.IfcParse(propIndex, value);
                break;

            case 7:
                _relatingPriorities.Add(value.IntegerVal);
                break;

            case 8:
                _relatedPriorities.Add(value.IntegerVal);
                break;

            case 9:
                _relatedConnectionType =
                    (IfcConnectionTypeEnum)Enum.Parse(typeof(IfcConnectionTypeEnum), value.EnumVal, true);
                break;

            case 10:
                _relatingConnectionType =
                    (IfcConnectionTypeEnum)Enum.Parse(typeof(IfcConnectionTypeEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Esempio n. 6
0
		internal IfcRelConnectsPathElements(IfcRelConnectsPathElements i)
			: base(i)
		{
			mRelatingPriorities.AddRange(i.mRelatingPriorities);
			mRelatedPriorities.AddRange(i.mRelatedPriorities);
			mRelatedConnectionType = i.mRelatedConnectionType;
			mRelatingConnectionType = i.mRelatingConnectionType;
		}
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _relatingPriorities.Add(value.IntegerVal);
             break;
         case 8:
             _relatedPriorities.Add(value.IntegerVal);
             break;
         case 9:
             _relatedConnectionType =
                 (IfcConnectionTypeEnum) Enum.Parse(typeof (IfcConnectionTypeEnum), value.EnumVal, true);
             break;
         case 10:
             _relatingConnectionType =
                 (IfcConnectionTypeEnum) Enum.Parse(typeof (IfcConnectionTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }