+ Reply to Thread
Results 1 to 7 of 7

Thread: Create spline

  1. #1
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jul 2010
    Posts
    43

    Default Create spline

    Registered forum members do not see this ad.

    Hi all!

    How can I create a spline from n points?
    (command "spline" point1 point2 pointi ... pointn) works, but I have to specify the start and end tangent. I want to do it automaticly i.e. 0, 0.
    How can I do that?

    That'd be better if I could make it with the entmake command!

    Thanks any help!
    Last edited by hunszab; 2nd Aug 2010 at 12:26 pm.

  2. #2
    Super Moderator Tiger's Avatar
    Computer Details
    Tiger's Computer Details
    Operating System:
    Windows 7 Enterprise 64 bit
    Computer:
    Dell Precision M4500
    CPU:
    Intel Core i5 2.40GHz
    RAM:
    8GB
    Graphics:
    NVIDIA Quadro FX 880M
    Primary Storage:
    280 GB
    Monitor:
    2 x Samsung SyncMaster 2443 24''
    Using
    AutoCAD 2012
    Join Date
    Nov 2006
    Location
    Sthlm, Sweden
    Posts
    4,595

    Default

    I have moved your question to its own thread, please start a new thread for each new question.
    Life doesn't suck, although we all go through periods when it may be easier to think that, than to discern the solution to whatever problem is the most formidable
    at the moment in one's personal UCS.
    Go to PLAN view instead. - Dadgad

  3. #3
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    To get default tangents just use "" (equivalent to <ENTER>) – a series of 3 "" at the end of the function call will do the job (one to end points input and the folowing two to accept default tangents:

    Code:
    (command "_spline" point1 point2 pointi ... pointn "" "" "")

    Regards,

    PS. Maybe the best location for this thread is under AutoLISP, Visual LISP & DCL sub-forum.

  4. #4
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jul 2010
    Posts
    43

    Default

    Thanks a lot!

    And I modify my problem: I have a list that contains n points, and I want to make spline!

  5. #5
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    For this case can use the below approach:

    Code:
    (command "_SPLINE")   ;start command function
    (foreach thePoint MyPointsList
     (command thePoint)   ;parse points list and feed the SPLINE command
    )
    (command "" "" "")    ;close points input and accept default tangents

    Regards,

  6. #6
    Full Member
    Using
    AutoCAD 2006
    Join Date
    Jul 2010
    Posts
    43

    Default

    Thanks a lot!
    You are great!

  7. #7
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Registered forum members do not see this ad.

    You're welcome! Glad to help you.

    Regards,

Similar Threads

  1. To create or not to create threads
    By Polanka in forum AutoCAD 3D Modelling & Rendering
    Replies: 3
    Last Post: 13th Nov 2009, 10:18 pm
  2. spline to arc
    By todorb2000 in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 23rd Sep 2008, 09:38 pm
  3. Spline to Arc
    By todorb2000 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 2
    Last Post: 23rd Sep 2008, 02:14 pm
  4. Spline
    By yeva in forum AutoCAD Beginners' Area
    Replies: 6
    Last Post: 15th Mar 2007, 06:34 pm
  5. spline
    By Mike Ravenwolf in forum AutoCAD General
    Replies: 2
    Last Post: 6th Dec 2005, 04:01 pm

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