Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cubemap

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
279 Views, 1 Reply

Cubemap

I need to export an image that has the same resolution and does not overlap, to create a cubemap. I manage to export the images with cropbox but the resolution does not become the same.

My code:

 

View3D view3D = doc.ActiveView as View3D;
BoundingBoxXYZ box = new BoundingBoxXYZ();
box.Min = new XYZ(-0.1,-0.1,-1000);
box.Max = new XYZ(0.1, 0.1, -0.100000000);
view3D.CropBox = box;


TaskDialog.Show("s", "Max : " + view3D.CropBox.Max.ToString() + "Min : " + view3D.CropBox.Min.ToString());




var front = new ImageExportOptions
{
ZoomType = ZoomFitType.FitToPage,
PixelSize = 1000,
FilePath = "C:/Users/CAD2/Desktop/Front.png",
FitDirection = FitDirectionType.Horizontal,
HLRandWFViewsFileType = ImageFileType.PNG,
ImageResolution = ImageResolution.DPI_600,
ExportRange = ExportRange.CurrentView
 
};

 
doc.ExportImage(front);
1 REPLY 1
Message 2 of 2
PavelAnd
in reply to: Anonymous

Hi @Anonymous. It would be better to ask your question in this forum.

Best regards, Pavel Plotitsyn.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report