Distance Based Element Numbering

Hi,

I am assembling a script for distance based element renumbering and I am facing an issue where the Curve.PointAtParameter is giving out 2 different values for the same element.

Ideally the point should be the same and the distance to geometry should be ‘0’ as it is the base element.

Any help regarding the same would be appreciated.

ENDB Walls.dyn (15.8 KB)

@mukhesh.studio4 You seem to be sure that the element at index 39 (in your screenshot) is the same as the selected element.
How?

@Vikram_Subbaiah the element with id 360054 is included in the list of walls selected on 2nd floor, Hence I selected it to be the base element, which means that atleast one point should be the same. So, I checked the entire list for the matching point. The dynamo geometry preview also shows a different point in the same location. No idea why.

It would help if you could post a Revit file that others could use as the base for your Dynamo file.

Hi Vikram, There was something wrong with the file I was working on. I tried the same script on a different sample file and it works.
Unfortunately I cannot upload the revit file due to restrictions of the forum.
The problem is resolved now.

Thanks & Regards
Mukhesh Chowdary

1 Like