C# Class Revit.SDK.Samples.MultiplanarRebar.CS.GeometryUtil

This class is to parse the geometry information of given Corbel FamilyInstance, and finally construct a CorbelFrame according to the parsed geometry information.
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
ParseCorbelGeometry ( FamilyInstance corbel ) : CorbelFrame

This method parses geometry information of given Corbel to construct the CorbelFrame.

Private Methods

Method Description
ConstructCorbelFrame ( FamilyInstance corbel, System.Edge depthEdge, System.Edge leftEdge, System.Edge bottomEdge, System.Edge rightEdge, System.Edge topEdge, Document revitDoc, PlanarFace trapezoidFace, double hostDepth, double hostTopCoverDistance ) : CorbelFrame

Create the CorbelFrame object with the given trapezoid face, corbel and its host information.

GetCommonVertex ( System.Edge edge1, System.Edge edge2 ) : XYZ

Get the common vertex XYZ of two edges.

GetDistance ( PlanarFace face1, PlanarFace face2 ) : double

Compute the distance between two planar faces.

GetElementSolid ( Element element ) : Solid

Extract the Solid of given element.

GetNormalOutside ( Face face ) : XYZ

Compute the outside normal of given face.

IsTrapezoid ( XYZ hostNormal, PlanarFace corbelBottomFace, System.Edge bottomEdge, PlanarFace &trapezoidFace, System.Edge &topEdge, System.Edge &leftEdge, System.Edge &rightEdge ) : bool

Check if the given bottom edge was shared by a trapezoid face with left edge vertical.

Method Details

ParseCorbelGeometry() public static method

This method parses geometry information of given Corbel to construct the CorbelFrame.
public static ParseCorbelGeometry ( FamilyInstance corbel ) : CorbelFrame
corbel FamilyInstance Given corbel family instance to parse
return CorbelFrame