-
Notifications
You must be signed in to change notification settings - Fork 16
Remove in Dynamo
Note: It is highly recommended to switch to Manual mode when working with Dynamo and BHoM. Besides that, it is worth having a look at Using the BHoM section before reading this page.
Having the adapter successfully set up, one can start interacting with Revit. In general, Remove action is very similar to Pull (although instead of pulling it deletes elements). Remove component behaves like a standard Dynamo component, so can be placed on canvas with a right click action (or by selection from side menu). Request, on the other hand, is a solely BHoM type, therefore it requires using CreateObject component (CreateRequest is currently on prototype stage and does not capture all Requests).
The example below shows a simple exercise of deleting all Revit elements that have value of Mark parameter equal to Pc-2.1. There is a few details that might be worth noticing:
-
FilterByParameterTextallows prefiltering the objects before interacting with them. -
TextComparisonTypeinput ofFilterByParameterTextis anenum, in other words it is a limited choice value. To create such a value, one needs to useCreateEnumcomponent, which will provide the user with a dropdown to choose from. - Required input type can be looked up by hovering the mouse over a certain input.
- Remove will not run as long as it is not activated (
active == true).

More examples is available in Remove examples page.
-
Overview:
What is Revit_Toolkit for?
Code structure
Building from source and debugging
License
Sample scripts -
Adapter:
Basics
Revit <-> BHoM conversion
BHoM vs Revit identity
Handling of Parameters
Conventions
Setup in Revit
Setup in Grasshopper
Setup in Dynamo
Setup in Excel
Details -
Pull:
Basics
Requests and filtering
Pull of Geometry and Representation
Pull from Links
Pull in Grasshopper
Pull in Dynamo
Pull in Excel
Examples
Explicit family vs type mapping
Details -
Push:
Basics
Push modes
Updating Revit types
FamilyLibrary
Push in Grasshopper
Push in Dynamo
Push in Excel
Examples
Details -
Remove:
Basics
Remove in Grasshopper
Remove in Dynamo
Remove in Excel
Examples
Details -
References:
BHoM Wiki
BHoM Adapter