Jump to content

measure ellipse outline


Recommended Posts

Hi

Can I convert a section of an ellipse outline to polyline so that I can see it's length from Properties? And why Properties does not show the length of a spline?

Thanks.

Link to comment
Share on other sites

It seems that you don't need to convert it to pull any information off of it, though there is a command that allows you to turn an ellipse into arc segments.

The command is PELLIPSE, default is 0, and 1 sets to polyline segments. If you change the PELLIPSE to 1, you can see the circumference or length from the properties dialogue box.

You can also us use the LI (short for LIST) to display the properties of the ellipse. It will include the length, if its a section or circumference if its closed.

Here is an example of an ellipse listed. Its XY is 12" x 6":

ELLIPSE Layer: "0"

Space: Model space

Handle = 89cc

Area: 56.55 sq in (0.39 sq ft)

Circumference: 2'-5 1/16"

Center: X = -0'-0", Y = -0'-0", Z = 0'-0"

Major Axis: X = 0'-6" , Y = 0'-0" , Z = 0'-0"

Minor Axis: X = 0'-0" , Y = 0'-3" , Z = 0'-0"

Radius Ratio: 0.50000

Link to comment
Share on other sites

You could use vlax-curve-getendparam like so to get the length:

 

 

(defun c:getlen    (/ e rjp-getlength)
 (defun rjp-getlength (ent / ep)
   (if    (vl-catch-all-error-p
     (setq ep (vl-catch-all-apply 'vlax-curve-getendparam (list ent)))
   )
     0
     (vlax-curve-getdistatparam ent ep)
   )
 )
 (if (setq e (car (entsel "\nSelect object to measure: ")))
   (alert (rtos (rjp-getlength e)))
 )
 (princ)
)

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...