예제 #1
0
 public HndzFloor(Double thickness, HndzProfile profile, HndzStorey storey = null, Double baseOffset = 0) :
     this(null, profile, storey, baseOffset)
 {
     FloorThickness = thickness;
     ExtrusionLine  = new HndzLine(new Point3d(profile.Centroid.X, profile.Centroid.Y, storey.Elevation - FloorThickness + baseOffset),
                                   new Point3d(profile.Centroid.X, profile.Centroid.Y, storey.Elevation + baseOffset));
 }
예제 #2
0
 public HndzStairLanding(Double thickness, HndzProfile profile, HndzStorey storey, Double finishFloorThickness, Double baseOffset = 0) :
     this(null, profile, storey, baseOffset)
 {
     SlabThickness = thickness;
     ExtrusionLine = new HndzLine(new Point3d(profile.Centroid.X, profile.Centroid.Y, storey.Elevation -
                                              SlabThickness - finishFloorThickness + baseOffset),
                                  new Point3d(profile.Centroid.X, profile.Centroid.Y, storey.Elevation - finishFloorThickness + baseOffset));
 }
예제 #3
0
 public HndzStairFlight(string name, string description, HndzStorey baseStorey, int numberOfRisers,
                        int numberOfTreads, double riserHeight, double treadLength, HndzProfile profile)
     : base(name, description, baseStorey)
 {
     Profile        = profile;
     NumberOfRisers = numberOfRisers;
     NumberOfTreads = numberOfTreads;
     RiserHeight    = riserHeight;
     TreadLength    = treadLength;
 }
예제 #4
0
        /// <summary>
        /// Constructor takes extrusion line and base storey. To use this the building must have a storey above the current storey
        /// </summary>
        /// <param name="name">Beam Name</param>
        /// <param name="description">Beam Description</param>
        /// <param name="extrusionLine">line represents start and end point of the beam and its direction</param>
        /// <param name="storey">Base Storey</param>
        /// <param name="baseOffset">Base Offset from base storey Elevation value</param>
        /// <param name="discipline">Discipline as Enum e.g. Arch, Structure ... etc</param>
        /// <param name="profile">Beam Profile</param>
        public HndzBeamStandardCase(String name, String description, HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null, Double baseOffset = 0) :
            base(name, description, extrusionLine, profile, storey, baseOffset)
        {
            //to use this, the building must have a storey above the current storey
            double  beamTopElevation = this.BuildingStorey.StoreyHeight;
            Point3d extStartPoint    = new Point3d(extrusionLine.RhinoLine.From.X, extrusionLine.RhinoLine.From.Y, beamTopElevation);
            Point3d extEndPoint      = new Point3d(extrusionLine.RhinoLine.To.X, extrusionLine.RhinoLine.To.Y, beamTopElevation);
            Line    extLine          = new Line(extStartPoint, extEndPoint);

            Profile = profile;
        }
예제 #5
0
 public HndzOpening(string name, string description, HndzProfile profile = null, HndzLine extrusionLine = null, HndzExtrudedElement relatedProduct = null, Double baseOffset = 0) : base()
 {
     Name           = name;
     Description    = description;
     Profile        = profile;
     ExtrusionLine  = extrusionLine;
     RelatedProduct = relatedProduct;
     BaseOffset     = baseOffset;
     if (RelatedProduct != null)
     {
         base.BuildingStorey = RelatedProduct.BuildingStorey;
     }
     AddToAssociatedProduct();
     base.AddToAssociatedStorey();
 }
예제 #6
0
 public HndzFloor(HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null, Double baseOffset = 0) :
     this(HndzResources.DefaultName, HndzResources.DefaultDescription, profile, extrusionLine, storey, baseOffset)
 {
 }
예제 #7
0
 public HndzFloor(String name, String description, HndzProfile profile, HndzLine extrusionLine, HndzStorey storey = null, Double baseOffset = 0) :
     base(name, description, extrusionLine, storey, baseOffset)
 {
     Profile = profile;
 }
예제 #8
0
 public HndzOpening(HndzProfile profile, HndzLine extrusionLine, HndzExtrudedElement relatedProduct = null,
                    Double baseOffset = 0) :
     this(HndzResources.DefaultName, HndzResources.DefaultDescription, profile,
          extrusionLine, relatedProduct, baseOffset)
 {
 }
예제 #9
0
 public HndzStairLanding(String name, String description, HndzProfile profile, HndzLine extrusionLine, HndzStorey storey = null, Double baseOffset = 0) :
     base(name, description, profile, extrusionLine, storey, baseOffset)
 {
 }
