Setting CropBox for a 3D view with Revit 2018

Setting CropBox for a 3D view with Revit 2018

PeterLMann
Explorer Explorer
4,482 Views
20 Replies
Message 1 of 21

Setting CropBox for a 3D view with Revit 2018

PeterLMann
Explorer
Explorer

I am getting a different result with 2018 than I was with 2017 and previous versions of Revit.

 

Dim oBBoxCropView As DB.BoundingBoxXYZ

' do some stuff to create required bounding box.

Dim V3D As View3D

V3D.CropBox = oBBoxCropView

 

The code for creating the bounding box results in an identical BoundingBox, but when applied to the view crop box, results in a very large max and min extent.

 

Has anyone else experienced this?

 

?oBBoxCropView

{Autodesk.Revit.DB.BoundingBoxXYZ}

    Max: {(43.355956267, 0.075662107, -0.100000000)}

    Min: {(21.252267057, -21.180810247, -1000.000000000)}

?V3D.CropBox

{Autodesk.Revit.DB.BoundingBoxXYZ}

    Max: {(43.355956267, 0.075662107, -0.100000000)}

    Min: {(21.252267057, -21.180810247, -1000.000000000)}

 

But with Revit 2018, using the same values for oBBoxCropView results in an invalid cropbox for the view.

 

?V3D.CropBox

{Autodesk.Revit.DB.BoundingBoxXYZ}

    Max: {(-1000000000000000019884624838656.000000000, -1000000000000000019884624838656.000000000, -0.100000000)}

    Min: {(1000000000000000019884624838656.000000000, 1000000000000000019884624838656.000000000, -0.120000000)}

0 Likes
Accepted solutions (1)
4,483 Views
20 Replies
Replies (20)
Message 21 of 21

matthew_taylor
Advisor
Advisor

All,

I haven't checked that it works, but the fix for this bug is reportedly in hotfix 2018.1.1. Smiley Happy


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes