Here is a powerful tool that is honestly easily forgotten. The Multiple command lets you repeat a command that does not repeat by default. The LINE command is an example of a command that does repeat. You keep picking points and the command keeps going until you tell it to stop. The CIRCLE command or RECTANGLE command both do not repeat. So after you make the shape, the command ends and you have to restart the command.
Note: After I run the MULTIPLE command with another command the next time I use the command, it reverts to normal use (without the multiple option). This might be a great use for a LISP routine…
If you use the MULTIPLE command first, it will ask you what command do you want to use in a “multiple” manner. You then enter the command that you want to run. Then that command starts and continually runs until you either hit esc. or <enter>.
In the animated picture:
- I make 2 circles without the multiple command to show that the circle command does work normally.
- MULTIPLE <enter>
- CIRCLE <enter> to define what command is to be used with the multiple option.
- Then i pick a number of circles repeatedly without restarting the command.
- I then start the MULTIPLE command again
- REC <enter> to define the RECTANGLE command with the multiple command.
- Then I pick 2 points to make a number of rectangles
Hi! I tried making a lisp using the MULTIPLE command for repeating the PLINE command. I’m super new to lisps so go figure mine didn’t work.
(Defun C:MPL ()
(command “multiple” “pline” “”)
(princ)
)
Know where I’m going wrong?