예제 #1
0
        public static SemBeamType Create(string name, string pieceMark, IfcBeamTypeEnum ifcBeamTypeEnum)
        {
            var beamType = new SemBeamType(name, pieceMark, ifcBeamTypeEnum);

            SemInstanceDB.AddToExport(beamType);
            return(beamType);
        }
예제 #2
0
 //public IfcBeamType ifcBeamType { get; private set; }
 protected SemBeamType(string name, string pieceMark, IfcBeamTypeEnum ifcBeamTypeEnum)
     : base(name, pieceMark, typeof (IfcBeam))
 {
     var ifcBeamType = IfcTypeProduct as IfcBeamType;
     if (ifcBeamType == null) return;
     ifcBeamType.PredefinedType = ifcBeamTypeEnum;
 }
예제 #3
0
		public IfcBeamType(string name, IfcMaterialProfileSet ps, IfcBeamTypeEnum type) : base(ps.mDatabase)
		{
			Name = name;
			PredefinedType = type;
			if(ps.mTaperEnd != null)
				mTapering = ps;
			else
				MaterialSelect = ps;
		}
예제 #4
0
        //public IfcBeamType ifcBeamType { get; private set; }
        protected SemBeamType(string name, string pieceMark, IfcBeamTypeEnum ifcBeamTypeEnum)
            : base(name, pieceMark, typeof(IfcBeam))
        {
            var ifcBeamType = IfcTypeProduct as IfcBeamType;

            if (ifcBeamType == null)
            {
                return;
            }
            ifcBeamType.PredefinedType = ifcBeamTypeEnum;
        }
예제 #5
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 = (IfcBeamTypeEnum)Enum.Parse(typeof(IfcBeamTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
예제 #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 = (IfcBeamTypeEnum)System.Enum.Parse(typeof(IfcBeamTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
예제 #7
0
 internal IfcBeamType(DatabaseIfc db, IfcBeamType t, IfcOwnerHistory ownerHistory, bool downStream) : base(db, t, ownerHistory, downStream)
 {
     mPredefinedType = t.mPredefinedType;
 }
예제 #8
0
 public IfcBeamType(string name, IfcMaterialProfileSet ps, IfcBeamTypeEnum type)
     : base(ps.mDatabase)
 {
     Name = name;
     mPredefinedType = type;
     if(ps.mTaperEnd != null)
         mTapering = ps;
     else
         MaterialSelect = ps;
 }
예제 #9
0
파일: IFC B.cs 프로젝트: jenca-cloud/ggIFC
		public IfcBeamType(string name, IfcMaterialProfile mp, IfcBeamTypeEnum type) : this(name, new IfcMaterialProfileSet(name, mp), type) { }
예제 #10
0
파일: IFC B.cs 프로젝트: jenca-cloud/ggIFC
		public IfcBeamType(DatabaseIfc m, string name, IfcBeamTypeEnum type) : base(m) { Name = name; mPredefinedType = type; }
예제 #11
0
파일: IFC B.cs 프로젝트: jenca-cloud/ggIFC
		internal IfcBeamType(IfcBeamType b) : base(b) { mPredefinedType = b.mPredefinedType; }
예제 #12
0
 protected void Parse(string str, ref int pos, int len, ReleaseVersion schema)
 {
     base.Parse(str, ref pos, len);
     if (schema != ReleaseVersion.IFC2x3)
     {
         string s = ParserSTEP.StripField(str, ref pos, len);
         if (s[0] == '.')
             mPredefinedType = (IfcBeamTypeEnum)Enum.Parse(typeof(IfcBeamTypeEnum), s.Substring(1, s.Length - 2));
     }
 }
예제 #13
0
 internal IfcBeam(DatabaseIfc db, IfcBeam b)
     : base(db, b)
 {
     mPredefinedType = b.mPredefinedType;
 }
예제 #14
0
 internal IfcBeamType(DatabaseIfc db, IfcBeamType t)
     : base(db,t)
 {
     mPredefinedType = t.mPredefinedType;
 }
예제 #15
0
 /// <summary>
 /// Construct a IfcBeamType with all required attributes.
 /// </summary>
 public IfcBeamType(IfcGloballyUniqueId globalId, IfcBeamTypeEnum predefinedType) : base(globalId)
 {
     PredefinedType = predefinedType;
 }
예제 #16
0
 public IfcBeamType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcBeamTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType = predefinedType;
 }
예제 #17
0
파일: IFC B.cs 프로젝트: jenca-cloud/ggIFC
		public IfcBeamType(string name, IfcMaterialProfileSet ps, IfcBeamTypeEnum type) : base(ps.mDatabase) { Name = name; mPredefinedType = type; MaterialSelect = ps; }
예제 #18
0
 public IfcBeamType(DatabaseIfc db, string name, IfcBeamTypeEnum type) : base(db)
 {
     Name = name; mPredefinedType = type;
 }
예제 #19
0
 public IfcBeamType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcBeamTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this.PredefinedType = __PredefinedType;
 }
예제 #20
0
 public static SemBeamType Create(string name, string pieceMark, IfcBeamTypeEnum ifcBeamTypeEnum)
 {
     var beamType = new SemBeamType(name, pieceMark, ifcBeamTypeEnum);
     SemInstanceDB.AddToExport(beamType);
     return beamType;
 }
예제 #21
0
 internal IfcBeam(DatabaseIfc db, IfcBeam b, IfcOwnerHistory ownerHistory, bool downStream) : base(db, b, ownerHistory, downStream)
 {
     mPredefinedType = b.mPredefinedType;
 }