Message 1 of 12

Not applicable
11-18-2016
09:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good afternoon everyone.
I am curious as to how I would create a LISP to take a user input and based on that input move and object a predefined distance.
(defun C:MoveObj ()
"Please input Floor:"
if input = 01
(command "_.move" "_all" "" "_non" "500,500,500" "_non" "0,0,0")
if input = 02
(command "_.move" "_all" "" "_non" "250,250,250" "_non" "0,0,0")
if input = 1
(command "_.move" "_all" "" "_non" "-500,-250,0" "_non" "0,0,0")
Else
(\n Not a valid input)
(princ))
A rough outline for sure. Any help would be very much appreciated.
Solved! Go to Solution.