Move title of a viewport

Move title of a viewport

JeffStuy
Contributor Contributor
17,001 Views
22 Replies
Message 1 of 23

Move title of a viewport

JeffStuy
Contributor
Contributor

After creating / placing a viewport, how do I position the viewport title

Accepted solutions (1)
17,002 Views
22 Replies
Replies (22)
Message 21 of 23

Dale.Bartlett
Collaborator
Collaborator

Any progress on this? 




______________
Yes, I'm Satoshi.
Message 22 of 23

frankholidayjunior
Advocate
Advocate

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.

 

 

Message 23 of 23

miguelmachadoecosta
Advocate
Advocate

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...