Revit/Dynamo – crate location points ordered in columns and rows for list elements

Long I was gone but now I’m back and in GRIMSHAW. Youhoo! šŸ™‚

Partly for the office but mainly after hours I created this simple Dynamo script to orginise elements into columns and rows. Original task was to place views on sheets. Sometime there was one view other time 3 or 5. We wanted to make them not overlap. Although, they would need to be manually corrected later.

Presented her solution is doing just a part of this task. It creates points arranged in maximum number of columns and as many rows as there are objects for each similar string inputs on a list.

(In our office exercise this list contained ordered sheet numbers for corresponding list but with views. A node to “place views on sheets” takes a view, a point with coordinates and is placing it on a provided sheet. List of views, points and sheets must be the same length.)

This Dynamo script is creating this list of points. You have an option to specify the insertion/start point coordinates, max number of columns and a distance between columns and rows. But see it by yourself.

If I orginise points by z coordinate the output looks like this:

Levels would represent sheets or could be Revit Levels used to order other objects.

Python code looks like this:

startX = IN[0]
startY = IN[1] 

offsetX = IN[2]
offsetY = IN[3]

no_of_col = IN[4]

list = IN[5]

pointsX = []
pointsY = []

compare = ""
col_no = 1
row_no = 1

for l in list:
	if compare == l:
		if col_no <= no_of_col:
			pointsX.append(startX + offsetX*(col_no-1))
			pointsY.append(startY - offsetY*(row_no-1))
			compare = l
			col_no +=1
			col_no =2
			row_no +=1
			pointsY.append(startY - offsetY*(row_no-1))
			compare = l
		col_no =2
		row_no =1
		compare = l

OUT = pointsX, pointsY

You can download the Dynamo file from here.

Revit – Door threshold behavior

I would like to present in the below images a weird door threshold behavior in Revit.

I discovered it when I was trying to annotate a level of the door threshold in structural wall.

What I discovered is that door threshold is not visible by default at the level where doors are placed or below it and only when doors are raised by more than 0.159 mm it appears in plan.

Please notice the Sill Height set to 0.159mm. From 0. 160mm sill becomes visible.

In the image below I could only place an elevation mark because of the floor.

In project on which I was working IĀ end up moving all doors up by 0.16mm to be able to place elevation mark on the thresholds.

I believe it would be better to make a parameter which would switch door threshold visibility instead of implementingĀ this weird behavior.