- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having a problem getting vlisp to accept tangent conditions for the creation of a spline. For example, given the following:
I would like to reference the 5 points in a vlisp command.
To create the spline interactively in AutoCAD you would input
spline
point 1
t (tangent)
point 4
point 2
point 3
t
point 5
resulting in the spline shown.
In vlisp I would expect the following to work but it throws and error for the "t".
(defun c:test (/)
(setq p1 (getpoint "\nPick point #1: ")
p2 (getpoint "\nPick point #2: ")
p3 (getpoint "\nPick point #3: ")
p4 (getpoint "\nPick point #4: ")
p5 (getpoint "\nPick point #5: ")
)
(command "_spline" p1 "t" p4 p2 p3 "t" p5 )
(princ)
)
How can I specify tangent conditions for creating a spline with vlisp.
On a related note, I tried using 5 points and the spline CV method for creating a spline. But even if the spline command includes "m" " cv" to specify CV method the command it still assumes the fit method.
E.g.,
(command "_spline" "m" "CV" p1 p4 p2 p5 p3)
Solved! Go to Solution.