internal IfcQuantityCountTransient(MeasureResource.IfcMeasureWithUnit measure) { var value = measure.ValueComponent; _unit = measure.UnitComponent as Ifc4.Interfaces.IIfcNamedUnit; if (!(value is MeasureResource.IfcCountMeasure)) { return; } _countValue = new IfcCountMeasure((MeasureResource.IfcCountMeasure)value); }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: base.Parse(propIndex, value, nestedIndex); return; case 3: _countValue = value.NumberVal; 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: base.IfcParse(propIndex, value); break; case 3: _countValue = value.NumberVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcQuantityCount(IfcLabel __Name, IfcText?__Description, IfcNamedUnit __Unit, IfcCountMeasure __CountValue) : base(__Name, __Description, __Unit) { this._CountValue = __CountValue; }