Parameter
|
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)
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.
| 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. |
Only shared parameters that are used in the project are written to the output.