Inserting BASIC Scripts

The Basic Language Extension to PC-DMIS provides a powerful extension to the software’s functionality. Basic language scripts or applications may be written from within PC-DMIS (or imported from elsewhere) and linked to a button on a user-definable toolbar, allowing the execution of powerful macros. The version of Basic featured in supported versions of PC-DMIS provides all of the features of a high-level language, including custom dialogs (created using the built in Dialog Editor), ODBC support, and OLE support.

The ability to create and use basic scripts comes as a standard feature in PC-DMIS CAD and PC-DMIS CAD++. It is not available in PC-DMIS Pro.

The Edit window command line for a sample script reads:

SCRIPT/FILENAME = C:\PCDMISW\sample.bas
FUNCTION/Main,SHOW=YES,,
ENDSCRIPT/

The FILENAME= field lets you specify the pathway to the BASIC file (.bas filename extension) that you want to insert and execute with the measurement routine.

The FUNCTION/Main field runs the "Main" subroutine. You can change this to specify a different subroutine or function in the BASIC file to run.

The SHOW= field lets you determine whether or not commands automatically generated by your Basic Script appear in your measurement routine after execution.

The PC-DMIS Basic Language Help File completely describes this add-on package. If you did not receive a copy of the documentation with your Basic Language package, contact your PC-DMIS software support representative.

More:

To Insert a Basic Script as a Command

To Insert a Basic Script as a Menu or Toolbar Item

Passing Variables To and From BASIC Scripts

Using the Basic Script Editor