internal IfcQuantityVolumeTransient(MeasureResource.IfcMeasureWithUnit measure) { var value = measure.ValueComponent; _unit = measure.UnitComponent as Ifc4.Interfaces.IIfcNamedUnit; if (!(value is MeasureResource.IfcVolumeMeasure)) { return; } _volumeValue = new IfcVolumeMeasure((MeasureResource.IfcVolumeMeasure)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: _volumeValue = value.RealVal; 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: _volumeValue = value.RealVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcQuantityVolume(IfcLabel __Name, IfcText?__Description, IfcNamedUnit __Unit, IfcVolumeMeasure __VolumeValue, IfcLabel?__Formula) : base(__Name, __Description, __Unit) { this._VolumeValue = __VolumeValue; this._Formula = __Formula; }