Bounding Boxes Around Generic Annotation Families

I would like to be able to get bounding boxes around a list of generic annotation families.

I used this topic as a starting point: http://dynamobim.org/forums/topic/annotation-geometry/

To illustrate, let’s use these two Demo Note, generic annotation families:

image

I approached this a few ways, each using the Clockwork package.

  1. When I use the BoundingBox.ByElement node, I get a result…

  2. …But only when I plug-in a single family instance. This was expected, as the Clockwork package also includes a BoundingBox.ByElements node (plural).

  3. However, when I try to use the plural node either with a list…

  4. …or a single element, I get a null. Upon experimenting further, I found that this node only works for MODEL elements, not Annotation objects.

Is what I’m trying to do even possible given what’s available in the API?

@DanAudette hmm I’m not sure why there are two separate nodes in Clockwork of BoundingBox.ByElement and BoundingBox.ByElements. The singular node produces results for a list if the lacing is set to longest:

1 Like

Wow, I can’t believe lacing caught me again.

Now I wish I had asked sooner.

Thank you @awilliams!