I'll suggest the following. Create a Maple module, with option package, and with exports of the desired constants, procedures. Save this to an mla as a Maple toolbox. You will then be able to access any of the procedures/constants from any worksheet by using the module. Here is example code of how you might do this (it both creates a trivial module and saves it to a toolbox).
# Code to create a simple Maple toolbox for storing constants and whatever (the exports)
MyConstants := module()
SpeedLimit := 65;
# Temporary procedure to create, if needed, the toolbox directory
MakeToolbox := proc(toolbox :: string)
uses FT = FileTools;
dir := FT:-JoinPath([kernelopts('homedir'),"maple","toolbox", toolbox, "lib"]);
if not FT:-Exists(dir) then
# Create directory and path to toolbox mla
dir := MakeToolbox("MyConstants"):
path := FileTools:-JoinPath([dir, "MyConstants.mla"]);
# Save the module (MyConstants) as a toolbox.
You can then access any of the exports (here just one, SpeedLimit) via MyConstants:-SpeedLimit, or do with(MyConstants): and then use SpeedLimit alone. In a procedure you should use a uses statement. If you save all the code above in a worksheet, and then edit the module as desired, you should be able to reexecute it to update the toolbox.
I'm assuming you have a new enough Maple that automatically picks up toolboxes put in the appropriate place. If not, then you'll probably need to create a Maple initialization file and use it to assign the global variable libname to include the path to an mla file. That was always a sticking point for people new to Maple; the use of toolboxes simplifies the operation.