SMC_INCLookup.LookUp (METH)ΒΆ

METHOD LookUp : SMC_ERROR

Looks up a program and initializes the stream with the contents of the program on success. Note that the stream must have the correct type for the used LookUp implementation, for example SMC_FileStream2 for SMC_NCLookupFile.

InOut:

Scope

Name

Type

Comment

Return

LookUp

SMC_ERROR

Inout Const

programName

STRING

The program name of the CNC program to look up. Note that the comparison needs to be done in a case-insensitive way.

Input

stream

SMC_ITextStream

The stream to initialize with the contents of the CNC program.