Skip to content

DirectShapeReferenceOptions

Public Class

This class is used to control the behavior of DirectShape and DirectShapeType reference objects.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.DirectShapeReferenceOptions

Namespace: Autodesk.Revit.DB

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

Syntax

public class DirectShapeReferenceOptions : IDisposable

The DirectShapeReferenceOptions type exposes the following members.

Constructors

Name

Description


Public Method
DirectShapeReferenceOptions.

Constructs a new DirectShapeRefOptions instance with default settings.


Public Method
DirectShapeReferenceOptions(DirectShapeReferenceOptions)

Constructs a new copy of the input DirectShapeRefOptions object.


Properties

Name

Description


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property

The name associated with the reference object. The name does not need to be unique. The name must not be empty and must contain valid characters.


Methods

Name

Description


Public Method

Releases all resources used by the DirectShapeReferenceOptions


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method
GetExternalGeometryId

Retrieves the ExternalGeometryId associated with the reference object.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

GetType

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


Public Method
Static Member

Validates that the input ExternalGeometryId can be assigned to a direct shape reference.


Public Method
Static Member

Validates that the input name can be assigned to a direct shape reference.


Public Method

Sets the ExternalGeometryId associated with the reference object. The ID must be non-empty.


Public Method

ToString

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