A script to dimension flat - genius loci

I’m looking for script to make dimension. Sometimes I have error: “One or more dimension references are or have become invalid.” I don’t know why. After this notification, when I move wall dimension apear but in strange form, but not always.


Przyklad.rvt (1.5 MB) dimension.dyn (58.0 KB)

Make sure the reference lines are parallel to each other.

all elements are parallel, I can manuall dimension them
the problem is with Dynamo

Hi,

Your graph is correct. This issue comes from 2 walls. Once deleted and recreated, it works smoothly.


1 Like

Thank you very much for help.
Why are the wall ones problematic. Could it be because they were reflected? :wink:
Is it any solutions to add to the script methods to dimensionimg the door on the same dimension line?

Btw. Many thanks for your package. Genius Loci is very useful.

1 Like

I asked myself the same question.

Looks like it wasn’t when the walls were flipped but when the wall type was changed afterwards.

The easiest is to use the FamilyInstance Reference ByType node.

Thank you for your help.

Last question.
Is any posiblity to auto move overlapping dimension text on wall number & etc. ?

I am having the same issue, by any chance, did you find out what’s wrong with these walls? @Alban_de_Chasteigner . I am creating a script that automatically places dimensions, but I keep having this error. Maybe there is a way to identify the ones that are somehow corrupt? Thank you for your help.