%getlocallist keyword (SDL script)
This keyword gets the Modeler items from a local list. A local list can exist only in the context of the generation template for which the local list is declared.
* 
You set the content of a local list through the %setlocallist. Before setting a global local list, you must declare it using the %locallist keyword.
Syntax
%getlocallist "<name of local list>"
This example works in the context of a Class. The For loop processes each Attribute of the Class in turn. For each loop, the CurrentObject local list is set to the current Attribute and then the ChildAttributes global list is appended with the CurrentObject local list.
%setlist "ChildAttributes" = ""
%for "Attribute"
%setlocallist "CurrentObject" = "This"
%setlist "ChildAttributes" = %getlist "ChildAttributes" + %
getlocallist "CurrentAttribute"
%endfor
Was this helpful?