Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > SDL script for generating code > Keywords > %setparam keyword (SDL script)
  
%setparam keyword (SDL script)
This keyword sets the value of a local variable that has been passed as a parameter by the calling generation template.
* 
When a generation template is called through the %load keyword, you can specify local variables to pass through the %param keyword. You can get the value of the passed parameter through the %getparam keyword.
Syntax
%setparam "<parameter name>"
In this example, the Class.sdl generation template declares a local variable named nGeneratingCFile. The Class.sdl generation template then loads the Attribute.sdl generation template and passes the nGeneratingCFile local variable as a parameter:
%localnumeric "nGeneratingCFile"
...
%load "Attribute.sdl" %param "nGeneratingCFile"
Through the nGeneratingCFile parameter, the called Attribute.sdl generation template sets the Class.sdl generation template's nGeneratingCFile local variable to 1:
%setparam "nGeneratingCFile" = 1