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 > %setcustom keyword (SDL script)
  
%setcustom keyword (SDL script)
This keyword sets the property value of the current item in Modeler. The property can be a standard or extended property .
The current item is derived as follows:
ACS calls the top-level Generate.sdl generation template for each item (Model, Package or Class) that is selected either directly or indirectly for generation. On entering the Generate.sdl generation template, the selected Model, Package or Class is the current item.
The current item remains as the selected Model, Package or Class until a For loop iterates a collection of linked items or items in a list. During a For loop, the current item is the item that is currently being iterated.
After leaving a For loop, the current item reverts to the item that was the current item before entering the For loop.
Syntax
%setcustom "<property name> = "<value>"
For more information about the automation interface names of property names, see Object Attributes and associations under the Automation Interface chapter of the Integrity Modeler Help, and then click the required item type.
In this example, an Attribute named Attribute1 is being processed when the following code is encountered:
%setcustom "Description" = "My Description"
The Description property of Attribute1 in Modeler is set to 'My Description'.