Esempio n. 1
0
 public IfcLinearPlacement(IfcCurve __PlacementRelTo, IfcDistanceExpression __Distance, IfcOrientationExpression __Orientation, IfcAxis2Placement3D __CartesianPosition)
 {
     this._PlacementRelTo    = __PlacementRelTo;
     this._Distance          = __Distance;
     this._Orientation       = __Orientation;
     this._CartesianPosition = __CartesianPosition;
 }
Esempio n. 2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _placementRelTo = (IfcCurve)(value.EntityVal);
                return;

            case 1:
                _distance = (IfcDistanceExpression)(value.EntityVal);
                return;

            case 2:
                _orientation = (IfcOrientationExpression)(value.EntityVal);
                return;

            case 3:
                _cartesianPosition = (IfcAxis2Placement3D)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
 public static IfcLinearPlacement MakeLinearPlacement_LateralConnectPlate(IfcStore m, IfcCurve constructAlign,
                                                                          IfcDistanceExpression dist, IfcOrientationExpression orientation = null)
 {
     return(m.Instances.New <IfcLinearPlacement>(l =>
     {
         l.PlacementRelTo = constructAlign;
         l.Distance = dist;
         if (null != l.Orientation)
         {
             l.Orientation = orientation;
         }
         l.CartesianPosition = ToAixs3D_LateralConnectPlate(m, l);
     }));
 }
 public static IfcLinearPlacement MakeLinearPlacementWithoutPoint(IfcStore m, IfcCurve constructAlign,
                                                                  IfcDistanceExpression dist, IfcOrientationExpression orientation = null)
 {
     return(m.Instances.New <IfcLinearPlacement>(l =>
     {
         l.PlacementRelTo = constructAlign;
         l.Distance = dist;
         if (null != l.Orientation)
         {
             l.Orientation = orientation;
         }
         l.CartesianPosition = ToAx3DWithoutLoc(m, l);
     }));
 }