- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been reading and trying to get an autolisp for the past two days that just does a simple increment of a selected group by a user prompted amount. I've tried several lisps I found and many were just way too in depth or just didn't help.
I just want to run the lisp, grab a selection of numbers I need to change, be prompted by how much do I want to change them and then it changes them for me.
I tried to write something simple but I clearly haven't read enough of the autolisp guides to try and write one myself because it was a flop.
(defun c:Increment ()
(setq inc (ssget "Select Objects for Incrementing"))
(setq num (getint "Enter amount to Increment:"))
(+ inc num)
)
That was the code I came up with trying to accomplish my goal but it was a failure. Can someone point me in the right direction or to an existing lisp I might have missed?
Thanks
-Cory
Solved! Go to Solution.