+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Baçon
    Guest

    Default Hunger for help and sugestions

    Registered forum members do not see this ad.

    Helo:

    Thank you for reading

    Best regards

  2. #2
    Senior Member
    Using
    not specified
    Join Date
    Dec 2004
    Location
    YUL
    Posts
    484

    Default

    Registered forum members do not see this ad.

    Code:
    (defun c:whatever (/ ip inr nv u1)
      (setq	ns   (getint "\n Number of polygon sides: ")
    	inr  (getdist "\n Circumscribed circle radius: ")
    	nv   (getint "\n Number of laps: ")
    	ip   (getpoint "\n Insertion point: ")
    	u1    0
    	osn  (getvar "osmode")
    	u2   (/ pi ns))	
      (setvar "osmode" 0)
      (while (>= nv 1)
        (command "polygon" ns ip "" (polar ip u1 inr))
        (setq inr (* inr (cos u2))
    	  nv   (1- nv)
    	  u1    (+ u1 u2)))					
      (setvar "osmode" osn)
      (princ)
    )
    Here you go...

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