Rotate cropBox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi! Is there a way to rotate a CropBox through Revit´s API?
Context:
I am working with assemblies, automating their view, sheet and dimensions creation. I have assemblies in 2 orientations: "vertical" on the screen (N-S) and "horizontal" on the screen (E-W). I want all the sheets to look something like this:
(Section A, Section B, Bottom and Top views)
With "horizontal" assemblies it works OK, but with "vertical" assemblies the Bottom (and Top) views are shown like this, because of the elements´ position/orientation:
If I rotate the Bottom view´s viewport through its "Rotation on Sheet" parameter, dimensions end up up-side-down:
Through different forum posts and tutorials I found another way to do it is to rotate the view´s cropbox. This way dimmensions are seen properly:
I have managed to do this manually, but I haven´t found a way to do it through the API (or Dynamo nodes) in order to automate it. Is there a way to do so?
P.S.: I have worked around it by rotating the viewport through the "Rotation on Sheet" parameter, and creating a new dimension type with different "Read Convention" parameter. But I was still wondering if there is a way to automate the cropbox rotation, so that I don´t have to work with/update/mantain 2 differnet types of dimmensions
I have been working with Dynamo for sometime, but I am pretty new to programming with the API. Any suggestions are welcomed. Thank you!