Jeremy Tammik

July 2009

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

« Revit Serial Number | Main | F# Programming Contest »

January 07, 2009

Creating a Viewport

Here is another short and simple question and answer session from a dialogue between Greg Wesner and Harry Mattison, both of Autodesk.

Question: I’m wondering if there is a way to create a new viewport on a sheet. I would like to automate the process of updating standard details.

I can see where I can create a sheet and I can create a view, but I do not see the ability to create a viewport on a sheet. I need to be able to create a sheet, and then create a viewport on the sheet that references a drafting view, just like you would do in the user interface by dragging a drafting view onto the sheet. Am I missing something or has this just not made it into the API yet?

Answer: You are probably looking for the ViewSheet.AddView method. An example of using this method is provided by the Revit SDK sample AllViews, which generates a new sheet including a certain list of interactively selected views.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e553e168978833010536b7c92d970c

Listed below are links to weblogs that reference Creating a Viewport:

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

RSS Feed

Search

Search