Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Latest commit

 

History

History

Design-Automation_Version

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

DeleteWalls Sample (Design Automation Version)

.net Design Automation visual studio revit

Description

DeleteWalls is an application that takes in a rvt file and outputs another rvt file with all of the walls removed.

Dependencies

This project was built in Visual Studio 2019. Download it here.

This sample references Revit 2021's RevitAPI.dll and Nuget pakcage DesignAutomationBridge for Revit 2021.

In order to POST appbundles, activities, and workitems you must have credentials for Forge.

Build DeleteWalls.sln

Clone this repository and open DeleteWalls.sln in Visual Studio.

In the DeleteWalls C# project, repair the references to DesignAutomationBridge and RevitAPI. You can do this by removing and re-adding the references RevitAPI, or by opening the DeleteWalls.csproj for edit and manually updating the reference paths. Find RevitAPI.dll in your Revit 2021 install location and note its location.

Restore DesignAutomationBridge for Revit 2021. DesignAutomationBridge.dlls for other Revit versions can also be found in the same gallery.

Build DeleteWalls.sln in Release or Debug configuration.

Run Design Automation Plugin Locally

  1. Clone the other repository and find the corresponding version of test handler (such as DesignAutomationHandler2021)

     https://github.com/Autodesk-Forge/design.automation-csharp-revit.local.debug.tool
    
  2. Build the test handler project.

  3. Start to debug DeleteWalls.sln

  4. Under the Add-Ins ribbon tab, click the External Tools drop-down, then click DesignAutomationHandler. It will start to run DeleteWalls plugin. Set a breakpoint to debug.