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.
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.