public static SemBeamType Create(string name, string pieceMark, IfcBeamTypeEnum ifcBeamTypeEnum) { var beamType = new SemBeamType(name, pieceMark, ifcBeamTypeEnum); SemInstanceDB.AddToExport(beamType); return(beamType); }
//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; }
public IfcBeamType(string name, IfcMaterialProfileSet ps, IfcBeamTypeEnum type) : base(ps.mDatabase) { Name = name; PredefinedType = type; if(ps.mTaperEnd != null) mTapering = ps; else MaterialSelect = ps; }
//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; }
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; } }
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())); } }
internal IfcBeamType(DatabaseIfc db, IfcBeamType t, IfcOwnerHistory ownerHistory, bool downStream) : base(db, t, ownerHistory, downStream) { mPredefinedType = t.mPredefinedType; }
public IfcBeamType(string name, IfcMaterialProfileSet ps, IfcBeamTypeEnum type) : base(ps.mDatabase) { Name = name; mPredefinedType = type; if(ps.mTaperEnd != null) mTapering = ps; else MaterialSelect = ps; }
public IfcBeamType(string name, IfcMaterialProfile mp, IfcBeamTypeEnum type) : this(name, new IfcMaterialProfileSet(name, mp), type) { }
public IfcBeamType(DatabaseIfc m, string name, IfcBeamTypeEnum type) : base(m) { Name = name; mPredefinedType = type; }
internal IfcBeamType(IfcBeamType b) : base(b) { mPredefinedType = b.mPredefinedType; }
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)); } }
internal IfcBeam(DatabaseIfc db, IfcBeam b) : base(db, b) { mPredefinedType = b.mPredefinedType; }
internal IfcBeamType(DatabaseIfc db, IfcBeamType t) : base(db,t) { mPredefinedType = t.mPredefinedType; }
/// <summary> /// Construct a IfcBeamType with all required attributes. /// </summary> public IfcBeamType(IfcGloballyUniqueId globalId, IfcBeamTypeEnum predefinedType) : base(globalId) { PredefinedType = predefinedType; }
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; }
public IfcBeamType(string name, IfcMaterialProfileSet ps, IfcBeamTypeEnum type) : base(ps.mDatabase) { Name = name; mPredefinedType = type; MaterialSelect = ps; }
public IfcBeamType(DatabaseIfc db, string name, IfcBeamTypeEnum type) : base(db) { Name = name; mPredefinedType = type; }
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; }
public static SemBeamType Create(string name, string pieceMark, IfcBeamTypeEnum ifcBeamTypeEnum) { var beamType = new SemBeamType(name, pieceMark, ifcBeamTypeEnum); SemInstanceDB.AddToExport(beamType); return beamType; }
internal IfcBeam(DatabaseIfc db, IfcBeam b, IfcOwnerHistory ownerHistory, bool downStream) : base(db, b, ownerHistory, downStream) { mPredefinedType = b.mPredefinedType; }