Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Move title of a viewport

22 REPLIES 22
SOLVED
Reply
Message 1 of 23
JeffStuy
15153 Views, 22 Replies

Move title of a viewport

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

22 REPLIES 22
Message 21 of 23
Dale.Bartlett
in reply to: ahmadizm

Any progress on this? 




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

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

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.

Post to forums  

Autodesk Design & Make Report