2027 Class
Changes 0
C

EdgeArrayArray

Description:
An array of edge arrays.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.EdgeArrayArray
public class EdgeArrayArray : APIObject, 
	IEnumerable
public void GetEdgeArrayArray(Autodesk.Revit.ApplicationServices.Application app, Autodesk.Revit.DB.Element element)
{
    // Get geometry element of the selected element
    Options geoOptions = app.Create.NewGeometryOptions();
    Autodesk.Revit.DB.GeometryElement geoElement = element.get_Geometry(geoOptions);
    // Get geometry object
    foreach (GeometryObject o in geoElement)
    {
        Solid solid = o as Solid;
        if (null != solid)
        {
            foreach (Face face in solid.Faces)
            {
                if (face != null)
                {
                    EdgeArrayArray edgeArrays = face.EdgeLoops;
                    foreach (EdgeArray edges in edgeArrays)
                    {
                        foreach (Edge edge in edges)
                        {
                            // Get one test point
                            XYZ testPoint = edge.Evaluate(0.5);
                            string edgeInfo = string.Format("Point on edge: ({0},{1},{2})", testPoint.X, testPoint.Y, testPoint.Z);
                            TaskDialog.Show("Revit",edgeInfo);
                        }
                    }
                }
            }
        }
    }
}
Name Return Type Description Inherited From
C EdgeArrayArray() None Initializes a new instance of the EdgeArrayArray class
Name Return Type Description Inherited From
M Append(EdgeArray) None Add the edge array to the end of the array.
M Clear() None Removes every edge array from the array, rendering it empty.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) APIObject
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M ForwardIterator() EdgeArrayArrayIterator Retrieve a forward moving iterator to the array.
M GetEnumerator() IEnumerator Retrieve a forward moving iterator to the array.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M Insert(EdgeArray, Int32) None Insert the specified edge array into the array.
M ReverseIterator() EdgeArrayArrayIterator Retrieve a backward moving iterator to the array.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsEmpty bool Test to see if the array is empty.
P IsReadOnly bool Identifies if the object is read-only or modifiable. (Inherited from APIObject ) APIObject
P Item EdgeArray Gets or sets an edge array at a specified index within the array.
P Size int Returns the number of edge arrays that are in the array.