Home/ Reference/ View & Performance

doc.CreateView() / doc.Views

Opens a new view window on the document. Useful for watching the whole page while zoomed into a detail; pure batch work doesn't need it.

Signature

doc.CreateView() / doc.Views

Notes

Opens a new view window on the document. Useful for watching the whole page while zoomed into a detail; pure batch work doesn't need it.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
try:
    view = doc.CreateView()
    print("View created, total views: ", doc.Views.Count)
except Exception as e:
    print("Creating a view failed: ", e)

About this section: View & Performance

View & Performance — display and performance switches.

Other entries in this section