This library provides tools to easily interact with the Revit installation folder and manage ApplicationPlugins
.
ApplicationPluginsUtils
provides tools to download .bundle.zip
application and install/unistall in the applicationPluginsFolder
.
ApplicationPluginsUtils.DownloadBundle(applicationPluginsFolder, bundleUrl);
ApplicationPluginsUtils.DeleteBundle(applicationPluginsFolder, bundleName);
RevitInstallationUtils
provides tools to get the installed Revit versions location in the machine.
RevitInstallation[] revitInstallations = RevitInstallationUtils.InstalledRevit;
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
provides tools to get the ApplicationPlugins
and Addin
folder.
RevitUtils.GetCurrentUserApplicationPluginsFolder();
RevitUtils.GetCurrentUserAddInFolder();
RevitUtils.GetCurrentUserAddInFolder(version);
RevitUtils.GetAllUsersApplicationPluginsFolder();
RevitUtils.GetAllUsersAddInFolder();
RevitUtils.GetAllUsersAddInFolder(version);
TryGetRevitVersion
allow to get the Revit version from the assembly file.
RevitUtils.TryGetRevitVersion(assemblyFile, out int revitVersion);
ProductInfoUtils
provides tools all installation in the machine as a ProductInfo
class.
IEnumerable<ProductInfo> = ProductInfoUtils.GetProductInfos();
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!