You can add menu items to PFE to compile and/or link the macro you
are working on. This is handy when debugging. No more need to switch
back and forth from your editor to a dos session to compile then back
to the editor. You can do editing, compiling and linking directly from
your editor. Here is how...
Under the Options menu item select Preferences. Under Category locate
the item for 'Execute Menu' and highlight it. Select New from the buttons
on the bottom of the dialog.
Under 'Menu item' enter the name you want to see on PFE's menu for your
macro. For example 'Build DCS File'
Under 'Command' insert the command that you wish to execute. For example
to compile a DCAL source file (*.dcs) insert the command: dcc %U\%P\%N.
The %U%P%N inserts the current file path and name automatically.
Next under Working Directory enter the path to the DCAL compiler and/or
linker (DCC.exe or DCL.exe) Typically this is something like C:\DATACAD\DCAL.
Check the 'First check for unsaved files' checkbox to ensure recent
changes are saved prior to compilation or linking.
Select the 'Autoscroll window to end of output' and 'reuse any existing
output window' checkboxes to have the error codes pasted into an UltraEdit
window and scroll to the end to see if your compilation or linking was
successful.
Save your changes and you will now see the new macro listed under the
Execute menu item. When you need to run the macro you just created on
your source code simply select it from the execute menu.
Thank you for printing this page. Please feel free to contact us for further assistance. You can call our sales department at +1 (800) 394-2231, Monday through Friday from 8:00 a.m. to 5:00 p.m. Eastern time or send an e-mail message to info@datacad.com.