AutoLISP / Visual LISP

Comments Off on AutoLISP / Visual LISP

“`lisp
(print “Hello World!”)


**Explanation:** * `print` is a built-in function in Visual LISP (and AutoLISP) that displays a value on the console. * The text `"Hello World!"` is enclosed in double quotes, indicating that it is a string literal. **How to run this code in AutoCAD:** 1. **Open AutoCAD.** 2. **Open the Visual LISP Editor:** Type `vlisp` in the command line and press Enter. This will open the Visual LISP editor. 3. **Type the code:** Type the code `(print "Hello World!")` into the editor. 4. **Execute the code:** Press Ctrl+Enter to execute the code. You should see "Hello World!" printed in the AutoCAD command line. **Alternative (using `(princ)`):** You can also use `(princ)` which is similar to `print` but often preferred for simple output. ```lisp (princ "Hello World!")

The difference between print and princ is subtle. print is generally used for more complex output scenarios, while princ is a more straightforward way to print to the console. For this simple “Hello World!” example, either will work.

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns AutoLISP / Visual LISP programming language, beautiful background, magnificent scenery, Timur Novikov style, HD, sharp focus, stunningly beautiful, anime artwork, anime style, key visual, vibrant, studio anime, highly detailed

Negative prompt
photo, deformed, black and white, realism, disfigured, low contrast, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: gemma3

Image model: Shuttle3Diffusion