RevitServerAPILib 0.1.9
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RevitServerAPILib --version 0.1.9
NuGet\Install-Package RevitServerAPILib -Version 0.1.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RevitServerAPILib" Version="0.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RevitServerAPILib --version 0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RevitServerAPILib, 0.1.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RevitServerAPILib as a Cake Addin #addin nuget:?package=RevitServerAPILib&version=0.1.9 // Install RevitServerAPILib as a Cake Tool #tool nuget:?package=RevitServerAPILib&version=0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Revit Server API Library
A .NET Class library for accessing and manipulating Revit Server through its REST API.
Usage
The REST API of a Revit Server is accessed by creating an instance of the RevitServer
class.
RevitServer server = new RevitServer("HOSTNAME",2015);
Methods on this class can be used to query information from and manipulate the models on the target server.
//Create a new RevitServer instance
RevitServerAPILib.RevitServer server = new RevitServerAPILib.RevitServer("HOSTNAME", 2015);
//Get properties of the server
var properties = server.GetServerProperties();
//Rename a model
server.Rename(@"Folder\File.rvt","NewFileName.rvt");
//Lock a model
server.Lock(@"Folder\File.rvt");
//List the history of a model
var history = server.GetModelHistory(@"Folders\File.rvt");
foreach(var item in history.Items.OrderByDescending(i=>i.VersionNumber))
{
Console.WriteLine("{0}\t{1}\t{2}",item.Date.ToString(),item.User, item.Comment);
}
//List the models contained by a folder
var folderContents = server.GetFolderContents(@"Folder\SubFolder");
foreach (var model in folderContents.Models)
{
Console.WriteLine("{0}\t{1}\t{2}",model.Name,model.LockState.ToString(),model.ModelSize.ToString());
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Replaced hard dependency on NLog with LibLog logging abstraction