RVTDocs.com

SharedParameterElement.Create

Method
Description:
Creates a new shared parameter element in the document representing the parameter stored in the input ExternalDefinition.
Syntax
public static SharedParameterElement Create(
	Document document,
	ExternalDefinition sharedParameterDefinition
)
Parameters
Parameter Type Description
document Document The document.
sharedParameterDefinition ExternalDefinition Shared parameter definition.
Return Value
Type Description
SharedParameterElement The newly created shared parameter instance.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
InvalidOperationException A shared parameter with the assigned GUID is already loaded into the document.