Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am a new incomer just study lisp, ask for help.
1. First enter a total quantity a (up to 9 numbers (1,2,3^^^ 8,9) + 26 letters = up to 35) to automatically produce all numbers.
For example,
if input a=5, you will output 1,2,3,4,5,
if input a=12, output 1,2,3,4,5,6,7,8,9, A, B, C
2. The starting point coordinate is (0 0), and the spacing between each number and number is 100mm in X direction and 200mm in Y direction.
I didn't know how to modify below lisp to meet requirements.
(defun C:xh()
(setq a (getint "\ total quantity a"))
(setq n 1)
(setq x 100)
(while 1
(setq p '(0 0))
(command "text" "J""M" p 100 0 n)
(setq n (+ n 1))
)
)
Solved! Go to Solution.