Annotation crop boundary?

Anyway to access annotation crop boundary on views, revit 2023?

Want to be able to batch shrink multiple to their smallest extents:

You would think that was an easy one, but alias it is not supported by the Revit API directly. The way to do it is to set individual offsets.

Here is a rough example to get you started.

Note: “This value must be a non-negative length in view units. Default value is 1/12’ (1”), minimal value is 1/96’ (1/8"). To get offset in model units, multiply the value by the view scale."


re_annotationCropOffsets.gh (9.2 KB)

2 Likes

In this example the View Scale is 1/8" (96) so the .125 offset would be 12’, if the scale changed to 1/4" the same offset would be 6’ in model units.

Hello @Japhy

I found that simply setting it to 0 brought the crop boundary down to its minimum extents.

Please let me know if this is not the correct way to use the py component.

Was able run this over 350+ views, saved me hours of frustrating work, which often results in missing some views etc. Thanks so much. Arc

1 Like

@Japhy - correction took 2.9 minutes for 358 views:

Fantastic!!

1 Like

Hi, This is a great solution for the shortcoming of the functionality of Revit. I came here looking for the same solution. I was wondering if you could upload the .gh file? Thanks in advance.

I just used Japhys solution, fed in the views I needed

The solutions works for an active view, meaning i can fed only 1 view at a time. I was wondering how i could do this for more views at once. Preferably all dependent views.

there are plenty of components that will do this for you, I suggest reading the help fist