Copy and Paste Viewport placement across Revit sheets

This tool let’s you copy/paste the position of viewports from one sheet to another.
It works by getting the viewport location with the GetBoxCenter method, and storing it’s XYZ coordinate as a pickled file in the user’s temp folder.
The coordinate is then retrieved and used to place the second viewport using the SetBoxCenter method.

The code below can be used with pyRevit or with the RevitPythonShell. Icons are from Icons8
Tested with Revit 2015+2016.

[vimeo 177477689 w=1440 h=810]

Copy and paste the placement of viewports across sheets

pyRevit Notice:
pyRevit: repository at


__doc__ = 'Copy a Viewport Placement into memory'
__version__ = '0.1.0'

import os
import pickle
from tempfile import gettempdir
from collections import namedtuple

from Autodesk.Revit.DB import Viewport
from Autodesk.Revit.UI import...

Read more

Leave a Comment