+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1
    Forum Newbie
    Using
    AutoCAD 2005
    Join Date
    Sep 2007
    Location
    Latvia
    Posts
    8

    Question 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)
    Last edited by Sasa; 2nd Jul 2008 at 11:08 am. Reason: solving issuise

  2. #2
    Super Member ASMI's Avatar
    Using
    AutoCAD 2008
    Join Date
    Nov 2005
    Location
    Oceanus Procellarum, Moon
    Posts
    1,427

    Default

    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. #3
    Senior Member JerryG's Avatar
    Discipline
    Civil
    JerryG's Discipline Details
    Occupation
    Stream Restoration
    Discipline
    Civil
    Using
    Civil 3D 2012
    Join Date
    Jan 2008
    Location
    Washington State
    Posts
    286

    Default

    Just out of curiosity - but what is the Bezier tool?
    Never trust a computer you can't throw out a window!
    Dimensions Drafting and Design;
    Specialty - Fish Passage - Civil - House plans Please visit us @ http://dimensionsdrafting.design.off...m/default.aspx

  4. #4
    Super Member ASMI's Avatar
    Using
    AutoCAD 2008
    Join Date
    Nov 2005
    Location
    Oceanus Procellarum, Moon
    Posts
    1,427

  5. #5
    Senior Member JerryG's Avatar
    Discipline
    Civil
    JerryG's Discipline Details
    Occupation
    Stream Restoration
    Discipline
    Civil
    Using
    Civil 3D 2012
    Join Date
    Jan 2008
    Location
    Washington State
    Posts
    286

    Default

    Thank you ASMI!
    Never trust a computer you can't throw out a window!
    Dimensions Drafting and Design;
    Specialty - Fish Passage - Civil - House plans Please visit us @ http://dimensionsdrafting.design.off...m/default.aspx

  6. #6
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Aug 2008
    Location
    Los Angeles area, CA
    Posts
    118

    Default

    Quote Originally Posted by Sasa View Post
    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.
    Attached Images

  7. #7
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,494

    Default

    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.
    Tannar Frampton | Facilities Engineering | Revit 2013
    Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio

  8. #8
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    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!
    Last edited by fuccaro; 14th Oct 2008 at 02:11 pm. Reason: Now it works in any UCS
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  9. #9
    Forum Newbie
    Using
    AutoCAD 2012
    Join Date
    Nov 2011
    Posts
    2

    Default 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.


    Quote Originally Posted by fuccaro View Post
    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!

  10. #10
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    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.
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

Similar Threads

  1. Tool fly-out
    By Mr. Gray827 in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 29th Nov 2007, 09:42 am
  2. Trace Tool?
    By jopton in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 10th Oct 2007, 10:07 pm
  3. How custom tool button images are created for tool palettes
    By Autodesk in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 21st Feb 2007, 04:13 am
  4. Tool Pallete
    By bigredbus in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 19th May 2006, 10:21 am

Bookmarks

Posting Permissions

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