예제 #10
0
 }                                     // ana msh m7tagha
 #endregion
 #region Constructors
 protected HndzColumn(String name, String description, HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null, Double baseOffset = 0,
                      HndzProductDiscipline discipline = HndzProductDiscipline.Structural) :
     base(name, description, extrusionLine, profile, storey, baseOffset)
 {
     UnconnectedHeight = extrusionLine.RhinoLine.Length;
 }
예제 #11
0
 protected HndzPurlin(String name, String description, HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null,
                      double baseOffset = 0, Vector3d direction = default(Vector3d)) :
     base(name, description, extrusionLine, profile, storey, baseOffset)
 {
 }
예제 #12
0
 protected HndzStructuralElement(string name, string description, HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null, double baseOffset = 0) :
     base(name, description, extrusionLine, storey, baseOffset, HndzProductDiscipline.Structural)
 {
     Profile = profile;
 }
예제 #13
0
 /// <summary>
 /// Constructor takes extrusion line and base storey
 /// </summary>
 /// <param name="extrusionLine">line represents base point of the column and end point represents where column extrusion will end </param>
 /// <param name="storey">Base Storey</param>
 /// <param name="baseOffset">Base Offset from base storey Elevation value</param>
 /// <param name="discipline">Discipline as Enum e.g. Arch, Str ... etc</param>
 /// <param name="profile">Column Profile</param>
 public HndzColumnStandardCase(HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null, Double baseOffset = 0,
                               HndzProductDiscipline discipline = HndzProductDiscipline.Structural) :
     this(HndzResources.DefaultName, HndzResources.DefaultDescription, profile, extrusionLine, storey, baseOffset, discipline)
 {
 }
예제 #14
0
 /// <summary>
 /// Constructor takes extrusion line and base storey
 /// </summary>
 /// <param name="name">Column Name</param>
 /// <param name="description">Column Description</param>
 /// <param name="extrusionLine">line represents start and end point of the column and its direction</param>
 /// <param name="storey">Base Storey</param>
 /// <param name="baseOffset">Base Offset from base storey Elevation value</param>
 /// <param name="discipline">Discipline as Enum e.g. Arch, Str ... etc</param>
 /// <param name="profile">Column Profile</param>
 public HndzColumnStandardCase(String name, String description, HndzProfile profile, HndzLine extrusionLine, HndzStorey storey = null, Double baseOffset = 0,
                               HndzProductDiscipline discipline = HndzProductDiscipline.Structural) :
     base(name, description, extrusionLine, profile, storey, baseOffset, discipline)
 {
 }
예제 #15
0
 /// <summary>
 /// main constructor
 /// </summary>
 /// <param name="profile">constant profile along column extrude direction</param>
 /// <param name="name">name for the column</param>
 /// <param name="description">description for the column</param>
 /// <param name="height">column actual height(in Z-direction)</param>
 /// <param name="storey">storey which contains the column base elevation</param>
 /// <param name="topLevel">storey which intersects with column top elevation</param>
 /// <param name="baseOffset">offset from base</param>
 /// <param name="topOffset">offset from top</param>
 public HndzBracingStandrdCase(string name, string description, HndzProfile profile, HndzLine extrusionLine, HndzStorey storey = null,
                               double baseOffset = 0) :
     base(name, description, extrusionLine, profile, storey, baseOffset)
 {
     Profile = profile;
 }
예제 #16
0
 /// <summary>
 /// our default constructor
 /// </summary>
 /// <param name="profile">constant profile along column extrude direction</param>
 /// <param name="height">column actual height(in Z-direction)</param>
 /// <param name="storey">storey which contains the column base elevation</param>
 /// <param name="topLevel">storey which intersects with column top elevation</param>
 /// <param name="baseOffset">offset from base</param>
 /// <param name="topOffset">offset from top</param>
 public HndzBracingStandrdCase(HndzProfile profile, HndzLine extrusionLine, HndzStorey storey = null, HndzStorey topLevel = null,
                               double baseOffset = 0, double topOffset = 0) :
     this(HndzResources.DefaultName, HndzResources.DefaultDescription, profile, extrusionLine, storey, baseOffset)
 {
 }
예제 #17
0
 protected HndzBeam(String name, String description, HndzLine extrusionLine, HndzProfile profile, HndzStorey storey = null, double baseOffset = 0) :
     base(name, description, extrusionLine, profile, storey, baseOffset)
 {
 }