RVTDocs.com

RevitLinkOptions(Boolean, WorksetConfiguration)

Constructor
Description:
Creates a RevitLinkOptions object, specifying relative or absolute path type, and the desired workset configuration.
Syntax
public RevitLinkOptions(
	bool relative,
	WorksetConfiguration config
)
Parameters
Parameter Type Description
relative Boolean True if the link should use a relative path. False if it should use an absolute path.
config WorksetConfiguration A WorksetConfiguration object specifying the worksets to open when creating the link. Leave as <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD8A2482_0"></span></span> if the file is not workshared. Optionally, this may also be <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTD8A2482_1"></span></span> for a workshared file, in which case Revit will open all worksets.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null