how to use ExportRange in PDFExport.

how to use ExportRange in PDFExport.

DesignGroup01
Enthusiast Enthusiast
248 Views
1 Reply
Message 1 of 2

how to use ExportRange in PDFExport.

DesignGroup01
Enthusiast
Enthusiast

Hi all,

 

I Export pdf using Current visible view, but get pdf is whole element in view, not a visible view.

so, i find the ExportRange from revit API, but how to use in PdfExport.

please guide me how to use ExportRange in ExportPdf.(not use PrintManager)
i use Revit 2025.

ExportRange Enumeration
See Also
This enum is used to define what view, part of the view, or list of views will be exported.
Syntax
C#
public enum ExportRange
Visual Basic
Public Enumeration ExportRange
Visual C++
public enum class ExportRange
Members
Member name	Description
CurrentView	Export the current view only (zoom to fit of the current view).
VisibleRegionOfCurrentView	Export the visible region of the current view.
SetOfViews	Export a set of views (set in ViewsAndSheets).

 

0 Likes
249 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

I suggest that you start out by searching this forum for ExportRange; there are many solutions listed:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes