Getting Titleblock Location and Geometry

I’ve been putting off trying to solve this problem for a while now but now it’s time to tackle it. I’m trying to find a way of getting the geometry of a titleblock into Dynamo so that one can do further calculations on it to then place views and schedules accurately. I’ve tried several different methods, mostly from this old thread, but just can’t seem to get any geometry data into Dynamo directly. Are there any other methods with Dynamo 1.3.2 that work? I’m on REVIT 2017.2.

The example seems to be working with floorplans, but I need to use it for schedules and 3d views. Furthermore, I’m not sure why the view type would have any effect on getting the titleblock geometry but perhaps someone has some insight to offer on this behaviour. In the below images the the watch node is showing the object type into the List First node.

You wouldn’t be able to get the geometry directly from the family instance. You can however open the family in the family editor and collect all the lines (and other elements) from the family document.

1 Like

I tried the bounding box method through the link but am getting different results. For this suggestion the geometry is correct but I’d prefer not to open the family editor to get it because the goal of the final script is doing something else entirely and needs the geometry everytime. My temporary solution is as follows but it’s imperfect since more complex post-processing calculations need to get done to align multiple views asymmetrically. It’s much easier to include some non visible geometry in the titleblock and align to that. I’ll come back to this problem later to try and develop a better solution for dynamo 1.3.2.

1 Like

Apologies I’m away from my PC… As an alternative indirect method, could you get the min point of the family bounding box (or location maybe?) and use the name to get paper size and orientation? I do something similar with batch plotting…

Sorry if that’s no use :slight_smile:

Mark

Hi Nick, I was wondering if there was any chance i could look at that python code you have to get the lines of the titleblock in dynamo?

Afraid I don’t have it anymore, but it should be as simple as opening the family document and using a FilteredElementCollector to grab all the lines.

1 Like

A simpler approach might be to make sure the lower left corner of your titleblocks is always at 0,0. Then you can just work the math from there and don’t need to get any information from the titleblock, just what type/size it is. From there, the dimensions and size is a fixed value.

1 Like

:point_up_2:This is always a good idea.

1 Like

And note that the default out of the box Revit templates are NOT at 0,0. They are off by some 3/256"
Why they did that? Who knows?
image

1 Like