Skip to content

Utils to work with Revit installation folder and ApplicationPlugins.

License

Notifications You must be signed in to change notification settings

ricaun-io/ricaun.Revit.Installation

Repository files navigation

ricaun.Revit.Installation

Visual Studio 2022 Nuke License MIT Build nuget

This library provides tools to easily interact with the Revit installation folder and manage ApplicationPlugins.

Features

ApplicationPluginsUtils

ApplicationPluginsUtils provides tools to download .bundle.zip application and install/unistall in the applicationPluginsFolder.

ApplicationPluginsUtils.DownloadBundle(applicationPluginsFolder, bundleUrl);
ApplicationPluginsUtils.DeleteBundle(applicationPluginsFolder, bundleName);

RevitInstallationUtils

RevitInstallationUtils provides tools to get the installed Revit versions location in the machine.

RevitInstallation[] revitInstallations = RevitInstallationUtils.InstalledRevit;

RevitInstallationExtension

RevitInstallation provides the Revit installation information.

revitInstallations.TryGetRevitInstallation(revitVersion, out RevitInstallation revitInstallation);
revitInstallations.TryGetRevitInstallationGreater(revitVersion, out RevitInstallation revitInstallation);

With RevitInstallation is possible to open the Revit application or find the Revit.exe process.

revitInstallation.TryGetProcess(out Process process);
Process[] revitProcesses = revitInstallation.GetProcesses();
Process revitProcess = revitInstallation.Start();

RevitUtils

RevitUtils provides tools to get the ApplicationPlugins and Addin folder.

RevitUtils.GetCurrentUserApplicationPluginsFolder();
RevitUtils.GetCurrentUserAddInFolder();
RevitUtils.GetCurrentUserAddInFolder(version);
RevitUtils.GetAllUsersApplicationPluginsFolder();
RevitUtils.GetAllUsersAddInFolder();
RevitUtils.GetAllUsersAddInFolder(version);

TryGetRevitVersion

TryGetRevitVersion allow to get the Revit version from the assembly file.

RevitUtils.TryGetRevitVersion(assemblyFile, out int revitVersion);

Utils

ProductInfoUtils

ProductInfoUtils provides tools all installation in the machine as a ProductInfo class.

IEnumerable<ProductInfo> = ProductInfoUtils.GetProductInfos();

Release

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!