Hi, I am trying to move the dimension towards walls as in the image.

![2|690x411]trying like this

I got the curve for the dimension and the walls need to move

any help appreciated.

Hi, I am trying to move the dimension towards walls as in the image.

![2|690x411]trying like this

I got the curve for the dimension and the walls need to move

any help appreciated.

Have you tried an Element.SetLocation node?

yes did. actually we move the dimension with “Element SetLocation”. the think is need to move dimension towards to wall with particular offset from the wall.

any idea how can move the dimension toward to the wall.

Are the brooms always perfect squares?

Do you mean Rooms?

No its not!

Without a more realistic condition, it’s tough to say. You could try:

- Getting the perimeter curves of the room
- Finding the walls which are ‘closest’ to the same vector as the dimension was drawn
- Pull the longest such line
- Offset that line by the desired hold-back
- Find the closest points between the dimension curve and the offset curve, and use those points to generate a vector from the dimension to the offset curve.
- Move the dimension curve by that curve.

This is going to be VERY dependent on the geometry of your room… there may not be a perfect solution without some degree of user interaction here.