Missing something elementary about macro syntax
I'm missing something dreadfully simple here. I've got the following trivial macro:
MACRO mybox
LWIDTH 0.1
BOX 2,2 3,3
ENDM
I save that to a file, load the macros from that file, and run it, but nothing happens. (And yes, it's a small map - so I should see the box even though it's small.) What am I not doing here?
MACRO mybox
LWIDTH 0.1
BOX 2,2 3,3
ENDM
I save that to a file, load the macros from that file, and run it, but nothing happens. (And yes, it's a small map - so I should see the box even though it's small.) What am I not doing here?
Comments
1) Tools->Edit Macros, and adding the above lines to the end of the fcw32 macro file (without the extra lines)
2) Tools->Load Macros to load the same file (probably unnecessary)
3) Typing "mybox" and hitting Enter.
Nothin. No box, no error message, nothin. I also tried with semicolons at the end of the two commands. Clearly I'm missing something rather elementary here.
I copied the lines from your post and pasted into my macro file the same way you describe (Except that I skipped step 2, which is not required). I then removed the empty lines (Before I did that, CC3 only crashed when trying the command)
Make sure your current colour is set to something visible though. Since your macro doesn't change this, the box is drawn using the current one.
Your fill style isn't set to "Hollow" with no outline by any chance? That would make the macro draw an object that is invisible.
Make sure your current colour is something visible, that the line style (LS) is set to "Solid", and that the fill style (FS) is also set to "Solid". Neither of these should be the problem if you can draw it manually though, but I am kind of running out of ideas here. The macro works perfectly on my computers, drawing a very tiny square at the designated coordinates.
You can also look for invisible objects by using the Info -> List command, and drag a selection rectangle around the entire area the box is supposed to be drawn in. If there is something there, the status line should show it, and when you complete the command, the lsit window should show the object details.