| !Run file for !SchemEd Schematic Editor

If "<Wimp$ScrapDir>" = "" Then ERROR The SchemEd application needs the !Scrap resource to run.

If "<Choices$Write>" = "" Then ERROR The SchemEd application needs the Choices$Write resource to run.

IfThere <Wimp$ScrapDir>.SchemEd Then Wipe <Wimp$ScrapDir>.SchemEd R F ~C ~V
CDir <Wimp$ScrapDir>.SchemEd
Set SchemEd$Scrap <Wimp$ScrapDir>.SchemEd

| Initialise Project folder specification
Set SchemEd$Project <SchemEd$Scrap>

Set SchemEd$Dir <Obey$Dir>
Set SchemEd$Choices <Choices$Write>.SchemEd
Set SchemEdRes$Dir <SchemEd$Dir>.Resources
Set SchemEdSpice$Dir <SchemEdRes$Dir>.BSpice
Set SchemEdSpiceLib$Dir <SchemEdSpice$Dir>.Library

| You can add extra directory names below to be searched for filenames
| passed to bspice3f5 in .INCLUDE commands.
| Note the '|' escape characters before any angle brackets. These prevent
| unnecessary expansion into full file pathnames by the bspice3f5 program.
| Note also the trailing '.' on each directory name and the
| element-separating commas with no additional whitespace separation.

| Do not alter first two elements of the path, add new elements on end.
| Make same changes in !Boot file.

Set SpiceResource$Path |<SchemEd$Project>.inc.,|<SchemEdSpiceLib$Dir>.

| Directories are searched from left to right and the first occurence will
| be the one that is .INCLUDE'ed by bspice.
| If the requested file is not found in any of the specified directories
| then the CSD will also be searched.

Set BSpice$Dir <SchemEdSpice$Dir>.Support

| This one is used for handshaking with BSpice binary to ensure that SchemEd
| reliably picks up underlying bspice3f5 task handle when simulation time
| is very short.
Unset BSpice$TaskStarted
|

Iconsprites <SchemEd$Dir>.!Sprites

Set File$Type_AC7 Circuit
Set Alias$@RunType_AC7 "Run <SchemEd$Dir>.!Run %%*0" 
Set Alias$@PrintType_AC7 /<SchemEd$Dir> -Print 

RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 Error This application requires CallASWI 0.02 or later
RMEnsure FPEmulator 4.03 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 4.03 Error This application requires FPEmulator 4.03 or later
RMEnsure SharedCLibrary 5.17 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.34 Error This application requires SharedCLibrary 5.34 or later

RMEnsure BorderUtils 0.00 RMEnsure WindowManager 3.17 RMLoad System:Modules.BorderUtil

RMENSURE Toolbox    0.00  RMLOAD System:modules.toolbox.toolbox
RMENSURE Toolbox    1.36  ERROR You need Toolbox 1.36 or later to run SchemEd
RMENSURE Window     0.00  RMLOAD System:modules.toolbox.window
RMENSURE Window     1.31  ERROR You need Window 1.31 or later to run SchemEd
RMENSURE Menu       0.00  RMLOAD System:modules.toolbox.menu
RMENSURE Menu       0.24  ERROR You need Menu 0.24 or later to run SchemEd
RMENSURE Iconbar    0.00  RMLOAD System:modules.toolbox.iconbar
RMENSURE Iconbar    1.12  ERROR You need Iconbar 1.12 or later to run SchemEd
RMENSURE ProgInfo   0.00  RMLOAD System:modules.toolbox.proginfo
RMENSURE ProgInfo   0.09  ERROR You need ProgInfo 0.09 or later to run SchemEd
RMENSURE SaveAs     0.00  RMLOAD System:modules.toolbox.saveas
RMENSURE SaveAs     0.12  ERROR You need SaveAs 0.12 or later to run SchemEd
RMENSURE Scale      0.00  RMLOAD System:modules.toolbox.scale
RMENSURE Scale      0.11  ERROR You need Scale 0.11 or later to run SchemEd
RMENSURE DCS        0.00  RMLOAD System:modules.toolbox.dcs_quit
RMENSURE DCS        1.06  ERROR You need DCS 1.06 or later to run SchemEd
RMENSURE ColourDbox 0.00  RMLOAD System:modules.toolbox.colourdbox
RMENSURE ColourDbox 0.15  ERROR You need ColourDbox 0.15 or later to run SchemEd
RMENSURE FileInfo   0.00  RMLOAD System:modules.toolbox.fileinfo
RMENSURE FileInfo   0.15  ERROR You need FileInfo 0.15 or later to run SchemEd
RMENSURE TextGadgets  0.00  RMLOAD System:modules.toolbox.textgadget
RMENSURE TextGadgets  0.20  ERROR You need TextGadgets 0.20 or later to run SchemEd

Wimpslot -min 440k -max 440k

/<SchemEd$Dir>.!RunImage %*0