ConicalSurface Class


Conical Surface Class

A Conical Surface.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB Surface
Autodesk.Revit.DB ConicalSurface

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ConicalSurface : Surface

The ConicalSurface type exposes the following members.

Properties
Name Description
Public property Axis Axis of the cone. This is the Z axis of the local coordinate system associated with this cone.
Public property HalfAngle Cone angle.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from Surface )
Public property OrientationMatchesParametricOrientation Indicates whether this Surface's orientation is the same as or opposite to its parametric orientation.
(Inherited from Surface )
Public property Origin Apex of the cone. This is the origin of the local coordinate system associated with this cone.
Public property XDir X axis of the local coordinate system associated with this cone.
Public property YDir X axis of the local coordinate system associated with this cone.
Top
Methods
Name Description
Public method Static member Create Creates a conical surface defined by a local reference frame and a half angle.
Public method Dispose
(Inherited from Surface )
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetBoundingBoxUV Gets the UV bounding box of the surface.
(Inherited from Surface )
Public method GetFrameOfReference Returns frame of reference associated with this ConicalSurface.
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 Static member IsValidConeAngle Checks whether the input value lies is not 0, greater than -PI/2 and lesser than PI/2.
Public method Project Project a 3D point orthogonally onto a surface (to find the nearest point). Throws InvalidOperationException if the projection fails.
(Inherited from Surface )
Public method ProjectWithGuessPoint Project a 3D point orthogonally onto a surface (to find the nearest point). This method is meant to be used when a good approximate solution for the projection is available. Throws InvalidOperationException if the projection fails.
(Inherited from Surface )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
The parametric equation of the cone is S(u, v) = center + v*[sin(halfAngle)(cos(u)*xVec + sin(u)*yVec) + cos(halfAngle)*zVec]. Only the branch of the cone with v >= 0 should be used.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →