# Placing/Rotating Families along room boundaries

I’m following a Lynda Tutorial and feel like it’s missing some steps/features. Per the instructions, I’ve placed and rotated families along a room’s boundaries according to a set of equally spaced points along the room boundaries. However, the final product shows shelf families that all have different spacings between the back of the shelves and the walls of the room. I’m wondering how I can modify the graph so that all of the shelves are against the wall and none of the shelves overlap as they do along the wall in the lower right corner. Thanks for any guidance you can provide.

01_06_End_FamilyLocation.rvt (3.4 MB)
RoomFinishBoundarySegmentDivisions_2019.01.03.dyn (93.2 KB)

Hey,

This isn’t a perfect response, but maybe it keeps you moving…

So your family origin is away from the centre… this sits it against the edge of the wall… which makes a lot of sense…

Unfortunately when dynamo is getting the family location, it’s not recognising this move. I don’t know why, I’m sure @Andreas_Dieckmann could tell us

If you put the origin back to the centre, it works correctly, but obviously sits the family partly inside the wall, however you can then transform the point perpendicular to the direction of the curve and by the depth of the family to move it out.

You could probably leave the origin where it is and move the point to compensate but that means doing a bit more work to offset away from the wall, so i’ll let you work that out

As for your other question, you are unlucky that for this particular wall, it’s length just happens not to work for Math.Ceiling.

However, it would work for Math.Floor.

I’m no Maths genius, but I think it is inevitable that if your wall lengths are random and your family length and divisions fixed, sometimes the numbers will fall that way.

I think the easiest way of solving it, is to check whether rounding up causes a problem, and then round down… There are probably other, better ways which you will think of!

Here are my files for you to look at… 01_06_End_FamilyLocation-test.rvt (3.5 MB)
RoomFinishBoundarySegmentDivisions_2019.01.03-test.dyn (122.0 KB)

I also related the division number to the width of the family, it felt like a good thing to do…

Hope that helps,

Mark

1 Like