Author Topic: Force Text of dimension to be created inside a closed polyline limits  (Read 1337 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
Hello guys.

I am trying to dimension a closed polyline, everything is going well but I need to force the text of dimensions to be inside of polyline.
I have the Centroid point of the polyline if this helps.

Any idea how to control of the Text position?

Many thanks in advance.

ChrisCarlson

  • Guest
Re: Force Text of dimension to be created inside a closed polyline limits
« Reply #1 on: April 20, 2016, 08:02:59 AM »
What entity are you using? Screenshot of what you want?

Coder

  • Swamp Rat
  • Posts: 827
Re: Force Text of dimension to be created inside a closed polyline limits
« Reply #2 on: April 20, 2016, 08:14:42 AM »
Hi Chris.

Thanks for your reply, I am attaching a sample drawing.
Sorry for confusion.



roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Force Text of dimension to be created inside a closed polyline limits
« Reply #3 on: April 20, 2016, 03:40:01 PM »
This would be my approach:
1.
Check if the polyline is clockwise or not (I think code for that can be found on this forum).
2.
Determine the angle between two consecutive points.
3.
Add or subtract (* 0.5 pi) depending on result from step #1.
4.
Use (polar ...) with a point from step #2 and the angle from step #3 to determine the position of the dimension line.

Coder

  • Swamp Rat
  • Posts: 827
Re: Force Text of dimension to be created inside a closed polyline limits
« Reply #4 on: April 21, 2016, 12:24:22 AM »
Thank you roy for your reply and time.