Пример #1
0
 public IfcWindowType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcWindowTypeEnum predefinedType, IfcWindowTypePartitioningEnum partitioningType, IfcBoolean parameterTakesPrecedence, IfcLabel userDefinedPartitioningType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType              = predefinedType;
     PartitioningType            = partitioningType;
     ParameterTakesPrecedence    = parameterTakesPrecedence;
     UserDefinedPartitioningType = userDefinedPartitioningType;
 }
Пример #2
0
 public IfcWindow(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcPositiveLengthMeasure overallHeight, IfcPositiveLengthMeasure overallWidth, IfcWindowTypeEnum predefinedType, IfcWindowTypePartitioningEnum partitioningType, IfcLabel userDefinedPartitioningType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag)
 {
     OverallHeight               = overallHeight;
     OverallWidth                = overallWidth;
     PredefinedType              = predefinedType;
     PartitioningType            = partitioningType;
     UserDefinedPartitioningType = userDefinedPartitioningType;
 }
Пример #3
0
 public IfcWindowType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcWindowTypeEnum __PredefinedType, IfcWindowTypePartitioningEnum __PartitioningType, IfcBoolean?__ParameterTakesPrecedence, IfcLabel?__UserDefinedPartitioningType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType              = __PredefinedType;
     this._PartitioningType            = __PartitioningType;
     this._ParameterTakesPrecedence    = __ParameterTakesPrecedence;
     this._UserDefinedPartitioningType = __UserDefinedPartitioningType;
 }
Пример #4
0
 protected void Parse(string str, ref int pos, int len, ReleaseVersion schema)
 {
     base.Parse(str, ref pos, len);
     mOverallHeight = ParserSTEP.StripDouble(str, ref pos, len);
     mOverallWidth  = ParserSTEP.StripDouble(str, ref pos, len);
     if (schema != ReleaseVersion.IFC2x3)
     {
         string s = ParserSTEP.StripField(str, ref pos, len);
         if (s.StartsWith("."))
         {
             mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", ""));
         }
         s = ParserSTEP.StripField(str, ref pos, len);
         if (s.StartsWith("."))
         {
             mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", ""));
         }
         mUserDefinedPartitioningType = ParserSTEP.StripString(str, ref pos, len);
     }
 }
Пример #5
0
 internal IfcWindowType(DatabaseIfc m, string name, IfcWindowTypeEnum type, IfcWindowTypePartitioningEnum partition, string userDefinedPartionType, IfcWindowLiningProperties wlp, List <IfcWindowPanelProperties> pps)
     : base(m)
 {
     Name                      = name;
     mPredefinedType           = type;
     mPartitioningType         = partition;
     mParameterTakesPrecedence = true;
     if (wlp != null)
     {
         mHasPropertySets.Add(wlp.mIndex);
     }
     if (pps != null && pps.Count > 0)
     {
         mHasPropertySets.AddRange(pps.ConvertAll(x => x.mIndex));
     }
     if (!string.IsNullOrEmpty(userDefinedPartionType))
     {
         mUserDefinedPartitioningType = userDefinedPartionType.Replace("'", "");
     }
 }
Пример #6
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:
            case 7:
            case 8:
                base.Parse(propIndex, value, nestedIndex);
                return;

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

            case 10:
                _partitioningType = (IfcWindowTypePartitioningEnum)System.Enum.Parse(typeof(IfcWindowTypePartitioningEnum), value.EnumVal, true);
                return;

            case 11:
                _parameterTakesPrecedence = value.BooleanVal;
                return;

            case 12:
                _userDefinedPartitioningType = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #7
0
 internal IfcWindow(DatabaseIfc db, IfcWindow w, DuplicateOptions options) : base(db, w, options)
 {
     mOverallHeight = w.mOverallHeight; mOverallWidth = w.mOverallWidth; mPredefinedType = w.mPredefinedType; mPartitioningType = w.mPartitioningType; mUserDefinedPartitioningType = w.mUserDefinedPartitioningType;
 }
Пример #8
0
 internal IfcWindow(DatabaseIfc db, IfcWindow w, bool downStream) : base(db, w, downStream)
 {
     mOverallHeight = w.mOverallHeight; mOverallWidth = w.mOverallWidth; mPredefinedType = w.mPredefinedType; mPartitioningType = w.mPartitioningType; mUserDefinedPartitioningType = w.mUserDefinedPartitioningType;
 }
Пример #9
0
 internal IfcWindowType(DatabaseIfc m, string name, IfcWindowTypeEnum type, IfcWindowTypePartitioningEnum partition, string userDefinedPartionType, IfcWindowLiningProperties wlp, List<IfcWindowPanelProperties> pps)
     : base(m)
 {
     Name = name;
     mPredefinedType = type;
     mPartitioningType = partition;
     mParameterTakesPrecedence = true;
     if (wlp != null)
         mHasPropertySets.Add(wlp.mIndex);
     if (pps != null && pps.Count > 0)
         mHasPropertySets.AddRange(pps.ConvertAll(x => x.mIndex));
     if (!string.IsNullOrEmpty(userDefinedPartionType))
         mUserDefinedPartitioningType = userDefinedPartionType.Replace("'", "");
 }
