RevitServerAPILib 0.1.10

dotnet add package RevitServerAPILib --version 0.1.10
NuGet\Install-Package RevitServerAPILib -Version 0.1.10
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.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RevitServerAPILib --version 0.1.10
#r "nuget: RevitServerAPILib, 0.1.10"
#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.10

// Install RevitServerAPILib as a Cake Tool
#tool nuget:?package=RevitServerAPILib&version=0.1.10

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 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.

Version Downloads Last updated
0.1.10 910 6/13/2019
0.1.9 741 6/5/2019
0.1.8 1,029 7/12/2018
0.1.7 972 7/12/2018
0.1.6 1,045 3/8/2018
0.1.5 1,012 3/8/2018
0.1.4 1,106 1/10/2017
0.1.3 1,336 11/2/2016
0.1.2 1,029 10/27/2016
0.1.1 994 10/26/2016
0.1.0 1,317 10/26/2016

Replaced logging with LibLog to MinLibLog https://github.com/aireq/MinLibLog