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
From the course: Revit: Creating C# Plugins
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Classifying elements5m 22s
-
(Locked)
Retrieving element information6m 39s
-
(Locked)
FilteredElementCollector3m 7s
-
(Locked)
Creating a collector7m 28s
-
(Locked)
Transactions2m 47s
-
(Locked)
Modifying elements5m 30s
-
(Locked)
Creating families7m 54s
-
(Locked)
Querying FilteredElementCollector5m 7s
-
(Locked)
Creating line-based elements6m 55s
-
(Locked)
Creating loop elements5m 59s
-
(Locked)
Get parameter6m 3s
-
(Locked)
Parameter values4m 45s
-
-
-
-
-