Class ExportExtensions
- Namespace
- RevitServerNet.Extensions
- Assembly
- RevitServerNet.dll
Convenience extensions to export models using RS libraries directly.
public static class ExportExtensionsInheritance
Inherited Members
Methods
ExportModelAsync(RevitServerApi, string, string, string, bool, IProgress<long>)
Export a model using server host and version inferred from the API client.
public static Task<string> ExportModelAsync(this RevitServerApi api, string modelPath, string destinationFile, string assembliesPath = null, bool overwrite = false, IProgress<long> bytesProgress = null)Parameters
apiRevitServerApimodelPathstringdestinationFilestringassembliesPathstringoverwriteboolbytesProgressIProgress<long>
Returns
ExportModelAsync(RevitServerApi, string, string, bool, string, bool, IProgress<long>, CancellationToken)
Export a model using server host and version inferred from the API client.
public static Task<string> ExportModelAsync(this RevitServerApi api, string modelPath, string destinationFile, bool createLocal, string assembliesPath = null, bool overwrite = false, IProgress<long> bytesProgress = null, CancellationToken cancellationToken = default)Parameters
apiRevitServerApi-
Client whose BaseUrl gives the host (without the HTTP port) and the year.
modelPathstring-
Model path in pipe format or Windows-style relative path.
destinationFilestring-
RVT file to create.
createLocalbool-
Write the BasicFileInfo of a local copy, as RevitServerTool does (see RevitServerNet.ModelExporterOptions.CreateLocal).
assembliesPathstring-
Optional directory with the Revit Server client assemblies, searched first; skipped when it does not contain all of them (see RevitServerNet.ModelExporterOptions.AssembliesPath).
overwritebool-
Replace an existing destination file.
bytesProgressIProgress<long>-
Bytes downloaded so far of the current model data file.
cancellationTokenCancellationToken-
Cancels the export.