Scripting

swb get_assignment_value (Tcl Script API Function)



The swb get_assignment_value function has the following format:

Syntax swb get_assignment_value <section_identifier> <source> <destination> <variable>
Arguments

<section_identifier>

The name of the section in the Software Build Settings File (.fsf) where you want to get the value(s) for an assignment. If you want the assignment value(s) for all possible sections in the Software Build Settings File, use empty double quotation marks ("").

<source>

If required, the first statement in a range of statements that contain the assignment. If there is no range, or you want the assignment value(s) for all possible statements, use empty double quotation marks ("").

<destination>

The statement containing the assignment, or, for a range of statements, the last statement in the range. If you want the assignment value(s) for all possible statements, use empty double quotation marks ("").

<variable>

The keyword of the assignment with the value(s) you want.

Return Value
Code Name Code String Return
TCL_OK 0 <value(s)>
TCL_ERROR 1 project has no active software build setting
TCL_ERROR 1 no project is currently open
TCL_ERROR 1 wrong # args: should be "get_assignment_value section_id source destination variable"
Description Returns the value(s) for the specified assignment in the specified section(s) and statement(s) of the project's current Software Build Settings File.


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.