View Full Version : Titleblock and views location (U,V)
dtownsend
2007-06-04, 05:25 PM
Does anyone understand how to get the location of a titleblock in a sheet and place a view correctly based on the title block?
I have been playing around with code from the example AllViews in the SDK and I can't figure out how it works. I am able to get it to work for one view, but it seems that the views are based on their actual location in the project which makes it tricky. I also don't fully understand U,V vs X,Y.
I'd like to place the view at the top of the page and center it up.
dtownsend
2007-06-04, 07:36 PM
Alright I figured it out.
If you get the outline U,V from the sheet and view you will be in business.
sheet.outline.max.u + sheet.outline.min.u / 2 = center of the sheet
view.outline.max.u + view.outline.min.u / 2 = center of the view
I was trying to outline from the sheet and cropbox from the view (seemed logical at the time).
Does anyone know if you can adjust the size of an annotation crop with the API?
I'd like to make them all smaller based on the outline of the view. Or is there an easy/quick/logical way to do this to a large amount of views in native revit?
Thanks
dtownsend
2007-06-04, 10:52 PM
Anyone had any luck adding a schedule to a sheet similar to adding a view to the sheet?
I tested it out and it added the schedule in the sheet tree but it doesn't actually show up on the sheet. I have also noticed that when you normally put a schedule on a sheet it doesn't show up in the sheet tree...
dtownsend
2007-06-12, 11:35 AM
I could not get schedules to add using the API or Journals.
Ended up doing them by hand...it was not so bad to do a few hours of mindless work. I'd like to see this in the API, so I can spend those few hours on something else.
sfaust
2009-04-02, 12:23 AM
Ok, I need some help on this too. I get the center of view and center of sheet, and I can find that. However, I can't seem to figure out how to translate that into the right UV to use to place the view. I'm sure it's simple, but I can't seem to get it. Really all I want for the moment is to place a single view in the center of the sheet although I'd like to understand it better so I can make different configurations later.
So can anyone give me direction on how to get from 2 UV's (1 for view center and 1 for sheet center) to a UV to use to place the view? Would be greatly appreciated, thanks.
p.s. I also looked at the AllViews example and I understand parts of it, but I don't get exactly how they are deriving the UV they use...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.