Exemple #1
0
        private void GetLocation()
        {
            WallAxis = ((IIfcAxis2Placement3D)((IIfcLocalPlacement)IfcWall.ObjectPlacement).RelativePlacement);
            var location = WallAxis.Location;

            LocalPlacement = (IIfcLocalPlacement)IfcWall.ObjectPlacement;
            IfLocation     = new IfLocation(Length.FromFeet(location.X).Inches, Length.FromFeet(location.Y).Inches, Length.FromFeet(location.Z).Inches);
        }
Exemple #2
0
 public IfOpening(IfOpening opening) : base(opening.IfModel)
 {
     IfWall         = opening.IfWall;
     OpeningType    = opening.OpeningType;
     Direction      = opening.Direction;
     IfcOpening     = opening.IfcOpening;
     LocalPlacement = opening.LocalPlacement;
     IfLocation     = new IfLocation(opening.IfLocation);
     IfDimension    = new IfDimension(opening.IfDimension);
 }
Exemple #3
0
        private void GetLocation()
        {
            var Loc = PolyLine.Points[0];

            SlabAxis = ((IIfcAxis2Placement3D)((IIfcLocalPlacement)IfcSlab.ObjectPlacement).RelativePlacement);
            var location = SlabAxis.Location;

            LocalPlacement = (IIfcLocalPlacement)IfcSlab.ObjectPlacement;
            double z;

            if (double.IsNaN(Loc.Z))
            {
                z = 0;
            }
            else
            {
                z = Loc.Z;
            }
            IfLocation = new IfLocation(Length.FromFeet(Loc.X), Length.FromFeet(Loc.Y), Length.FromFeet(z));
        }
Exemple #4
0
 public IfDoor(IfLocation location) : this(0, 0, 0, location.X, location.Y, location.Z)
 {
 }
Exemple #5
0
 public IfDoor(IfDimension dimensions, IfLocation l) : this(dimensions.XDim, dimensions.YDim, dimensions.ZDim, l.X, l.Y, l.Z)
 {
 }
Exemple #6
0
 public IfDoor(Length xDim, Length yDim, Length ZDim, double x, double y, double z)
 {
     Location   = new IfLocation(x, y, z);
     Dimensions = new IfDimension(xDim, yDim, ZDim);
 }
Exemple #7
0
 public IfDoor(double xDim, double yDim, double ZDim, double x, double y, double z)
 {
     Location   = new IfLocation(x, y, z);
     Dimensions = new IfDimension(xDim, yDim, ZDim);
 }
Exemple #8
0
 public IfLocation(IfLocation location)
 {
     X = location.X;
     Y = location.Y;
     Z = location.Z;
 }