From the course: Revit: Creating C# Plugins

Unlock the full course today

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

Sheets

Sheets

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Sheets

- [Instructor] After annotating our views, the next natural step is to put them on to sheets. A Sheet in the Revit API is a type of view, which we can create using the ViewSheet class. This inherits from the View class. Like other View classes, the ViewSheet class, can be constructed by using the Create method within the class. This simply takes the document, and an element ID for the TitleBlock type. Here we could pass an invalid element ID, which would result in no TitleBlock being used. Once we have created a Sheet, we can place other views by creating viewports on the sheet, but we'll get to that in the next video. For now, lets create a new command that simply creates a new sheet. I currently have the Visual Studio exercise file open for this video. In here, I've created a Sheets class, which is a new IExternalCommand. I've gone ahead and retrieved the document, and started a new transaction. We can use this to create the sheets. So lets start by finding the TitleBlock we want to…

Contents