%ucustom keyword (SDL script)
This keyword returns the value of a standard or extended property for the current item. The value is returned as an all uppercase string.
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.
* 
You can use the %lcustom keyword to return a property as all lowercase and the %custom keyword to return a property with the case unchanged.
Syntax
%ucustom "<property name>"
Where <property name> is the automation interface name of the item property. For more information about the automation interface names of properties, see Object Attributes and associations under the Automation Interface chapter of the Windchill Modeler Help, and then click the required item type.
In this example, the value of the Access property is returned. If the Access property is set to 'Public', the returned value is 'PUBLIC'.
%ucustom "Access"
Was this helpful?