Beispiel #1
0
        public IfcStructuralActivity(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation)
        {
            AssignedToStructuralItem = new List <IfcRelConnectsStructuralActivity>();

            AppliedLoad   = appliedLoad;
            GlobalOrLocal = globalOrLocal;
        }
Beispiel #2
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:
                base.IfcParse(propIndex, value);
                break;

            case 7:
                _appliedLoad = (IfcStructuralLoad)value.EntityVal;
                break;

            case 8:
                _globalOrLocal =
                    (IfcGlobalOrLocalEnum)Enum.Parse(typeof(IfcGlobalOrLocalEnum), 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:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 7:
                _appliedLoad = (IfcStructuralLoad)(value.EntityVal);
                return;

            case 8:
                _globalOrLocal = (IfcGlobalOrLocalEnum)System.Enum.Parse(typeof(IfcGlobalOrLocalEnum), 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 #4
0
        }                                                                                        // inverse


        /// <summary>
        /// Construct a IfcStructuralActivity with all required attributes.
        /// </summary>
        public IfcStructuralActivity(IfcGloballyUniqueId globalId, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal) : base(globalId)
        {
            AssignedToStructuralItem = new List <IfcRelConnectsStructuralActivity>();

            AppliedLoad   = appliedLoad;
            GlobalOrLocal = globalOrLocal;
        }
Beispiel #5
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
                base.IfcParse(propIndex, value);
                break;

            case 3:
                _fillStyleTarget = (IfcPoint)value.EntityVal;
                break;

            case 4:
                _globalOrLocal = (IfcGlobalOrLocalEnum)Enum.Parse(typeof(IfcGlobalOrLocalEnum), value.EnumVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _appliedLoad = (IfcStructuralLoad) value.EntityVal;
             break;
         case 8:
             _globalOrLocal =
                 (IfcGlobalOrLocalEnum) Enum.Parse(typeof (IfcGlobalOrLocalEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Beispiel #7
0
 public IfcStructuralPlanarAction(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal, IfcBoolean destabilizingLoad, IfcProjectedOrTrueLengthEnum projectedOrTrue, IfcStructuralSurfaceActivityTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, appliedLoad, globalOrLocal, destabilizingLoad, projectedOrTrue, predefinedType)
 {
 }
Beispiel #8
0
 /// <summary>
 /// Construct a IfcStructuralPlanarAction with all required attributes.
 /// </summary>
 public IfcStructuralPlanarAction(IfcGloballyUniqueId globalId, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal, IfcStructuralSurfaceActivityTypeEnum predefinedType) : base(globalId, appliedLoad, globalOrLocal, predefinedType)
 {
 }
Beispiel #9
0
 protected IfcStructuralActivity(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation)
 {
     this.AppliedLoad              = __AppliedLoad;
     this.GlobalOrLocal            = __GlobalOrLocal;
     this.AssignedToStructuralItem = new HashSet <IfcRelConnectsStructuralActivity>();
 }
Beispiel #10
0
		protected IfcStructuralActivity(DatabaseIfc db, IfcStructuralActivityAssignmentSelect item, IfcStructuralLoad load, bool global, IfcRelAssignsToGroup loadcase)
			: base(db)
		{
			mAssignedToStructuralItem = new IfcRelConnectsStructuralActivity(item, this);
			mAppliedLoad = load.mIndex;
			mGlobalOrLocal = global ? IfcGlobalOrLocalEnum.GLOBAL_COORDS : IfcGlobalOrLocalEnum.LOCAL_COORDS;
			loadcase.assign(this);
		}
Beispiel #11
0
 public IfcStructuralPointReaction(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __AppliedLoad, __GlobalOrLocal)
 {
 }
 public IfcStructuralReaction(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, appliedLoad, globalOrLocal)
 {
 }
 public IfcStructuralPlanarActionVarying(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal, Boolean __DestabilizingLoad, IfcStructuralReaction __CausedBy, IfcProjectedOrTrueLengthEnum __ProjectedOrTrue, IfcShapeAspect __VaryingAppliedLoadLocation, IfcStructuralLoad[] __SubsequentAppliedLoads)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __AppliedLoad, __GlobalOrLocal, __DestabilizingLoad, __CausedBy, __ProjectedOrTrue)
 {
     this._VaryingAppliedLoadLocation = __VaryingAppliedLoadLocation;
     this._SubsequentAppliedLoads     = new List <IfcStructuralLoad>(__SubsequentAppliedLoads);
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
             base.IfcParse(propIndex, value);
             break;
         case 3:
             _fillStyleTarget = (IfcPoint) value.EntityVal;
             break;
         case 4:
             _globalOrLocal = (IfcGlobalOrLocalEnum) Enum.Parse(typeof (IfcGlobalOrLocalEnum), value.EnumVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Beispiel #15
0
		protected override void Parse(string str, ref int pos, int len)
		{
			base.Parse(str, ref pos, len);
			mFillStyleTarget = ParserSTEP.StripLink(str, ref pos, len);
			string s = ParserSTEP.StripField(str, ref pos, len);
			if(s != "$")
				mGlobalOrLocal = (IfcGlobalOrLocalEnum)Enum.Parse(typeof(IfcGlobalOrLocalEnum),s.Replace(".","")); 
		}
 public IfcStructuralPlanarAction(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal, Boolean __DestabilizingLoad, IfcStructuralReaction __CausedBy, IfcProjectedOrTrueLengthEnum __ProjectedOrTrue)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __AppliedLoad, __GlobalOrLocal, __DestabilizingLoad, __CausedBy)
 {
     this._ProjectedOrTrue = __ProjectedOrTrue;
 }
 /// <summary>
 /// Construct a IfcStructuralReaction with all required attributes.
 /// </summary>
 public IfcStructuralReaction(IfcGloballyUniqueId globalId, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal) : base(globalId, appliedLoad, globalOrLocal)
 {
 }
Beispiel #18
0
 /// <summary>
 /// Construct a IfcStructuralCurveAction with all required attributes.
 /// </summary>
 public IfcStructuralCurveAction(IfcGloballyUniqueId globalId, IfcStructuralLoad appliedLoad, IfcGlobalOrLocalEnum globalOrLocal, IfcStructuralCurveActivityTypeEnum predefinedType) : base(globalId, appliedLoad, globalOrLocal)
 {
     PredefinedType = predefinedType;
 }
Beispiel #19
0
 public IfcStructuralLinearAction(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal, IfcBoolean?__DestabilizingLoad, IfcProjectedOrTrueLengthEnum?__ProjectedOrTrue, IfcStructuralCurveActivityTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __AppliedLoad, __GlobalOrLocal, __DestabilizingLoad, __ProjectedOrTrue, __PredefinedType)
 {
 }
Beispiel #20
0
 protected IfcStructuralAction(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal, IfcBoolean?__DestabilizingLoad)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __AppliedLoad, __GlobalOrLocal)
 {
     this.DestabilizingLoad = __DestabilizingLoad;
 }
Beispiel #21
0
 public IfcStructuralCurveReaction(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcStructuralLoad __AppliedLoad, IfcGlobalOrLocalEnum __GlobalOrLocal, IfcStructuralCurveActivityTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __AppliedLoad, __GlobalOrLocal)
 {
     this._PredefinedType = __PredefinedType;
 }
Beispiel #22
0
		protected IfcStructuralActivity(IfcStructuralActivity p) : base(p) { mAppliedLoad = p.mAppliedLoad; mGlobalOrLocal = p.mGlobalOrLocal; }