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: _issueType = (CobieIssueType)(value.EntityVal); return; case 8: _risk = (CobieIssueRisk)(value.EntityVal); return; case 9: _chance = (CobieIssueChance)(value.EntityVal); return; case 10: _impact = (CobieIssueImpact)(value.EntityVal); return; case 11: _owner = (CobieContact)(value.EntityVal); return; case 12: _mitigation = value.StringVal; return; case 13: _causing = (CobieAsset)(value.EntityVal); return; case 14: _affected = (CobieAsset)(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: _createdBy = (CobieContact)(value.EntityVal); return; case 1: _createdOn = value.StringVal; 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())); } }
/// <summary> /// Instantiates a new IIfcToCOBieLiteUkExchanger class. /// </summary> public IfcToCoBieExpressExchanger(IfcStore source, IModel target, ReportProgressDelegate reportProgress = null, OutPutFilters filter = null, string configFile = null, EntityIdentifierMode extId = EntityIdentifierMode.IfcEntityLabels, SystemExtractionMode sysMode = SystemExtractionMode.System | SystemExtractionMode.Types, bool classify = false, CobieContact creatorContact = null, bool createPlaceholderSpaces = true) : base(source, target) { ReportProgress.Progress = reportProgress; //set reporter Helper = new COBieExpressHelper(this, ReportProgress, filter, configFile, extId, sysMode, creatorContact, createPlaceholderSpaces); Helper.Init(); _classify = classify; }