next up previous contents index
Next: Variables Up: Main Functions 1 Previous: Scripts   Contents   Index

Technology File

GetTechName()
This returns a string containing the current technology name, as set in the technology file with the Technology keyword.

(string) GetTechExt()
This returns a string containing the current technology file name extension.

(int) SetTechExt(extension)
This sets the current technology file extension to the string argument. It alters the name of new technology files created with the Save Tech button in the Attributes Menu.

(int) TechParseLine(line)
This function will parse and process a line of text is if read from a technology file. It can therefor modify parameters that are otherwise set in the technology file, after a technology file has been read, or if no technology file was read.

However, there are limitations.

  1. There is no macro processing done on the line, it is parsed verbatim, and macro directives will not be understood.

  2. There is no line continuation, all related text must appear in the given string.

  3. The print driver block keywords are not recognized, nor are any other block forms, such as device blocks for extraction.

  4. Layer block keywords are acceptable, however they must be given in a special format, which is
    [elec]layer layername layer_block_line...
    i.e., the text must be prefaced by the layer/eleclayer keyword followed by an existing layer name. Note that new layers must be created first, before calling this function.

If the line is recognized and successfully processed, the function returns 1. Otherwise, 0 is returned, and a message is available from GetError.

(int) TechGetFkeyString(fkeynum)
This function returns the string which encodes the functional assignment of a function key. This is the same format as used in the technology file for the F1Key - F12Key keyword assignments. The argument is an integer with value 1-12 representing the function key number. The return value is a null string if the argument is out of range, or if no assignment has been made.

(int) TechSetFkeyString(fkeynum, string)
This function sets the string which encodes the functional assignment of a function key. This is the same format as used in the technology file for the F1Key - F12Key keyword assignments. The first argument is an integer with value 1-12 representing the function key number. The second argument is the string, or 0 to clear the assignment. The return value is 1 if an assignment was made, 0 if the first argument is out of range.


next up previous contents index
Next: Variables Up: Main Functions 1 Previous: Scripts   Contents   Index
Stephen R. Whiteley 2022-05-28