Jump to content

Are there step by step tutorial on AutoLISP?


Recommended Posts

  • Replies 25
  • Created
  • Last Reply

Top Posters In This Topic

  • arjun_samar

    8

  • Lee Mac

    4

  • wizman

    2

  • Dipali

    2

Posted

thanks a lot big bro. ghost rider, remark and profcad

 

really appreciate it a lot:)

Posted

I have tried on several occasions to begin learning AutoLISP and get frustrated. It seems a little beyond my skill, however I tend to learn better in a hands-on environment rather than by reading. It's strange because I learned basic my senior year in high school and was at the top of my class.:geek: I've since forgot all of it although fragmented memories remain. :oops:

 

I hope you do well with it arjun_samar.:)

Posted
I have tried on several occasions to begin learning AutoLISP and get frustrated. It seems a little beyond my skill...

 

Just start with minor routines, like the one below (this one helped me learn a lot when I first started...)

 

(defun c:addone (/ ent count)
   (while  (/= (setq ent (car (entsel "\nSelect Numerical Text: "))) nil)
       (setq ent (entget ent))
       (setq count (atoi (cdr (assoc 1 ent))))
       (setq count (+ 1 count))
       (setq ent (subst (cons 1 (itoa count)) (assoc 1 ent) ent))
       (entmod ent)
   ) ; end while
   (princ)
)

 

The above is a very simple routine - perfect for learning from - just works with integer text, adding 1 to the text after each click :thumbsup:

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...