ParameterUtils.WriteSharedParametersToFile
Description:
Generates a shared parameters text file from the shared parameters in a given document.
Generates a shared parameters text file from the shared parameters in a given document.
Remarks:
Only shared parameters that are used in the project are written to the output.
Only shared parameters that are used in the project are written to the output.
public static void WriteSharedParametersToFile(
Document doc,
string fileName
)
-
docSource Revit model to read shared parameters from.
-
StringfileNameDestination path for the shared parameters file. This must be in a writable location and the file cannot already exist.
-
doc is not a project document.
-
A non-optional argument was null
-
Thrown when the given file cannot be opened for write.
-
The given path already exists.
-
The destination file name includes one or more invalid characters.