コード例 #1
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
                base.IfcParse(propIndex, value);
                break;

            case 9:
                _predefinedType =
                    (IfcBuildingElementProxyTypeEnum)
                    Enum.Parse(typeof(IfcBuildingElementProxyTypeEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #2
0
 public IfcBuildingElementProxyType(DatabaseIfc m, string name, IfcBuildingElementProxyTypeEnum type) : base(m)
 {
     Name            = name;
     mPredefinedType = type;
     if (m.mRelease < ReleaseVersion.IFC4)
     {
         if (type != IfcBuildingElementProxyTypeEnum.USERDEFINED && type != IfcBuildingElementProxyTypeEnum.NOTDEFINED)
         {
             if (ElementType == "$")
             {
                 ElementType = type.ToString();
             }
             mPredefinedType = IfcBuildingElementProxyTypeEnum.USERDEFINED;
         }
     }
 }
コード例 #3
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 = (IfcBuildingElementProxyTypeEnum)System.Enum.Parse(typeof(IfcBuildingElementProxyTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #4
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _predefinedType =
                 (IfcBuildingElementProxyTypeEnum)
                 Enum.Parse(typeof (IfcBuildingElementProxyTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
コード例 #5
0
 internal IfcBuildingElementProxyType(DatabaseIfc db, IfcBuildingElementProxyType t, DuplicateOptions options) : base(db, t, options)
 {
     mPredefinedType = t.mPredefinedType;
 }
コード例 #6
0
 internal IfcBuildingElementProxy(DatabaseIfc db, IfcBuildingElementProxy p, DuplicateOptions options) : base(db, p, options)
 {
     mPredefinedType = p.mPredefinedType;
 }
コード例 #7
0
 public IfcBuildingElementProxyType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcBuildingElementProxyTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType = __PredefinedType;
 }
コード例 #8
0
ファイル: IFC B.cs プロジェクト: jmirtsch/GeometryGymIFC
 protected override void Parse(string str, ref int pos, int len)
 {
     base.Parse(str, ref pos, len);
     string s = ParserSTEP.StripField(str, ref pos, len);
     if (s.StartsWith("."))
     {
         try { mPredefinedType = (IfcBuildingElementProxyTypeEnum)Enum.Parse(typeof(IfcBuildingElementProxyTypeEnum),s.Replace(".", "")); } catch (Exception) { }
     }
 }
コード例 #9
0
ファイル: IFC B.cs プロジェクト: pietlambert/GeometryGymIFC
 internal IfcBuildingElementProxyType(DatabaseIfc db, IfcBuildingElementProxyType t, IfcOwnerHistory ownerHistory, bool downStream) : base(db, t, ownerHistory, downStream)
 {
     mPredefinedType = t.mPredefinedType;
 }
コード例 #10
0
 public IfcBuildingElementProxy(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcBuildingElementProxyTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag)
 {
     PredefinedType = predefinedType;
 }
コード例 #11
0
ファイル: IFC B.cs プロジェクト: jenca-cloud/ggIFC
		public IfcBuildingElementProxyType(DatabaseIfc m, string name, IfcBuildingElementProxyTypeEnum type) : base(m)
		{
			Name = name;
			mPredefinedType = type;
			if (m.mSchema == Schema.IFC2x3)
			{
				if (type != IfcBuildingElementProxyTypeEnum.USERDEFINED && type != IfcBuildingElementProxyTypeEnum.NOTDEFINED)
				{
					if (ElementType == "$")
						ElementType = type.ToString();
					mPredefinedType = IfcBuildingElementProxyTypeEnum.USERDEFINED;
				}
			}
		}
コード例 #12
0
ファイル: IFC B.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcBuildingElementProxyType(IfcBuildingElementProxyType t) : base(t) { mPredefinedType = t.mPredefinedType; }
コード例 #13
0
ファイル: IFC B.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcBuildingElementProxy(IfcBuildingElementProxy p) : base(p) { mPredefinedType = p.mPredefinedType; }
コード例 #14
0
ファイル: IFC B.cs プロジェクト: jmirtsch/GeometryGymIFC
 internal IfcBuildingElementProxyType(DatabaseIfc db, IfcBuildingElementProxyType t)
     : base(db,t)
 {
     mPredefinedType = t.mPredefinedType;
 }
コード例 #15
0
 /// <summary>
 /// Construct a IfcBuildingElementProxyType with all required attributes.
 /// </summary>
 public IfcBuildingElementProxyType(IfcGloballyUniqueId globalId, IfcBuildingElementProxyTypeEnum predefinedType) : base(globalId)
 {
     PredefinedType = predefinedType;
 }
コード例 #16
0
ファイル: IFC B.cs プロジェクト: GeometryGym/GeometryGymIFC
		public IfcBuildingElementProxyType(DatabaseIfc db, string name, IfcBuildingElementProxyTypeEnum type) 
			: base(db) { Name = name; PredefinedType = type; }
コード例 #17
0
 public IfcBuildingElementProxyType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcBuildingElementProxyTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType = predefinedType;
 }
コード例 #18
0
ファイル: IFC B.cs プロジェクト: jmirtsch/GeometryGymIFC
 internal IfcBuildingElementProxy(DatabaseIfc db, IfcBuildingElementProxy p)
     : base(db, p)
 {
     mPredefinedType = p.mPredefinedType;
 }