How to Insert a Block from a Drawing Lisp
If you are programming a visual item using the Lisp language, you may be doing so through a Drawing Lisp (drawing.lisp) file. This allows users to create static visual layouts through the Lisp language. You can insert “Block” commands around any visual element (though it works best with rectangles) to separate it from the rest of the layout. This doesn’t change how it looks to the end user, but makes it easier for you, the programmer, to move it around while coding.
Instructions
-
-
1
Open your Drawing Lisp file in your Lisp editor.
-
2
Find the element you want to make a block. You can make as many elements as you like blocks. In many occasions, you might want to make everything a block so that they can be edited independently of each other.
-
-
3
Type “BLOCK-DEMO” before the element and “?” after (no quotes). If you just want a basic, one-layer block, you are done. If you want blocks within blocks, continue to the next step.
-
4
Type “BEFORE-OUTER” before the outer layer of the block. This will generally be the next line after “BLOCK-DEMO.” Type “BEFORE-INNER” before the inner layer.
-
1