Quickly dimensions between different categories


#1

Hi people,
Is there a way to create dimensions between elements of different categories using Dynamo?
Example:

I am trying this scrypt but It’s not working for this case.


#2

Hi!
You need to add a line for the location/orientation of the dimension:


#3

Thanks Viktor, It is exactly what I am looking for!


#4

Viktor, is there any way to do this?

I am trying to do the same than MARCELLO SGAMBELLURI in his class:
AS10613: More Practical Dynamo: Practical Uses for Dynamo Within Revit

At 43 mininutes, he used the script below to create quickly dimensions between structural columns and grids.

The challenge is to get the center point of the structural columns and use them how reference to dimension. Could be face too but I prefer center of columns.
I saw your replies in post https://forum.dynamobim.com/t/automatic-dimension-walls/6970/5, but I didn’t have success to change walls and openings by grids and structural columns. Thanks a lot.


#5

Well if we can see it done already there’s definetely a way.
I think Marcello’s using a custom node that is compiled outside of Dynamo.
And as we can see it not only places the dimensions but also finds the closest gridlines and automatically puts a line for the location of the dimension.
The API method needs view, line and references.
http://www.revitapidocs.com/2016/475aab91-19d3-5884-d3eb-18dfc0d4004f.htm

And yes I guess the biggest problem would be referencing the center of the column.
I did something similar here:

But is is faulty in a way. It gets the bounding box of the element and creates tiny detail lines for the measurements.
You can do the same with columns’ centres I guess, but that means that if you move the column you’ll have to run the script again. Although I suspect that there is a way to get the underlaying analytical curve as a reference.
Anyway, my point is that it is totatlly doable, but not so simple.
I think the topic is interesting and I can suggest creating a new post specifically asking for what Marcello did.
Greetings!


#6

Viktor, I tried to create model lines inside of family but I can’t access these elements, only geometry. If we can extract the elements, question solved.
To do small detail lines is an option, but there is a chance to forget to run the script after to move the columns. This is a big problem! If I could lock the detail line with reference plans of columns or the model lines inside the family, it can work.


#7

Hi @Dantas ,

I made something that does what you want :

It’s a little messy for now but it works. I’ll improve it and upload it to the data-shapes package.
Here’s the .dyn :

dimension column closest grids.dyn (9.0 KB)


Definition method not found
#8

Thanks a lot Mostafa, you saving me again.
Now I will filter out columns placed at grid intersects (the script has an error) and to give an offset to dimension lines.
Excelent job!!!


#9

Mostafa - I am trying to figure out how to modify this to do the same thing but with a floor. Could you provide some assistance?
Thank you in advance,
Brad


#10

Hi @bradwitt
can you provide a screenshot of what you want to achieve?


#11


#12

Hi @Mostafa_El_Ayoubi

I am receiving the following error while running the script -

Can you take a look.

Thanks


#13

Hey mostafa,
I am facing the same issue what ‘rdey’ is facing. It would be a great help if you look into it and provide the people the solution.

Thank you so much for your support.


#14

I am sorry to remind that, in order to introduce a new request in an appropriate way, every member of this community should be inspired by the forum guidelines where savvy advice are provided. It would be a good idea to start a new thread with a screenshot of your work clearly indicating what you tried and why it does not work. Any related link that could help to solve the issue is also welcome. If needed, you can easily refer to other’s post in your question like so:
Share-a-link-to-this-post


#15

Mostafa, this is great

Say I wanted to change the Category from Structural Columns to a Family of any type but for instance Speciality Equipment. I am trying to find the spot in your code where I can modify what I want to dimension too. I have tried other Categories and switched to Family by Element nodes, etc… but it seems to only work on Structural Columns. Am I missing something in the node, or is it in your code? Any advice would be much aappreciated.

Thanks


#16


Mostafa_El_Ayoubi This dosnt seem to work in Dynamo 1.3 and Revit 2018. Any ideas? Did you ever upload it to your package?