From the course: Revit: Creating C# Plugins

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Retrieving element information

Retrieving element information

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Retrieving element information

- [Instructor] So far we have learned about the different ways that we can classify an element and how to retrieve an element from its element ID. Now that we have a reference to an element from the last video let's have a look at the element class in the object browser to find out about the different ways that we can access its information. Including its category name, family name, family symbol name and the instance name. In the object browser let's go ahead and search for element. Within the element class, we can quite easily get the category name by accessing the category property from the object. We can also get the instance name by simply accessing the name property from the element object. To get the family name and the family symbol name is a little bit trickier. To do that we'll need to retrieve the element type object that defines the instance, that is, the family symbol. To retrieve this, we'll need to call the 'get type ID' method from the element class. The get type ID…

Contents