Skip to content

GeometryObject

Public Class

The common base class for all geometric primitives.

Inheritance Hierarchy

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

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class GeometryObject : APIObject

The GeometryObject type exposes the following members.

Properties

Name

Description


Public Property
Code Example
GraphicsStyleId

The ElementId of the GeometryObject’s GraphicsStyle


Public Property
Id

A unique integer identifying the GeometryObject in its associated non view-specific GeometryElement.


Public Property

Indicates whether this geometry is obtained directly from an Element.


Public Property
Code Example

Identifies if the object is read-only or modifiable.
(Inherited from APIObject)


Public Property
Visibility

The visibility.


Methods

Name

Description


Public Method
Dispose

Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)


Public Method
Equals

Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(Object))


Public Method

Gets the integer value of the geometry object as hash code
(Overrides Object.GetHashCode.)


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Operators

Name

Description


Public Operator
Static Member
Equality(GeometryObject, GeometryObject)

Determines whether two GeometryObjects are the same.


Public Operator
Static Member
Inequality(GeometryObject, GeometryObject)

Determines whether two GeometryObjects are different.


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