CreateLinkReference Method


Creates a Reference from a Reference in an RVT Link.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2014

Syntax

C#
public Reference CreateLinkReference(
	RevitLinkInstance revitLinkInstance
)
Visual Basic
Public Function CreateLinkReference ( _
	revitLinkInstance As RevitLinkInstance _
) As Reference
Visual C++
public:
Reference^ CreateLinkReference(
	RevitLinkInstance^ revitLinkInstance
)

Parameters

revitLinkInstance
Type: Autodesk.Revit.DBRevitLinkInstance
Id of the RevitLinkInstance that contains the reference.

Remarks

The reference that is returned can be used to create a family instance on a face in an RVT link.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullExceptionThrown when revitLinkInstance is a null reference (Nothing in Visual Basic).

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →