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); }
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); }
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)); }
public IfDoor(IfLocation location) : this(0, 0, 0, location.X, location.Y, location.Z) { }
public IfDoor(IfDimension dimensions, IfLocation l) : this(dimensions.XDim, dimensions.YDim, dimensions.ZDim, l.X, l.Y, l.Z) { }
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); }
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); }
public IfLocation(IfLocation location) { X = location.X; Y = location.Y; Z = location.Z; }