public SystemType(IfcSystem ifcSystem, CoBieLiteHelper helper) : this() { externalEntityName = helper.ExternalEntityName(ifcSystem); externalID = helper.ExternalEntityIdentity(ifcSystem); externalSystemName = helper.ExternalSystemName(ifcSystem); SystemName = ifcSystem.Name; SystemDescription = ifcSystem.Description; SystemCategory = helper.GetClassification(ifcSystem); //Attributes var ifcAttributes = helper.GetAttributes(ifcSystem); if (ifcAttributes != null && ifcAttributes.Any()) SystemAttributes = new AttributeCollectionType { Attribute = ifcAttributes }; //TODO: //System Issues //System Documents }
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: _relatingSystem = (IfcSystem)(value.EntityVal); return; case 5: _relatedBuildings.InternalAdd((IfcSpatialStructureElement)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 IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _relatingSystem = (IfcSystem)value.EntityVal; break; case 5: _relatedBuildings.Add((IfcSpatialStructureElement)value.EntityVal); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public SystemKeyType(IfcSystem ifcSystem, CoBieLiteHelper helper) { SystemCategory = helper.GetClassification(ifcSystem); SystemName = ifcSystem.Name; externalIDReference = helper.ExternalEntityIdentity(ifcSystem); }
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: _relatingSystem = (IfcSystem) value.EntityVal; break; case 5: _relatedBuildings.Add((IfcSpatialStructureElement) value.EntityVal); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }