public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: base.Parse(propIndex, value, nestedIndex); return; case 5: _name = value.StringVal; return; case 6: _description = value.StringVal; return; case 7: _impactType = (CobieImpactType)(value.EntityVal); return; case 8: _impactStage = (CobieImpactStage)(value.EntityVal); return; case 9: _value = value.RealVal; return; case 10: _impactUnit = (CobieImpactUnit)(value.EntityVal); return; case 11: _leadInTime = value.RealVal; return; case 12: _duration = value.RealVal; return; case 13: _leadOutTime = value.RealVal; return; case 14: _durationUnit = (CobieDurationUnit)(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: case 4: base.Parse(propIndex, value, nestedIndex); return; case 5: _taskNumber = value.StringVal; return; case 6: _name = value.StringVal; return; case 7: _description = value.StringVal; return; case 8: _jobType = (CobieJobType)(value.EntityVal); return; case 9: _jobStatusType = (CobieJobStatusType)(value.EntityVal); return; case 10: _duration = value.RealVal; return; case 11: _durationUnit = (CobieDurationUnit)(value.EntityVal); return; case 12: _start = value.RealVal; return; case 13: _startUnit = (CobieDurationUnit)(value.EntityVal); return; case 14: _frequency = value.RealVal; return; case 15: _frequencyUnit = (CobieDurationUnit)(value.EntityVal); return; case 16: _priors = (CobieJob)(value.EntityVal); return; case 17: _resources.InternalAdd((CobieResource)value.EntityVal); return; case 18: _type = (CobieType)(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: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: base.Parse(propIndex, value, nestedIndex); return; case 13: _assetType = (CobieAssetType)(value.EntityVal); return; case 14: _manufacturer = (CobieContact)(value.EntityVal); return; case 15: _modelNumber = value.StringVal; return; case 16: _warrantyDescription = value.StringVal; return; case 17: _warrantyGuarantorParts = (CobieContact)(value.EntityVal); return; case 18: _warrantyDurationParts = value.RealVal; return; case 19: _warrantyGuarantorLabor = (CobieContact)(value.EntityVal); return; case 20: _warrantyDurationLabor = value.RealVal; return; case 21: _warrantyDurationUnit = (CobieDurationUnit)(value.EntityVal); return; case 22: _replacementCost = value.RealVal; return; case 23: _expectedLife = value.RealVal; return; case 24: _durationUnit = (CobieDurationUnit)(value.EntityVal); return; case 25: _nominalLength = value.RealVal; return; case 26: _nominalWidth = value.RealVal; return; case 27: _nominalHeight = value.RealVal; return; case 28: _modelReference = value.StringVal; return; case 29: _shape = value.StringVal; return; case 30: _size = value.StringVal; return; case 31: _color = value.StringVal; return; case 32: _finish = value.StringVal; return; case 33: _grade = value.StringVal; return; case 34: _material = value.StringVal; return; case 35: _constituents = value.StringVal; return; case 36: _features = value.StringVal; return; case 37: _accessibilityPerformance = value.StringVal; return; case 38: _codePerformance = value.StringVal; return; case 39: _sustainabilityPerformance = value.StringVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }