"command" shows all steps on a single line without carriage returns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I perform a command ("insert" for example) in AutoCAD, each step is shown on a separate line.
When I perform the same actions in a lisp, several of the commands are shown on a single line, which is hard to read.
--- Example (output using the command line): ---
-insert
Enter block name or [?]: motor
Units: Unitless Conversion: 1.000000
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: s
Specify scale factor for XYZ axes <1>:
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]:
Specify rotation angle <0.00000000>:
--- Example (output using lisp): ---
-insert Enter block name or [?] <motor roof>: h:/blocks/MOTOR.dwg
Units: Unitless Conversion: 1.000000
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: s Specify scale factor for XYZ axes <1>: 1 Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]:
Specify rotation angle <0.00000000>:
Note how in the second example, the insertion point and scale factor are all displayed on the same line, resulting in a confusing output. The carriage return after "insert" is also missing.
This is my lisp code:
(command "-insert" "h:/blocks/MOTOR.dwg" "s" bs pause pause "")
"bs" is a previously defined variable.