1. ## Bezier tool in acad!

Registered forum members do not see this ad.

Hi!

I wanna ask where in acad i can find Bezier tool? Because i have coordinates, and if i draw Bezier tool through this coordinates i get my line!

And coordinates are:

- <CBezier>
- <StartPoint>
<Point x="0.000000" y="0.000000" z="0.019000" />

</StartPoint>

- <StartControlPoint>
<Point x="0.395780" y="-0.002890" z="0.019000" />

</StartControlPoint>

- <EndControlPoint>
<Point x="0.119170" y="0.137161" z="0.019000" />

</EndControlPoint>

- <EndPoint>
<Point x="0.500000" y="0.149991" z="0.019000" />

</EndPoint>

</CBezier>

thenks!

Edit:
Done
1) draw polyline through this 4 points
2) type pedit
3) chose S (spline)
3) and we get bezier line (T1 T2 T3 T4)

2. There isn't Bezier tool in plain AutoCAD. Maybe it is in Land Desktop? Do you need Cubic Bezier curve or Bezier spline with more than four points? I think possible to write lisp program with Cubic Bezier equation. For spline it is more diffcult.

3. Just out of curiosity - but what is the Bezier tool?

4. Thank you ASMI!

5. Originally Posted by Sasa
Hi!

I wanna ask where in acad i can find Bezier tool? Because i have coordinates, and if i draw Bezier tool through this coordinates i get my line!
.....

Edit:
Done
1) draw polyline through this 4 points
2) type pedit
3) chose S (spline)
3) and we get bezier line (T1 T2 T3 T4)
I know this is an old post, but I was looking for how to create a bezier curve and came across this post.

I don't think your solution creates a bezier curve, at least not to the bezier curve available in TurboCAD,

Now I'm not too sure of the different types, but TurboCAD has 3 types ofs splines, spline by fit, spline by control and bezier spline, and the 3 curves looks different when drawn on the same points. The difference between the spline and the bezier curve in TC is apparent when you do node edit. For the splines you move the control points while for the bezier you can move the control points and at the same time control the tagency to the neighbor points.

6. Yeah, I've never known of the Bezier curve tool to be in AutoCAD. It is a really handy tool that I use frequently in Photoshop, but it is definitely different than anything AutoCAD has to offer. Not to say that AutoCAD doesn't have a good selection of tools that do the job, however.

7. Try this:
Code:
```;|3D bezier curve
_____mfuccaro@hotmail.com___2008.10
|;
(defun c:bezier( / division result lp p)
(setq division 100)
(setq result nil)
(setq lp nil p t)
(while p
(setq p (getpoint "select point"))
(if p (setq lp (cons (trans p 1 0) lp)))
)
(setq r (/ 1.0 division))
(repeat division
(setq p (reverse lp))
(setq result (cons (car (r1 p r)) result))
(setq r (+ r (/ 1.0 division)))
)
(setq result (cons (car lp) (reverse result)))
(make3dpoly result)
(princ)
)
(defun div(a b r / i p)
(setq i -1 p nil)
(foreach x a
(setq p (cons (+ (* r (nth (setq i (1+ i)) a)) (* (- 1 r) (nth i b))) p))
)
(reverse p)
)
(defun parc1(p r / i l p1)
(setq i 0 l (length p) p1 nil)
(repeat (1- l)
(setq a (nth i p))
(setq b (nth (1+ i) p))
(setq p1 (cons (div a b r) p1))
(setq i (1+ i))
)
(reverse p1)
)
(defun r1(p r / p1)
(repeat (1- (length p))
(setq p1 (parc1 p r))
(setq p p1)
)
)
(defun make3dpoly (vertlist)
(entmake (list '(0 . "POLYLINE")'(66 . 1)'(100 . "AcDb3dPolyline")'(70 . 8)))
(foreach point vertlist
(entmake (list (cons 0 "VERTEX")'(100 . "AcDb3dPolylineVertex")'(70 . 32)(cons 10 point))))
(entmake '((0 . "SEQEND")))
)```
Tested in WCS only!

8. ## Lisp program for bezier curve

hi! fuccaro

i have tried your below mentioned program in autocad but its not working.
after entering command bezier.
its ask to select point as such we select point its asking for another n on n on n on...

command prompt looks like:
select pointselect pointselect pointselect pointselect pointselect pointselect pointselect pointselect pointselect pointselect pointselect point

could you pls have a check an let me guide.

I respectfully request you for this.

Originally Posted by fuccaro
Try this:
Code:
```;|3D bezier curve
_____mfuccaro@hotmail.com___2008.10
|;
(defun c:bezier( / division result lp p)
(setq division 100)
(setq result nil)
(setq lp nil p t)
(while p
(setq p (getpoint "select point"))
(if p (setq lp (cons (trans p 1 0) lp)))
)
(setq r (/ 1.0 division))
(repeat division
(setq p (reverse lp))
(setq result (cons (car (r1 p r)) result))
(setq r (+ r (/ 1.0 division)))
)
(setq result (cons (car lp) (reverse result)))
(make3dpoly result)
(princ)
)
(defun div(a b r / i p)
(setq i -1 p nil)
(foreach x a
(setq p (cons (+ (* r (nth (setq i (1+ i)) a)) (* (- 1 r) (nth i b))) p))
)
(reverse p)
)
(defun parc1(p r / i l p1)
(setq i 0 l (length p) p1 nil)
(repeat (1- l)
(setq a (nth i p))
(setq b (nth (1+ i) p))
(setq p1 (cons (div a b r) p1))
(setq i (1+ i))
)
(reverse p1)
)
(defun r1(p r / p1)
(repeat (1- (length p))
(setq p1 (parc1 p r))
(setq p p1)
)
)
(defun make3dpoly (vertlist)
(entmake (list '(0 . "POLYLINE")'(66 . 1)'(100 . "AcDb3dPolyline")'(70 . 8)))
(foreach point vertlist
(entmake (list (cons 0 "VERTEX")'(100 . "AcDb3dPolylineVertex")'(70 . 32)(cons 10 point))))
(entmake '((0 . "SEQEND")))
)```
Tested in WCS only!

9. Registered forum members do not see this ad.

Hello, and sorry for the late answer.
I dont use AutoCAD any more, but it should end the input when a null entry is detected. With other words: when it asks you for a a new point, just press <enter>. Like in the LINE command.
Post again if it doesn't work and I will find a computer with AutoCAD and I will try to solve the problem.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts