Revit API allows direct access to project and element parameters. Using either data generated in Dynamo or Python, learn how to add, remove, or update these parameters using Python.
- [Instructor] Revit is made up of many parameters…that drive element properties such as…lengths, widths or material.…We can access, add and edit these parameters…through the Revit API.…Let's have a look at how we can get and set…parameters in the API, but first,…what actually are parameters?…Well, parameters come in the form of parameter objects.…Each parameter object can be retrieved and set…from an element with the API,…as we can with the user interface.…Each of these objects has a definition object…associated with it which describes the parameter name…and type of parameter.…
So for instance, say we had a door which had…a parameter named head height, the definition…will store its name, head height,…and the type of unit that it contains,…length in this example.…Each parameter also has a value which is either…an Integer, Double, String, ElementID or None,…meaning nothing.…These values of what we actually see in the interface.…So a wall might have a height value of three meters,…the three in this instance will be the value.…
Note: This course uses Dynamo 1.3.1 and Revit 2018. For best results, it helps to have the same versions of the software.
- Importing the Dynamo Geometry library
- Defining variables
- Making decisions with conditionals
- Controlling flow with operators
- Defining functions
- Working with external libraries in Python
- Accessing the Revit API with Python
Skill Level Beginner
1. Dynamo and Python
2. Python Basics
3. Working with Libraries
4. Revit API
Next steps2m 18s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.