Let’s say one draws an ellipse
then one ‘trims’ it with a line or plane, so now one has just a ‘piece’ of the original ellipse
is there any way to ‘measure’ this ellipse-arc?
I tried: Properties => Details - and it doesn’t show a length
Bill,
there is also a length dimension in the dimensions toolbar/menu. It will leave an annotated text with the length value of the curve you click on. This will update as the curve changes. Very handy sometimes!
Here’s mitch’s handy script for measuring a portion of a curve.
! -_RunPythonScript (""“Measures the length of a subsection of a curve chosen by 2 points
Script by Mitch Heynick 26 April 2014"”"
import rhinoscriptsyntax as rs
def LengthAlongCrvTwoPts():
crv=rs.GetObject(“Select curve to measure”,4,True)
if not crv: return
pt1=rs.GetPointOnCurve(crv,“Pick first point on curve”)
if not pt1: return
pt2=rs.GetPointOnCurve(crv,“Pick second point on curve”)
if not pt2: return
sd=[rs.CurveClosestPoint(crv,pt1),rs.CurveClosestPoint(crv,pt2)]
if sd[0]>sd[1]: sd.reverse()
length=rs.CurveLength(crv,sub_domain=sd)
prec=rs.UnitDistanceDisplayPrecision()
units=rs.UnitSystemName(abbreviate=True)
print "Length along curve between points = {} {}".format(round(length,prec),units)
LengthAlongCrvTwoPts() )
Then to use it, heres a two part macro for ya
It will have you pick two points using your near osnap or other osnaps(put on left click of button). This is to pick the points before mitch’s script.
The second macro (to put on right click of button), will delete those two points. Handy if you are testing various measures, etc…