Beispiel #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                return;

            case 1:
                _description = value.StringVal;
                return;

            case 2:
                _material = (IfcMaterial)(value.EntityVal);
                return;

            case 3:
                _profile = (IfcProfileDef)(value.EntityVal);
                return;

            case 4:
                _priority = value.IntegerVal;
                return;

            case 5:
                _category = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Beispiel #2
0
 public IfcMaterialProfile(IfcLabel?__Name, IfcText?__Description, IfcMaterial __Material, IfcProfileDef __Profile, IfcInteger?__Priority, IfcLabel?__Category)
 {
     this._Name        = __Name;
     this._Description = __Description;
     this._Material    = __Material;
     this._Profile     = __Profile;
     this._Priority    = __Priority;
     this._Category    = __Category;
 }
Beispiel #3
0
 public IfcStairFlight(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcIdentifier?__Tag, IfcInteger?__NumberOfRisers, IfcInteger?__NumberOfTreads, IfcPositiveLengthMeasure?__RiserHeight, IfcPositiveLengthMeasure?__TreadLength, IfcStairFlightTypeEnum?__PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __Tag)
 {
     this._NumberOfRisers = __NumberOfRisers;
     this._NumberOfTreads = __NumberOfTreads;
     this._RiserHeight    = __RiserHeight;
     this._TreadLength    = __TreadLength;
     this._PredefinedType = __PredefinedType;
 }
Beispiel #4
0
 public IfcTask(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier?__Identification, IfcText?__LongDescription, IfcLabel?__Status, IfcLabel?__WorkMethod, IfcBoolean __IsMilestone, IfcInteger?__Priority, IfcTaskTime __TaskTime, IfcTaskTypeEnum?__PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __Identification, __LongDescription)
 {
     this._Status         = __Status;
     this._WorkMethod     = __WorkMethod;
     this._IsMilestone    = __IsMilestone;
     this._Priority       = __Priority;
     this._TaskTime       = __TaskTime;
     this._PredefinedType = __PredefinedType;
 }
Beispiel #5
0
 public IfcMaterialLayer(IfcMaterial __Material, IfcNonNegativeLengthMeasure __LayerThickness, IfcLogical?__IsVentilated, IfcLabel?__Name, IfcText?__Description, IfcLabel?__Category, IfcInteger?__Priority)
 {
     this._Material       = __Material;
     this._LayerThickness = __LayerThickness;
     this._IsVentilated   = __IsVentilated;
     this._Name           = __Name;
     this._Description    = __Description;
     this._Category       = __Category;
     this._Priority       = __Priority;
 }
Beispiel #6
0
 public IfcRecurrencePattern(IfcRecurrenceTypeEnum __RecurrenceType, IfcDayInMonthNumber[] __DayComponent, IfcDayInWeekNumber[] __WeekdayComponent, IfcMonthInYearNumber[] __MonthComponent, IfcInteger?__Position, IfcInteger?__Interval, IfcInteger?__Occurrences, IfcTimePeriod[] __TimePeriods)
 {
     this._RecurrenceType   = __RecurrenceType;
     this._DayComponent     = new HashSet <IfcDayInMonthNumber>(__DayComponent);
     this._WeekdayComponent = new HashSet <IfcDayInWeekNumber>(__WeekdayComponent);
     this._MonthComponent   = new HashSet <IfcMonthInYearNumber>(__MonthComponent);
     this._Position         = __Position;
     this._Interval         = __Interval;
     this._Occurrences      = __Occurrences;
     this._TimePeriods      = new List <IfcTimePeriod>(__TimePeriods);
 }
Beispiel #7
0
        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:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 7:
                _status = value.StringVal;
                return;

            case 8:
                _workMethod = value.StringVal;
                return;

            case 9:
                _isMilestone = value.BooleanVal;
                return;

            case 10:
                _priority = value.IntegerVal;
                return;

            case 11:
                _taskTime = (IfcTaskTime)(value.EntityVal);
                return;

            case 12:
                _predefinedType = (IfcTaskTypeEnum)System.Enum.Parse(typeof(IfcTaskTypeEnum), value.EnumVal, true);
                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:
                _recurrenceType = (IfcRecurrenceTypeEnum)System.Enum.Parse(typeof(IfcRecurrenceTypeEnum), value.EnumVal, true);
                return;

            case 1:
                _dayComponent.InternalAdd(value.IntegerVal);
                return;

            case 2:
                _weekdayComponent.InternalAdd(value.IntegerVal);
                return;

            case 3:
                _monthComponent.InternalAdd(value.IntegerVal);
                return;

            case 4:
                _position = value.IntegerVal;
                return;

            case 5:
                _interval = value.IntegerVal;
                return;

            case 6:
                _occurrences = value.IntegerVal;
                return;

            case 7:
                _timePeriods.InternalAdd((IfcTimePeriod)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:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 8:
                _numberOfRisers = value.IntegerVal;
                return;

            case 9:
                _numberOfTreads = value.IntegerVal;
                return;

            case 10:
                _riserHeight = value.RealVal;
                return;

            case 11:
                _treadLength = value.RealVal;
                return;

            case 12:
                _predefinedType = (IfcStairFlightTypeEnum)System.Enum.Parse(typeof(IfcStairFlightTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Beispiel #10
0
 public IfcMaterialProfileWithOffsets(IfcLabel?__Name, IfcText?__Description, IfcMaterial __Material, IfcProfileDef __Profile, IfcInteger?__Priority, IfcLabel?__Category, IfcLengthMeasure[] __OffsetValues)
     : base(__Name, __Description, __Material, __Profile, __Priority, __Category)
 {
     this.OffsetValues = __OffsetValues;
 }
Beispiel #11
0
 public IfcMaterialLayerWithOffsets(IfcMaterial __Material, IfcNonNegativeLengthMeasure __LayerThickness, IfcLogical?__IsVentilated, IfcLabel?__Name, IfcText?__Description, IfcLabel?__Category, IfcInteger?__Priority, IfcLayerSetDirectionEnum __OffsetDirection, IfcLengthMeasure[] __OffsetValues)
     : base(__Material, __LayerThickness, __IsVentilated, __Name, __Description, __Category, __Priority)
 {
     this.OffsetDirection = __OffsetDirection;
     this.OffsetValues    = __OffsetValues;
 }