C# Class Revit.SDK.Samples.GeometryCreation_BooleanOperation.CS.GeometryCreation

Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
CreateCenterbasedBox ( XYZ center, double edgelength ) : Solid

Create a centerbased box

CreateCenterbasedCylinder ( XYZ center, double bottomradius, double height, CylinderDirection cylinderdirection ) : Solid

Create a centerbased cylinder, only on X, Y, Z three axes forward direction

CreateCenterbasedSphere ( XYZ center, double radius ) : Solid

Create a centerbased sphere

getInstance ( Autodesk app ) : GeometryCreation

Get the singleton instance of GeometryCreation

Private Methods

Method Description
CreateBlend ( CurveLoop firstLoop, CurveLoop secondLoop, List vertexPairs ) : Solid

Create a blend geometry

CreateExtrusion ( List profileLoops, XYZ extrusionDir, double extrusionDist ) : Solid

Create an extrusion geometry

CreateRevolved ( Autodesk coordinateFrame, List profileLoops, double startAngle, double endAngle ) : Solid

Create a revolved geometry

CreateSwept ( CurveLoop sweepPath, int pathAttachmentCrvIdx, double pathAttachmentParam, List profileLoops ) : Solid

Create a swept geometry

CreateSweptBlend ( Curve pathCurve, List pathParams, List profileLoops, List vertexPairs ) : Solid

Create a swept and blend geometry

GeometryCreation ( Autodesk app ) : System

Constructor

Method Details

CreateCenterbasedBox() public method

Create a centerbased box
public CreateCenterbasedBox ( XYZ center, double edgelength ) : Solid
center XYZ The given box center
edgelength double The given box's edge length
return Solid

CreateCenterbasedCylinder() public method

Create a centerbased cylinder, only on X, Y, Z three axes forward direction
public CreateCenterbasedCylinder ( XYZ center, double bottomradius, double height, CylinderDirection cylinderdirection ) : Solid
center XYZ The given cylinder center
bottomradius double The given cylinder's bottom radius
height double The given cylinder's height
cylinderdirection CylinderDirection Cylinder's extrusion direction
return Solid

CreateCenterbasedSphere() public method

Create a centerbased sphere
public CreateCenterbasedSphere ( XYZ center, double radius ) : Solid
center XYZ The given sphere center
radius double The given sphere's radius
return Solid

getInstance() public static method

Get the singleton instance of GeometryCreation
public static getInstance ( Autodesk app ) : GeometryCreation
app Autodesk Revit application
return GeometryCreation