Skip to content

franpossetto/RevitAPIExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Studio Revit API Extension

.NET VisualStudio VisualStudio Revit API Revit API Revit API Revit API

This Extension provides Visual Studio Resources to help .NET Developers to Create different kind of Applications for Autodesk Revit.

With this extension, you can:

  • Create different kind of Revit Plug-ins using Project Templates.
  • Create Typical Files using Item Templates.
  • Write Code faster using Code Snippets.
  • Improve and become faster your Deploy Process.

Project Templates

  • Revit Command: Create a Revit Command with a Push Button in the Ribbon Bar
  • Revit Event DB Application: Create a Revit DB Application associated to DocumentOpened Event Handler
  • Revit Event Application: Create a Revit Application associated to DocumentOpened Event Handler

File Templates

  • Application Manifest: Create a new Application Manifest for your Revit Add-in
  • DBApplication Manifest: Create a new DBApplication Manifest for your Revit Add-in
  • Command Manifest: Create a new Command Manifest for your Revit Add-in
  • External Application: Create a new External Application
  • External Command: Create a new External Command

Code Snippets

Snippets Summary

Use the following shorcuts to use the code snippets that provided this extension: revit, tr, cl get, pi and sl. Some of them gruops more than one snippet.

Category Shortcut
Options
Description
Starter revit Multiple Options Add Document, UIDocument, Application and UI Application objects.
Starter revit Multiple Options Check Revit version.
Transaction tr No Multiple Options Instantiates a transaction object.
Collector cl collector Constructs a new FilteredElementCollector that will search and filter the set of elements in a document.
Collector cl collector-class-types Applies an ElementClassFilter and ElementIsElementTypeFilter to the collector and returns Types.
Collector cl collector-class-instances Applies an ElementClassFilter and ElementIsElementTypeFilter to the collector and returns Instances.
Collector cl collector-cat-types Applies an ElementCategoryFilter and ElementIsElementTypeFilter to the collector and returns Types.
Collector cl collector-cat-instances Applies an ElementCategoryFilter and ElementIsElementTypeFilter to the collector and returns Instances.
Element get No multiple options Gets the Element referenced by the input ElementId.
Model pi No multiple options Return the Project Information of the current project.
Selection sl pick-object Prompts the user to select one object.
Selection sl pick-objects Prompts the user to select multiple objects.
Selection sl selection Retrieve the currently selected Elements in Autodesk Revit.

Deployment process

Some features were added to the extension in order to become faster the process to mantain every Add-in.

  • Configuration Manager: Create custom configuration for each Revit version. You can have some variations
  • Post-Build Event Command Line: Post built command to copy files in the correct location depending what you need.