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 > System variables > sysRootObject system variable (SDL script)
  
sysRootObject system variable (SDL script)
The sysRootObject system variable (a global list) returns the item that is selected as the Root Object in Modeler on the Launch ACS/TDK dialog.
This system variable is useful when working out relative paths to the root object.
In this example, the Target list is set to the sysHeaderExtension system variable list.
%setlist "Target" = %getlist "sysRootObject" * %getlist "sysRootObject"