Extending product function with VBA > The System Architect object model > Object model classes > Diagram class > Diagram class: Methods > SetProperty
  
SetProperty
The setting of a diagram property value requires the name of the property as the first argument and the value to set as the second. The property names are found in the saprops.cfg and usrprops.txt files.
Parameters
Often the real name of a property is not the same as what shows up on a definition dialog; for example, in an Elementary Business Process of a Process Chart diagram, the Locations property is actually a rename; the real property is Location Types. You would only know this if you looked up the definition of an Elementary Business Process in saprops.cfg and saw that the property is actually called Location Types but has been labeled Locations":
Property "Location Types" { Edit Listof "Location" Label "Locations" LENGTH 2000 HELP "Supporting Location Types (Matrix)" READONLY }
Syntax
Diagram Object.SetProperty Name, value
Parameters
Diagram Object
Use: Required
Data type: Object
Any instantiated Diagram class
Name
Use: Required
Data type: String
The Name of the property as seen in the saprops.cfg
Value
Use: Required
Data type: String
Value of diagram property
See also
Diagram class: Methods