@Kent1Cooper wrote:
.... Shouldn't that be multiplying 'ht' by the negative of one less than the denominator number, not always by -2 ?
Doesn't it need to write a blank line "" at the end for the file to work properly?
On the first one, it needs to be that way if the element (tile, brick, board, etc.) size is to remain the same. On the second, it doesn't -- the (write-line) function includes "Enter" at the end of the line it writes, so the empty blank line at the end of the file is there just from the last line of code it adds.
Attached is RunningBondStaggerPAT.lsp to generate pattern definitions like this, where the User specifies the dimensions of the elements and the fraction of length to stagger them by. You can determine the direction of the stagger by the sign of the stagger-fraction denominator. So far, it only works where the stagger fraction is 1 over an integer. It can even accept a denominator of 1, which produces stack bond, i.e. a "stagger" of a whole element length. It may be possible to allow for other fractions of stagger, such as 2/5, 3/10, etc., but I haven't yet thought much about how to work out the pen-down-pen-up cycling for that.
BEFORE YOU LOAD IT, heed the EDIT instruction about the filepath location for the .pat file.
EDIT: I decided there wasn't any reason the "Length" [horizontal dimension of elements when used at 0 rotation] needs to be greater than the "Width" [vertical] -- it can make patterns like this:
So I changed the prompts a little, and replaced the file.
Kent Cooper, AIA