SizingOptions Class


Sizing Options Class

Contains the options for MEP sizing parameters, such as profile type, material roughness, fluid density and viscosity, minimal and maximal sizes, and etc.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB.Analysis SizingOptions

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public class SizingOptions : IDisposable

The SizingOptions type exposes the following members.

Constructors
Name Description
Public method SizingOptions Constructs a new instance of the SizingOptions with default parameters.
Public method SizingOptions(Element) Constructs a new instance of the SizingOptions with specified parameters.
Public method SizingOptions(SizingOptions) Constructs a new copy of the SizingOptions object.
Top
Properties
Name Description
Public property Area The area of the specified sizing profile and dimension.
Public property Density The air or fluid density in kg/ft^3, defaults to the dry air density at 20ºC.
Public property Diameter The diameter of round duct or pipe in feet.
Public property DomainType The domain type of the options, such as HVAC or Plumbing.
Public property Height The height of the duct or pipe in feet.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property MaxSize The maximal size in feet, defaults to 2 feet.
Public property MinSize The minimal size in feet, defaults to 0.041666 ft (0.5 inch).
Public property ProfileType The profile type of the options, such as round, rectangular or oval.
Public property Roughness The material roughness in ft, defaults to 0.0003 ft.
Public property Viscosity The air or fluid viscosity in kg/(ft*s), defaults to the air dynamic viscosity at 20ºC.
Public property Width The width of the duct or pipe in feet.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the SizingOptions
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method IsValid Checks if the options are valid and ready for sizing operation.
Public method SetEquivalentHeight Sets the equivalent height based on the specified width.
Public method SetEquivalentWidth Sets the equivalent width based on the specified height.
Public method SetNextAvailableSize(Double, ISet MEPSize ) Sets the next available size based on the specified inner diameter.
Public method SetNextAvailableSize(ConnectorProfileType, Double, Double, ISet MEPSize ) Sets the next available size based on the specified inner diameter.
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →