Extending product function with VBA : The System Architect object model : Object model classes : Encyclopedia class : Encyclopedia class: Methods : CreateDefinition
  
CreateDefinition
Creates an instance of the definition class with a specified definition name and definition type.
Syntax
Encyclopedia Object.CreateDefinition(Name, SAType)
Parameters
Encyclopedia Object
Use: Required
Data type: Object
Any instantiated Encyclopedia class
Name
Use: Required
Data type: String
Name of new definition
SAType
Use: Required
Data type: Long
Type of System Architect definition that is being created (for example, DFXPROCESS or 3)
Notes
See the DEFNS.BAS file in the System Architect directory for a complete listing of all SA definitions and their internal constant names and numbers.
To create a System Architect definition, you must invoke the definition’s Save method, or else the new definition will be deleted when the encyclopedia is closed.
See also
Encyclopedia class: Methods