Hi,
I'm trying to find a way of drawing closed splines of specific length. To better describe what I need: I want to draw a biathlon track. Measures of track are specified, but how to draw this using a spline? I know that I can set length of open spline, but what with closed loops? Any ideas?
@smbdelse wrote:
...
I'm trying to find a way of drawing closed splines of specific length. To better describe what I need: I want to draw a biathlon track. Measures of track are specified, but how to draw this using a spline? I know that I can set length of open spline, but what with closed loops? Any ideas?
Can you draw something of a shape you like, at any size, find its length, and scale the whole thing by the ratio of the desired length to the actual?
(command
"_.scale"
theSpline ; entity name
""
(vlax-curve-getStartPoint theSpline)
;; or some other definable base point, possibly middle of bounding box, or User-specified
(/
theDesiredLength
(vlax-curve-getDistAtParam theSpline (vlax-curve-getEndParam theSpline)); current total length
); /
); command
It's the best solution for now. PaulMunford, 3wood: it's not what I need. Imagine that as a loop tied from a cord of a specific length that I can compose on a plan like I need. Building track from separated lines, splines, polylines, arcs or whatever doesn't solve the problem, it still needs too much effort.