Пример #10
0
 internal IfcWindowType(DatabaseIfc m, string name, IfcWindowTypeEnum type, IfcWindowTypePartitioningEnum partition, bool parameterTakesPrecendence)
     : base(m)
 {
     Name = name; mPredefinedType = type; mPartitioningType = partition; mParameterTakesPrecedence = parameterTakesPrecendence;
 }
Пример #11
0
 internal IfcWindowType(DatabaseIfc db, IfcWindowType t)
     : base(db,t)
 {
     mPredefinedType = t.mPredefinedType; mPartitioningType = t.mPartitioningType; mParameterTakesPrecedence = t.mParameterTakesPrecedence; mUserDefinedPartitioningType = t.mUserDefinedPartitioningType;
 }
Пример #12
0
        internal string mUserDefinedPartitioningType = "$"; // 	 :	OPTIONAL IfcLabel;

        #endregion Fields

        #region Constructors

        public IfcWindowType(DatabaseIfc m, string name, IfcWindowTypeEnum type)
            : base(m)
        {
            Name = name; mPredefinedType = type;
        }
Пример #13
0
 protected void Parse(string str, ref int pos, int len, ReleaseVersion schema)
 {
     base.Parse(str, ref pos, len);
     mOverallHeight = ParserSTEP.StripDouble(str, ref pos, len);
     mOverallWidth = ParserSTEP.StripDouble(str, ref pos, len);
     if (schema != ReleaseVersion.IFC2x3)
     {
         string s = ParserSTEP.StripField(str, ref pos, len);
         if (s.StartsWith("."))
             mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", ""));
         s = ParserSTEP.StripField(str, ref pos, len);
         if (s.StartsWith("."))
             mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", ""));
         mUserDefinedPartitioningType = ParserSTEP.StripString(str, ref pos, len);
     }
 }
Пример #14
0
 internal IfcWindowType(DatabaseIfc db, IfcWindowType t, IfcOwnerHistory ownerHistory, bool downStream) : base(db, t, ownerHistory, downStream)
 {
     mPredefinedType = t.mPredefinedType; mPartitioningType = t.mPartitioningType; mParameterTakesPrecedence = t.mParameterTakesPrecedence; mUserDefinedPartitioningType = t.mUserDefinedPartitioningType;
 }
Пример #15
0
 internal IfcWindowType(DatabaseIfc m, string name, IfcWindowTypeEnum type, IfcWindowTypePartitioningEnum partition, bool parameterTakesPrecendence)
     : base(m)
 {
     Name = name; mPredefinedType = type; mPartitioningType = partition; mParameterTakesPrecedence = parameterTakesPrecendence;
 }
Пример #16
0
 internal IfcWindowType(DatabaseIfc db, IfcWindowType t) : base(db, t)
 {
     mPredefinedType = t.mPredefinedType; mPartitioningType = t.mPartitioningType; mParameterTakesPrecedence = t.mParameterTakesPrecedence; mUserDefinedPartitioningType = t.mUserDefinedPartitioningType;
 }
Пример #17
0
 internal IfcWindow(IfcWindow o) : base(o)
 {
     mOverallHeight = o.mOverallHeight; mOverallWidth = o.mOverallWidth; mPredefinedType = o.mPredefinedType; mPartitioningType = o.mPartitioningType; mUserDefinedPartitioningType = o.mUserDefinedPartitioningType;
 }
Пример #18
0
 public IfcWindowType(DatabaseIfc db, string name, IfcWindowTypeEnum type) : base(db)
 {
     Name = name; PredefinedType = type;
 }
Пример #19
0
        }                                                             // optional


        /// <summary>
        /// Construct a IfcWindowType with all required attributes.
        /// </summary>
        public IfcWindowType(IfcGloballyUniqueId globalId, IfcWindowTypeEnum predefinedType, IfcWindowTypePartitioningEnum partitioningType) : base(globalId)
        {
            PredefinedType   = predefinedType;
            PartitioningType = partitioningType;
        }
Пример #20
0
 public IfcWindowType(DatabaseIfc m, string name, IfcWindowTypeEnum type) : base(m)
 {
     Name = name; mPredefinedType = type;
 }
Пример #21
0
 internal IfcWindowType(DatabaseIfc db, IfcWindowType t, DuplicateOptions options) : base(db, t, options)
 {
     mPredefinedType = t.mPredefinedType; mPartitioningType = t.mPartitioningType; mParameterTakesPrecedence = t.mParameterTakesPrecedence; mUserDefinedPartitioningType = t.mUserDefinedPartitioningType;
 }
Пример #22
0
 internal IfcWindow(DatabaseIfc db, IfcWindow w)
     : base(db, w)
 {
     mOverallHeight = w.mOverallHeight; mOverallWidth = w.mOverallWidth; mPredefinedType = w.mPredefinedType; mPartitioningType = w.mPartitioningType; mUserDefinedPartitioningType = w.mUserDefinedPartitioningType;
 }
Пример #23
0
		internal IfcWindow(IfcWindow o) : base(o) { mOverallHeight = o.mOverallHeight; mOverallWidth = o.mOverallWidth; mPredefinedType = o.mPredefinedType; mPartitioningType = o.mPartitioningType; mUserDefinedPartitioningType = o.mUserDefinedPartitioningType; }