Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
After creating / placing a viewport, how do I position the viewport title
Solved! Go to Solution.
Solved by Aaron.Lu. Go to Solution.
Great workaround, good work.
We spend countless hours moving the view title family. It would be nice to say lets not do that however they can be thrown off the page for countless numbers of rooms plans and makes up a tedious day.
Just to point out that from Revit 2022 the property Viewport.LabelOffset has been implemented.
However, since "the offset is a two-dimensional vector from left bottom corner of the viewport", and that includes the label itself, it's still not the ideal solution for who wants to place the label at a specific point. In fact, if we are moving the label from outside the outline of the viewport to the inside it might not end up where we expected because the left bottom corner of the viewport may change.
In a specific case I was working on it was enough to use the Viewport.GetBoxOutline property instead, since it excludes the label:
vp.LabelOffset = DesiredLocation - vp.GetBoxOutline.MinimumPoint
but for a more robust solution it maybe be necessary to determine the new left bottom corner of the viewport based on the desired location of the label.
I don't understand why Autodesk chose to expose a label offset instead of a label location...
Can't find what you're looking for? Ask the community or share your knowledge.