RevitAddin Templates and ItemTemplates for C# Applications.
This package is automatically installed when using the ricaun.AppLoader plugin.
- Install .Net SDK or Visual Studio 2022
- Run
dotnet new install ricaun.Revit.Templates
- Run
dotnet new ricaun-revit-addin-sln -n ProjectName
- Run
dotnet new ricaun-revit-addin-sln --help
Options | Description | Default |
---|---|---|
--Authors | Set Project Authors PropertyGroup | Authors |
--Company | Set Project Company PropertyGroup | Company |
--License | Set Project License MIT | true |
--Description | Set Project Description PropertyGroup | Revit Plugin $(PackageId) |
--Revit2025 | Configuration Version Revit 2025 | false |
--Revit2024 | Configuration Version Revit 2024 | false |
--Revit2023 | Configuration Version Revit 2023 | false |
--Revit2022 | Configuration Version Revit 2022 | false |
--Revit2021 | Configuration Version Revit 2021 | false |
--Revit2020 | Configuration Version Revit 2020 | false |
--Revit2019 | Configuration Version Revit 2019 | false |
The ItemTemplates
are installed automatically in Visual Studio 2022
when ricaun.AppLoader plugin installs the package.
Item | Description |
---|---|
CHANGELOG | Create CHANGELOG.md template file |
LICENCE | Create LICENSE.md template file with MIT License |
README | Create README.md template file |
Item | Description |
---|---|
App | Basic Revit Application with IExternalApplication |
Command | Basic Revit Command with IExternalCommand |
todo | ... |
The ProjectTemplates
are installed automatically in Visual Studio 2022
when ricaun.AppLoader plugin installs the package.
Project | Description |
---|---|
ricaun.Nuke.Project | Project with ricaun.Nuke Publish Build |
ricaun.Revit.Addin.Project | Project library template for a Revit C# .NET add-in |
The Snippets
are installed automatically in Visual Studio 2022
when ricaun.AppLoader plugin installs the package.
Snippet | Description |
---|---|
rdoc | Creates new Document statement |
rdocfull | Creates new Document statement with View and Selection |
relement | Creates GetElement in Document GetElement statement |
rfec | Creates new FilteredElementCollector() statement |
rmpickelement | Creates new PickElement Method |
rmselect | Creates new Select Method by Category |
rmselectelement | Creates new Select Method by Element |
rmselectelementtype | Creates new Select Method by ElementType |
rparameter | Creates Get Parameter statement |
rparameterif | Creates Get Parameter statement with if |
rsids | Selection ElementId to Element statement |
rt | Creates new Transaction() statement |
rtg | Creates new TransactionGroup() statement |
rapp | Creates new class App with IExternalApplication |
rappdb | Creates new class AppDB with IExternalDBApplication |
rcommand | Creates new class Command with IExternalCommand |
Download the latest ricaun.Revit.Templates.Install.zip and extract the files.
- The
dotnet install.cmd
force to install filericaun.Revit.Templates.{version}.nupkg
. - The
dotnet uninstall.cmd
force to uninstallricaun.Revit.Templates
from thedotnet
.
Inside the tools
folder are the install.cmd
and uninstall.cmd
files to install/uninstall the item and snippets Visual Studio 2022
templates.
- The
install.cmd
force to install theItemTemplates
andSnippets
in theVisual Studio 2022
user folder. - The
uninstall.cmd
force to uninstall theItemTemplates
andSnippets
in theVisual Studio 2022
user folder.
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!