Index
Developers
•
Introduction--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8
We
lcome to the Revit Platform API
What Can you do with the Revit Platform API
Requirements
Installation
Supported Programming Languages
User Manual
Documentation Conventions
Whats new in this release
o
Getting Started--------------------------------------------------------------------------------------------------------------------------------------------------------- 11
Wa
lkthroughs
Walkthrough: Hello World
Walkthrough: Add Hello World Ribbon Panel
Walkthrough: Retrieve Selected Elements
Walkthrough: Retrieve Filtered Elements
o
Add-In Integration----------------------------------------------------------------------------------------------------------------------------------------------------- 23
Ov
erview
External Commands
External Application
Add-In Registration
Localization
Attributes
Revit Exceptions
Ribbon Panels and Controls
Revit Style Task Dialogs
DB Level External Applications
o
Application and Document----------------------------------------------------------------------------------------------------------------------------------------- 52
Application Functions
• Discipline Controls
• How to use Application properties to enforce a correct version for your add-in
Document Functions
Document and File Management
Settings
Units
o
Element Essentials--------------------------------------------------------------------------------------------------------------------------------------------------- 64
Ele
ment Classification
Other Classifications
Element Retrieval
General Properties
•
Basic Interaction with Revit Elements----------------------------------------------------------------------------------------------------------------------------------------74
o
Filtering------------------------------------------------------------------------------------------------------------------------------------------------------------------ 74
Cr
eate a FilteredElementCollector
Applying Filters
Getting filtered elements or element ids
LINQ Queries
Bounding Box filters
Element Intersection Filters
o
Selection-------------------------------------------------------------------------------------------------------------------------------------------------------------------- 85
Changing the Selection
User Selection
Filtered User Selection
o Parameters----------------------------------------------------------------------------------------------------------------------------------------------------------------- 89
W
alkthrough: Get Selected Elements Parameters
Definition
Builtin Parameters
Storage Types
asValueString() and SetValueString()
Parameter Relationships
Adding Parameters to Elements