## 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 simple 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.

Note: 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 part program.

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 part program after execution.

- When you set SHOW=NO, generated commands will not appear in Summary mode, Command mode, or DMIS mode (commands still appear in the inspection report, however). Also, PC-DMIS will not save any generated commands with the part program.

- When you set SHOW=YES, then generated commands appear in the part program and PC-DMIS will save generated commands with the part program. The default is SHOW=YES for part program compatibility from previous versions.

The PC-DMIS Manual Basic Language Help File completely describes this add on package. If you did not receive a copy of the help file with your Basic Language package, please 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