Get Section's cropbox

Get Section's cropbox

ttnhan1
Contributor Contributor
504 Views
2 Replies
Message 1 of 3

Get Section's cropbox

ttnhan1
Contributor
Contributor

Hello, I am working on the section, which makes me slightly confused.

I need to create the dimension outside of the crop region. So, I get the currently active view's crop box by this code:

doc.ActiveView.CropBox

These are the Max/Min points that I got from the above crop box:

Screenshot 2024-03-08 145856.png

 

However, when I click "show crop region" on Revit, the crop region on Revit has different Max/Min points.

ttnhan1_0-1709885364142.png

 

I know that the crop region is the ActiveView.CropBox.  It still works fine with FloorPlan, but with Section, they are different.

Did I understand wrong somewhere?

 

How can I get the crop region (crop box) with the Min/Max points I got in Revit Lookup?

 

 

0 Likes
Accepted solutions (1)
505 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

Please search this forum for existing answers, e.g., using the search term "cropbox":

  

https://forums.autodesk.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&...

  

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

ttnhan1
Contributor
Contributor
Accepted solution

https://forums.autodesk.com/t5/revit-api-forum/how-to-retrieve-the-cropbox-s-coordinates-of-a-sectio...
I followed this topic to get the section's cropbox. Thanks for your help