2021 Class
Changes 0
C

ExtrusionAnalyzer

Description:
This geometry utility allows you to attempt to "fit" a given piece of geometry into the shape of an extrusion.
Remarks:

An instance of this class is a single-time use class which should be supplied a solid geometry, a plane, and a direction. The utility will calculate a base boundary parallel to the input plane which is the outer boundary of the shadow cast by the solid onto the input plane and along the extrusion direction.

After the extrusion has been calculated, the class permits a second step analysis to identify all faces from the original geometry which do not align with the faces of the calculated extrusion.

This utility works best for geometry which are at least somewhat "extrusion-like", for example, the geometry of a wall which may or may not be affected by end joins, floor joins, roof joins, openings cut by windows and doors, or other modifications.

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ExtrusionAnalyzer
public class ExtrusionAnalyzer : IDisposable
Name Return Type Description
M CalculateFaceAlignment() IDictionary Calculates the alignment status of each face of the solid.
M Create(Solid, Plane, XYZ) ExtrusionAnalyzer Creates an ExtrusionAnalyzer and computes and stores the solid's shadow.
M Dispose() None Releases all resources used by the
M GetExtrusionBase() Face Obtains the face that represents the base contour of the extrusion analysis.
Name Return Type Description
P EndParameter double The end parameter (distance along the extrusion direction from the input plane) calculated by the extrusion analysis.
P ExtrusionDirection XYZ The direction of extrusion specified for the extrusion analysis.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P StartParameter double The start parameter (distance along the extrusion direction from the input plane) calculated by the extrusion analysis.