1. Creating a New Antenna Model

When you launch cocoaNEC for the first time, you will be presented with only the Menu Bar. To create a new antenna model using the programming interface, pull down the File Menu and select New NC Model.

cocoaNEC will create a new, untitled NC window.
Name your antenna model by selecting the Save As... (command-shift-S) item in the File Menu. When the Save NC model dialog window appears, enter "dipole" into the Save As field, and choose the Desktop as the location for the file, as seen below.

Click the Save button in the dialog window to rename your empty model to "dipole." This will create an NC file called dipole.nc on your Desktop. The title bar of the window will also change to "dipole."

At a future date, if you want to use the same antenna model, select Open NC Model... in the File Menu and direct the open file dialog to this model file. If the model was used in the recent past, you might also find a convenient link to it in the submenu of Recent NC Models in the File Menu.

You enter the NC program in the editor on the NC Source tab of the NC window. The editor numbers the lines and colors the keywords, numbers and strings of your program. You can copy from and paste into the editor.

The editor uses a fixed-width font at 13 points. To change the font for all of the text in the editor, right-click in the editor to open the context menu, then select Font > Show Fonts to open the Font Chooser. The new font applies to that window until you close it. The next window you open uses the default font again.

If you change the font, choose another fixed-width font so that the lines of your program stay aligned:

Next: Writing an NC Program...