DirectShapeReferenceOptions Class

This class is used to control the behavior of DirectShape and DirectShapeType reference objects.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBDirectShapeReferenceOptions

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
 NameDescription
Public methodDirectShapeReferenceOptions Constructs a new DirectShapeRefOptions instance with default settings.
Public methodDirectShapeReferenceOptions(DirectShapeReferenceOptions) Constructs a new copy of the input DirectShapeRefOptions object.
Top
Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyName 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.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the DirectShapeReferenceOptions
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetExternalGeometryId Retrieves the ExternalGeometryId associated with the reference object.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsValidExternalGeometryId Validates that the input ExternalGeometryId can be assigned to a direct shape reference.
Public methodStatic memberIsValidReferenceName Validates that the input name can be assigned to a direct shape reference.
Public methodSetExternalGeometryId Sets the ExternalGeometryId associated with the reference object. The ID must be non-empty.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also