Class ModelExporterOptions
- Namespace
- RevitServerNet
- Assembly
- RevitServerNet.dll
Public options for direct library-based model export from Revit Server.
public sealed class ModelExporterOptionsInheritance
Inherited Members
Properties
AssembliesPath
Optional directory, searched first, that directly contains the Revit Server client assemblies (the six files listed in the README). It is used only if it contains all of them (on .NET Framework, also only if every file path is at most 259 characters). Otherwise it is skipped, like a path that does not exist, and the search continues with <app>\RSAssemblies, <folder of RevitServerNet.dll>\RSAssemblies, <folder of the executable>\RSAssemblies (.NET 6 and later), then <Program Files>\Autodesk\Revit {year}\RevitServerToolCommand.
public string AssembliesPath { get; set; }Property Value
CreateLocal
Write the BasicFileInfo of a local copy, as RevitServerTool createLocalRVT does: worksharing state "Created Local", central path RSN://{ServerHost}/{model path} (ServerHost as given, including a port: RevitServerTool writes the name it was given to -s), the server model as central, a new model identity. Default false: the file keeps the server's BasicFileInfo (central model), as in earlier versions.
public bool CreateLocal { get; set; }Property Value
DestinationFile
Destination RVT file path to create. It is checked before anything is downloaded: it must end with a valid file name, must not be an existing folder, and with RevitServerNet.ModelExporterOptions.Overwrite an existing file must be writable and not open in another process.
public string DestinationFile { get; set; }Property Value
ModelPipePath
Model path in Revit Server pipe format (e.g. "|Projects|MyProj|model.rvt") or Windows-style relative path (e.g. "Projects\MyProj\model.rvt"). Leading, trailing and doubled separators are ignored, and '/' is a separator too (as in the REST client).
public string ModelPipePath { get; set; }Property Value
Overwrite
Overwrite destination file if it already exists (default: false).
public bool Overwrite { get; set; }Property Value
RevitVersion
Revit Server version as a four-digit year (e.g. "2022", "2024"); selects the endpoint /ModelService{year}/.
public string RevitVersion { get; set; }Property Value
ServerHost
Revit Server host name or IP (e.g. "revit-server.company.local"), optionally with the net.tcp port ("host:808").
public string ServerHost { get; set; }