To create a definition programmatically:
create adefinitionC[by cloningexisting-definition]
class-definition, object-definition, connection-definition, or message-definitionC: a local name
existing-definition: a definition whose type matches definition
Class-name, which reverts to none.
conclude as needed to give the new definition the name, class-specific attributes, and default values that you need.
create action are transient. Definitions must be permanent items before they define classes and can have any instances or subclasses.