WriteSharedParametersToFile Method


Parameter Utils Write Shared Parameters To File Method

Generates a shared parameters text file from the shared parameters in a given document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public static void WriteSharedParametersToFile(
	Document doc,
	string fileName
)

Parameters

doc Document
Source Revit model to read shared parameters from.
fileName String
Destination path for the shared parameters file. This must be in a writable location and the file cannot already exist.
Exceptions
Exception Condition
ArgumentException doc is not a project document.
ArgumentNullException A non-optional argument was null
FileAccessException Thrown when the given file cannot be opened for write.
FileArgumentAlreadyExistsException The given path already exists.
InvalidPathArgumentException The destination file name includes one or more invalid characters.
Remarks
Only shared parameters that are used in the project are written to the output.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →