Where to access properties for objects

Where to access properties for objects

Anonymous
Not applicable
677 Views
2 Replies
Message 1 of 3

Where to access properties for objects

Anonymous
Not applicable

Hi. I am looking to create an application which will extract information about objects, such as doors, walls, rooms, windows etc. I will need to extract their dimensions, materials, ratings etch. as well as custom properties. 

How will i know where to find these properties? 
My intuition tells me to just collect all elements of type window, as an example, and getparameters on each of them, but after learning about elements, families, symbols and familyinstances, i am unsure as to where to access which information. 

Is there some kind of guide as to where to access which information, or how do i know where do get it?

0 Likes
678 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Please work through the Revit API getting started material and all will become clear:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#2

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

sragan
Collaborator
Collaborator

Elements have type parameters and instance parameters, and you get these differently.  There are also shared parameters, and those are different also.

 

After you go thorough some of the Getting Started material Jeremy suggested, you should install the Revit "Built In Parameter Checker".  That will show you which parameters are available for any elements.   I've attached an example screenshot below.   

 

There is also some examples here under "Get a Parameter":

Revit API - Code Examples April 15, 2018 (google.com)

 

 

0 Likes