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

            case 6:
                _relatingProcess = (IfcProcess)(value.EntityVal);
                return;

            case 7:
                _quantityInProcess = (IfcMeasureWithUnit)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        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:
                _relatingProcess = (IfcProcess)(value.EntityVal);
                return;

            case 5:
                _relatedProcess = (IfcProcess)(value.EntityVal);
                return;

            case 6:
                _timeLag = value.RealVal;
                return;

            case 7:
                _sequenceType = (IfcSequenceEnum)System.Enum.Parse(typeof(IfcSequenceEnum), 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 override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                base.IfcParse(propIndex, value);
                break;

            case 6:
                _relatingProcess = (IfcProcess)value.EntityVal;
                break;

            case 7:
                _quantityInProcess = (IfcMeasureWithUnit)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        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:
                _relatingProcess = (IfcProcess)value.EntityVal;
                break;

            case 5:
                _relatedProcess = (IfcProcess)value.EntityVal;
                break;

            case 6:
                _timeLag = value.RealVal;
                break;

            case 7:
                _sequenceType = (IfcSequenceEnum)Enum.Parse(typeof(IfcSequenceEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 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:
             _relatingProcess = (IfcProcess) value.EntityVal;
             break;
         case 5:
             _relatedProcess = (IfcProcess) value.EntityVal;
             break;
         case 6:
             _timeLag = value.RealVal;
             break;
         case 7:
             _sequenceType = (IfcSequenceEnum)Enum.Parse(typeof(IfcSequenceEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Beispiel #6
0
 /// <summary>
 /// Create the relationships between the Process and the types it relates too
 /// </summary>
 /// <param name="processObj">IfcProcess Object</param>
 /// <param name="typeObjs">IEnumerable of IfcTypeObject, list of IfcTypeObjects </param>
 public void SetRelAssignsToProcess(IfcProcess processObj, IEnumerable<IfcObjectDefinition> typeObjs)
 {
     //find any existing relationships to this type
     IfcRelAssignsToProcess processRel = Model.Instances.Where<IfcRelAssignsToProcess>(rd => rd.RelatingProcess == processObj).FirstOrDefault();
     if (processRel == null) //none defined create the relationship
     {
         processRel = Model.Instances.New<IfcRelAssignsToProcess>();
         processRel.RelatingProcess = processObj;
     }
     //add the type objects
     foreach (IfcObjectDefinition type in typeObjs)
     {
         if (!processRel.RelatedObjects.Contains(type))
         {
             processRel.RelatedObjects.Add(type);
         }
     }
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
             base.IfcParse(propIndex, value);
             break;
         case 6:
             _relatingProcess = (IfcProcess) value.EntityVal;
             break;
         case 7:
             _quantityInProcess = (IfcMeasureWithUnit) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }