Share

GeometryObject Class

The common base class for all geometric primitives.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.GeometryObject
      More

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class GeometryObject : APIObject

The GeometryObject type exposes the following members.

Properties

 NameDescription
Public propertyCode exampleGraphicsStyleIdThe ElementId of the GeometryObject's GraphicsStyle
Public propertyIdA unique integer identifying the GeometryObject in its associated non view-specific GeometryElement.
Public propertyIsElementGeometryIndicates whether this geometry is obtained directly from an Element.
Public propertyCode exampleIsReadOnlyIdentifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public propertyVisibilityThe visibility.

Methods

 NameDescription
Public methodDisposeCauses the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(Object))
Public methodGetHashCode Gets the integer value of the geometry object as hash code
(Overrides Object.GetHashCode())
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

Operators

 NameDescription
Public operatorStatic memberEquality(GeometryObject, GeometryObject)Determines whether two GeometryObjects are the same.
Public operatorStatic memberInequality(GeometryObject, GeometryObject)Determines whether two GeometryObjects are different.

See Also

Reference

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.GeometryObject
      Autodesk.Revit.DB.Curve
      Autodesk.Revit.DB.Edge
      Autodesk.Revit.DB.Face
      Autodesk.Revit.DB.GeometryElement
      Autodesk.Revit.DB.GeometryInstance
      Autodesk.Revit.DB.Mesh
      Autodesk.Revit.DB.Point
      Autodesk.Revit.DB.PolyLine
      Autodesk.Revit.DB.Profile
      Autodesk.Revit.DB.Solid

Was this information helpful?