DirectShapeReferenceOptions.SetExternalGeometryId Method

DirectShapeReferenceOptionsSetExternalGeometryId Method

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

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public DirectShapeReferenceOptions SetExternalGeometryId(
	ExternalGeometryId externalId
)
Public Function SetExternalGeometryId ( 
	externalId As ExternalGeometryId
) As DirectShapeReferenceOptions
public:
DirectShapeReferenceOptions^ SetExternalGeometryId(
	ExternalGeometryId^ externalId
)
member SetExternalGeometryId : 
        externalId : ExternalGeometryId -> DirectShapeReferenceOptions 

Parameters

externalId  ExternalGeometryId
 

Return Value

DirectShapeReferenceOptions
Exceptions
ExceptionCondition
ArgumentException externalId cannot be used as an ExternalGeometryId for a direct shape reference.
ArgumentNullException A non-optional argument was null
See Also