Results 1 to 2 of 2

Thread: Need help with LISP to create thread

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2014-06
    Posts
    1
    Login to Give a bone
    0

    Question Need help with LISP to create thread

    Good day all.

    I have only started with LISP programming 2 days ago, so I am very new to this.

    I have the following situation:
    I need the LISP to create a circle and extrude it to the users inputs, then create a helix around the same cylinder, then sweep a user defined shape(profile) along the helix.
    once that is done, the helix needs to be subtracted from the cylinder.

    I have the following code:

    Code:
    (defun c:circ ( / bp rad height height1 turns)
        (setq bp (getpoint "pick basepoint:"))
        (setq rad (getdist "\nenter radius:"))
        (setq height (getdist "specify height:"))
        (setq height1 (getdist "specify height:"))
        (setq turns (getint "specify number of turns:"))
        
        (command "_cylinder" bp rad height)
        (setq cyl (entlast))
        (command "_helix" bp rad rad height1 turns)
        (setq hel (entlast))
    
    
      
    )
    The user must also be able to input the amount of turns on the helix.

    Would appreciate all the help I can get.

    Regads

    Paul

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Need help with LISP to create thread

    Quote Originally Posted by stapelbergp675461 View Post
    I have only started with LISP programming 2 days ago, so I am very new to this.
    The fact that you're so new to LISP, and you've included code tags in your first post, I just wanted to extend a very warm welcome to AUGI!

    I'm confident that someone will come along shortly in an effort to help.

    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. 3D Metric Thread LISP
    By sgiffin.164769 in forum AutoLISP
    Replies: 3
    Last Post: 2009-02-20, 08:34 PM
  2. Is there any way to create a folder via LISP
    By mpemberton in forum AutoLISP
    Replies: 9
    Last Post: 2008-06-27, 11:53 AM
  3. Metric Thread lisp
    By sgiffin.164769 in forum AutoLISP
    Replies: 0
    Last Post: 2008-05-02, 11:25 AM

Posting Permissions

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