How to preview floor plan image

How to preview floor plan image

Anonymous
Not applicable
594 Views
1 Reply
Message 1 of 2

How to preview floor plan image

Anonymous
Not applicable

I'm trying to create a form application project in which I'll be able to preview Revit project floor plans in a separate form.
Now I'm exporting the floor plan image using the following code

 

    var BilledeExportOptions = new ImageExportOptions
            {
                ZoomType = ZoomFitType.FitToPage,
                PixelSize = 1024,
                FilePath = path,
                FitDirection = FitDirectionType.Horizontal,
                HLRandWFViewsFileType = ImageFileType.JPEGLossless,
                ImageResolution = ImageResolution.DPI_600,
                ExportRange = ExportRange.SetOfViews,
                ViewName = Path.GetFileNameWithoutExtension(path),
            };

            BilledeExportOptions.SetViewsAndSheets(ImageExportList);
            document.ExportImage(BilledeExportOptions);

 and then preview the image from the exported location.
This kind of process is heavy, so I wander is there a way to preview the floor plan image without exporting it?

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

so-chong
Advocate
Advocate

Hi,

 

The Revit API contains a DocumentPreviewSettings Class.

 

https://apidocs.co/apps/revit/2019/e38ea350-9951-ee05-5e3d-ab7f31815fb3.htm

 

Maybe this is useful for you.

 

 

0 Likes