RebarShapeParameters.GetExternalDefinitionForElementId
Description:
Seach a DefinitionFile for the ExternalDefinition corresponding to a parameter in a document.
Seach a DefinitionFile for the ExternalDefinition corresponding to a parameter in a document.
public static ExternalDefinition GetExternalDefinitionForElementId(
Document doc,
ElementId paramId,
DefinitionFile definitionFile
)
-
docA document.
-
paramIdThe id of a shared parameter in the document.
-
definitionFileA database of shared parameters.
Return Value
ExternalDefinition
The external parameter corresponding to the parameter's ElementId,
or null if the Id does not correspond to an external parameter,
or the parameter is not in the definition file.
-
A non-optional argument was.