2004-02-06 12:40 AM
2004-02-10 06:35 PM
2004-02-11 06:28 AM
2004-02-11 01:37 PM
2004-02-11 03:49 PM
Michele wrote:
Is this how this code reads? I thought I understood the FOR NEXT loopp but I guess I don't.
GOSUB 100 !draw the first cmu block
FOR k=0 TO A STEP no_cmu !now copy the next lines and keep
! doing until you reach the no_cmu number
ADD2 0,8" !go up 8" in the y direction
GOSUB 100 !draw one cmu here
DEL 1 !start at beginning position
NEXT k !Start again at the ' FOR k=0 TO A Step ...' line
END:
100: !draws the cmu block
When I do this I only get 2 cmu blocks, even if no_cmu = 6
THanks,
Michele
2004-02-12 04:36 AM
Matthew wrote:This wall would be 13.5 courses high. According to the INT(b/unit_ht) equation with a result of 13.
Try it like this:
unit_ht = 8"
no_cmu = INT(b/unit_ht)
FOR i=1 TO no_cmu ! STEP 1 is the default
GOSUB 100
ADD2 0, unit_ht
NEXT i
unit_ht = b MOD unit_ht
GOSUB 100
This will add a partial height (cut) block to the top of the stack to match the actual height you stretch it to.
END:
100: !draws the cmu block
unit_ht = b MOD unit_htBut this value is read as metric not imperial which was what the 8" was.
2004-02-12 05:14 AM
tsturm wrote:
But this value is read as metric not imperial which was what the 8" was.
So did I miss something?
Why not use the FRA command to get the remainder?