2025 Class
Changes 4
C

DirectShapeReferenceOptions

Description:
This class is used to control the behavior of DirectShape and DirectShapeType reference objects.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.DirectShapeReferenceOptions
public class DirectShapeReferenceOptions : IDisposable
Name Return Type Description Inherited From
C DirectShapeReferenceOptions() None Constructs a new DirectShapeRefOptions instance with default settings.
C DirectShapeReferenceOptions(DirectShapeReferenceOptions) None Constructs a new copy of the input DirectShapeRefOptions object.
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the DirectShapeReferenceOptions
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetExternalGeometryId() ExternalGeometryId Retrieves the ExternalGeometryId associated with the reference object.
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 IsValidExternalGeometryId(ExternalGeometryId) Boolean Validates that the input ExternalGeometryId can be assigned to a direct shape reference.
M IsValidReferenceName(String) Boolean Validates that the input name can be assigned to a direct shape reference.
M SetExternalGeometryId(ExternalGeometryId) DirectShapeReferenceOptions Sets the ExternalGeometryId associated with the reference object. The ID must be non-empty.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P Name string 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.