From the course: Revit: Creating C# Plugins

Unlock the full course today

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

Editing methods

Editing methods

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Editing methods

- [Instructor] The Revit API offers a few different ways to edit elements. One of the primary ways is using the element 'transform utools class'. In the object browser, let's go ahead and have a look at this class by searching for element > transform > uTools. In this class, there are a variety of different static methods that allow us to edit elements in different ways such as moving, rotating or copying. These can operate on either a single element or multiple elements based on the parameters we provide. So let's try out a couple of different ones such as moving and rotating an element and we'll do this in a new command. In the visual studio exercise file for this video, I've already set up the command and I've named this 'edit element'. This is an I external command and much like our last commands, it allows the user to select an object, retrieves the element and then I've set off a transaction called 'edit elements'. In here, let's move and rotate an element- one after the other…

Contents