Automatic Dimension Walls


@Mohammad_Nawar In the IN[0] you should connect a selected model curve from the revit model. First you draw a model line in the model, where you want to locate the dimension line and than you select it trough the Select Element node.

As for the dynamo node which is build in, here is a screen shot. You don’t need to install special package, you need only to download dynamo 1.2. That’s all. Hope this is enough = )

Measuring total length and width of building
Create detail drawings for design panels

HI @Petar_Penchev1

Thank you man this more than enough, just am wondering I already installed 1.2 version and it’s not showing this node don’t know why.


Check your Revit version. You should use Revit 2016 or later.

1 Like

Heey everyone,

I have a little question, maybe a very stupid question :flushed:
But i’m very interrested in Dynamo, but i don’t realy know how it works.
And a co-worker ask me how he can annotate a pile foundation with dimensions.
we have more than 15.000 of them.

My question is witch nodes you all used? and in witch order.
I have the script now, thank you for that @Petar_Penchev1


Hi @Jasperbru. Can you be more specific of what you need?
Do you need to dimension the pile foundation in plan ? I believe yes, but this is importnant.
Also what dimension you need for the piles, may be only overall dimensions(width and length) ?
You should clear this up and as long as you have all the needed information to dig up a little bit more in Dynamo and
make a custom script for you. I hope all the information here could be used by you in this creation.
I suggest you to try making your own script for your custom needs.
If you have further questions, please make separete post in the forum. Thank you!


Hi @Petar_Penchev1
This is just the problem, I haven’t the time with this project to dive into Dynamo.
But if I have time I watch tutorials of Dynoma.

Yes we need to dimension the pile foundation in plan. But to draw a the dimension separately takes to many time.
The only thing what my co-worker want are de dimensions; the widths and the spaces between them.

Yea i could make another topic. But i thought this was easier:wink:

Dimensions pile foundation

@Petar_Penchev1, @Jasperbru

This method currently works on system families only. You can’t get the faces of the other families like that since they don’t get the referencing tag while converting to Dynamo geometry.

For dimensioning other families we need a different approach.


HI! @viktor_kuzev @Petar_Penchev1
I follow your code to run, but an error. With how to solve this problem.

help me pls.


Did you use spaces, tabs or both for the indents?


I tried to do it but I failed , can someone tell me what is wrong


Hi @Petar_Penchev1

I’ve been trying for a while now to figure out how this node works. Any ideas?

I’ve attached my dynamo file to show you my intent. (Dimension Gridlines)

GridLineDimensions.dyn (24.6 KB)



This node works pretty straight forward - you should connect all the elements you want to be dimensioned ( the grids) and just that. Optionally you can define curve to be used as location of the dimension line. Here I’ve attached two basic scripts - one simple and one with included curve input for the location of the dimension. When you run the one with the curve option you should first pick the line in revit, click finish from the options bar, then select all the grids you want to dimension and clokc finish from the options bar again. That is all. It works really well with grids. It is up to you how you will define the curve if you use the method with curve which define the location of the dimension line.
Hope this helps
.Dimension Grids With Curve.dyn (7.8 KB)
Dimension Grids.dyn (3.1 KB)
Use Simple revit file with couple of grids to test the scripts. Draw Detail Line to use it like curve to select and define the location of the dimension line.


I missed something really obvious @Petar_Penchev1. I feel like a real idiot.

I certainly appreciate the help though. I forgot the “Get Current Document” in front of “Get Active View” node.

This code seems to not need any python or packages. At least from what I can remember.

Which hopefully means it won’t break on using in future revit releases.

Here’s the code (Sorry for the mess). Don’t have time to clean up.

GridLineDimensions.dyn (33.5 KB)

1 Like

Thanks Jarrodryanza
i also forgt get current document.

in jarro code there are two nodes (duplicate item indices and index of item)
these nodes are not working in Dynamo


@Nico_Stegeman I unfortunately am not able to investigate this as I am limited the software already installed on my pc. Our servers are set up in such a way that we cannot install software. Good luck sorting it out.

Maybe ask @Konrad_K_Sobon… if he’s keen to help you out.


Nico, maybe you can work with this script.
Its based on Jarro’s code and places grid dimensions at the left, right, front and backside of the outer grids.

griddims.dyn (77.9 KB)

1 Like

Hi All,
I have been trying to dimension a wall in a section view in revit. The view is drawn from the center of the wall, looking out. I need to pull two dimension strands for the overall length and height of the wall and two more strands for openings. I have been using the 'Dimension.ByElements" Node. I figured out how to dimension to a line in made in Dynamo for the dimension offset. The view and suffix weren’t hard to input ether. But after some effort, it seems like that node does not allow you to pull dimensions from the actual faces of an element. I think I need python, but haven’t yet made the plunge. Any help would be appreciated!

----- this post has been moved to a new topic - see Dimension from Faces of an Element


Hi solvers and all,
Automatic dimension by dynamo is a great achievement and thanks to all the solvers of this issue.
I like to request that could these solutions might be put all in one place i.e., in a dynamo file/topic with all links as well if any custom nodes or packages could be created to share for the community as well every facets of automatic dimension like section/elevation dim etc might be addressed and documented in time until a moderate end of the topic?



Just a quick question…

Would these autodimensions also work for Assembly views of families?


Hi all. Fantastic topic this one. I’ve managed to make a definition, following the instructions from Viktor and Petar, to dimension walls easily. Then I’ve changed that to dimension only by the exterior faces of the walls because we use different walls to make core and finish walls and wanted to dim the total width of the wall. Now i want to modify the python script to accept more than one line and create one dimension for each. I’ve tried to create another for loop to deal with the multiple lines, and it seems to work, but when he enters the element’s loop he gives me a warning.

Since I have no experience with python (I can only copy and paste some Snippets of code) I am sure I have made something very stupid. Does someone have a clue of what’s wrong with the code above?

P.S.: I think this is strongly related to the original discussion, that’s why I didn’t start another topic.