Working on a sheet cloning tool and I'm stuck on a key feature. I need to maintain the position of the view title (label) when the view is recreated on the new sheet. We often modify the default position of the title and do not want to repeat the labor. I'm scouring the internet. I know Ideate can do it with their clone sheets tool but I don't know how they do it. It seems to not be supported in API. Can anyone offer any guidance? Prefer to work in python if possible.
The property you want to manipulate is Viewport -> GetLabelOutline. I found this in a minute using 'Revit Lookup' which is invaluable.
The property you want to manipulate is Viewport -> GetLabelOutline. I found this in a minute using Revit Lookup which is invaluable.
There are 2 outlines: GetBoxOutline and GetLabelOutline, I am talking about the second one.
You can not set the Label outline position. It is not exposed in the API. I have used the LabelOutline and BoxOutline to translate between them, but unfortunately what your trying to do is not currently possible.
Your right it is not possible ideate must have figured out a work around. GetLabelOutline has no use unless you can set it.
It's not useless because you can use the Viewport bounds and Label to move things around. You could also use detail items to adjust the Viewport which in turn would move the label, then remove the detail items. It would be a rough work around, but mathematically feasible.
Can't find what you're looking for? Ask the community or share your knowledge.