DiveLine Functions in DIAL

The diveline functions in DIAL manage connections to a DiveLine server.

Example:

diveline.set_webdir("/di/solution/dl-dataroot/webdir");

diveline.connect("localhost", "dial_user");

diveline.set_project("myProject");

 

console.writeln("Opening sales.dvp...");

model.open(mymodel,"/models/an_sales.dvp");

console.writeln("Done!");

 

diveline.disconnect();

 

NOTES:

  • If DiveLine files are open before the set_project function, those files are closed by that function call.
  • When connecting to a 7.x DiveLine server, if the set_project command is not specified in the DIAL script, the 6.4 Diveline Namespace project opens.
  • Once the project is set, refer to files in the project by their absolute path inside the project. For example:
  • marker.open(MARKER_,"/client-files/mthly.mrk");
  • Workbench resolves the path to a DIAL script in a project, so it can pass the local file system path to the DIAL interpreter, which then runs as in previous versions.
  • Certain functions use DiveLine paths (for example marker.save()) while other functions use local file system paths (for example marker.save_text()).