Revit 2022 API_Place view Title|Lable for viewPort_How it Works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am trying to position view titles/lables for viewports placed on sheet. I want to understand how Viewport.LableOffset works clearly.
I will try to explain my problem. For explaination purpose I have two viewpots, one contains Plan and another contians Section.
I have set "Viewport.LabelOffset = new XYZ(0,0,0)". I believe that this XYZ is relative to Viewport CropBox or? Beacuse I get different results for view title locations having set their value to same XYZ.
See attached:
For this (Section) viewport as mentioned .LableOffset is set to "new XYZ(0,0,0)". hence lable is placed to the bottom corner.
In below image also .LableOffset is set to "new XYZ(0,0,0)". But lable is placed somewhere else and not at the corner of viewpot box.
Any idea why this is happening?
I also noticed that Lable/title going to the bottom corner of Uncroped box which seems to be right but lable is not taking the croped box bottom corner which i have set through API. see below. Shouldn't it take the croped viewport bottom corner?
Attached what I programmed. Let me know if you find something problematic there.
1. Here i set the crop box of plan view
2. Here I set ViewPort.lableOffset
Basically I want that Title/Lable always go the bottom corner of viewport when I set .LableOffset to XYZ(0,0,0)..:D
ps. hope my problem is clear!!!
Thanks in Advance!!!
Om