Introduction to extending SA with VBA
Automating System Architect
Using Microsoft VBA’s Object Browser
Programming System Architect with Microsoft VBA
Running a macro
Loading a macro project
Macros provided with System Architect
Sample.mac
Running the Sample.mac project
Check encyclopedia naming standards
Color selected symbol relationships
Enable balance Gane and Sarson diagrams on flow connections
Disable balance Gane and Sarson diagrams on flow connection
Display encyclopedia path
Enforce symbol naming standards
Move between results and events
Print selected diagrams
Select different printer
Show help form
SetAcV2Props.mac
Run a macro on starting System Architect
Macro projects
Adding a new project
Accessing the VBA Editor
The Project Explorer
The Properties window
Inserting modules and forms
Automation and System Architect
Automation
Automation controller and server
Referencing the type library
Viewing automation objects
Creating an instance of the application
Releasing the application instance
Summary
Customizable solutions
Planning an automated solution with System Architect
Control behavior
Controlling appearance
Automate tasks
Enforce controls
Interface between external applications
Automation of macro projects with VBE
The System Architect object model
Object model classes
Application class
Application class: Attributes
Encyclopedia
MousePointer
Visible
Application class: Methods
AssignBMPtoMaroItem
BrowserRefresh
CreatePopUpMenu
InsertMacroItemInMenu
InsertMacroItemInMenuEx
InsertPopUpMenuItemInMenu
InsertPopUpMenuItemInMenuEx
Interface
OpenEncyclopedia
OpenEncyclopediaUsingConnectionString
OpenEncyclopediaUsingDisplayName
RemoveItemFromMenu
RemovePopUpMenu
ResetPanelBackGround
SetSeparatorBefore
WriteStatusLine
WriteStatusLineEx
Definition class
Definition class: Attributes
AuditID
CheckedOut
ddID
Encyclopedia
Frozen
Handle
Locked
MetaItem
Name
ReadOnly
SAClass
SAType
TypeName
UpdateDate
UpdateTime
xml
Definition class: Methods
Delete
GetField
Get metric
GetProperty
GetPropertyAsCollection
GetRelatedObjects
GetXML
Save
SetField
SetProperty
Definition fields
Definition metrics
Diagram class
Diagram class: Attributes
AuditID
CheckedOut
ddID
Encyclopedia
Frozen
Handle
Hidden
Locked
MetaItem
Name
Picture
ReadOnly
SAClass
SAType
TypeName
UpdateDate
UpdateTime
xml
Diagram class: Methods
AcceptDropOfObject
AcceptDropOfObjectAt
AcceptDropOfType
AcceptDropOfTypeAt
CreateSymbol
Delete
GetAllSymbols
GetField
GetFilteredSymbols
GetMetric
GetParentSymbol
GetProperty
GetPropertyAsCollection
GetRelatedObjects
GetSymbolById
GetXML
Hide
RefreshForRepresentationalConsistency
RefreshForRepresentationalConsistency2
Save
SetField
SetProperty
Show
Diagram fields
Diagram metrics
Encyclopedia class
Encyclopedia class: Attributes
Application
ConnectString
FullName
MetaModel
Name
OpenObjectsAsReadOnly
Path
Xml
XmlEx
Encyclopedia class: Methods
CloseUnLock
CloseUnLockCommit
CreateDefinition
CreateDiagram
CreateSymbolForExplorerDiagram
GetAllDefinitions
GetAllDiagrams
GetCurrentDiagram
GetDefinitionById
GetDiagramById
GetFilteredDefinitions
GetFilteredDiagrams
GetRelationMetric
GetXML
OpenLock
RenameItem
SetXML
SetXMLEx
Workspace methods
Workspace application class calls
Workspace application class events
Relation metrics
MetaClass class
Class
ClassName
MetaItems
MetaModel
SupportedMetaItems
MetaItem class
Addressable
AssignedSymbolTypes
bCanBeDeleted
bCanBeEdited
bCanBeNewed
Class
ClassName
DefinedByMetaItem
DepictionDiagramFileName
DepictionMenuFileName
DepictLikeTypeNumber
DepictsLikeType
ExplicitRel_ConnectionTuples
ExplicitRel_GetDetails
ExplicitRelDef_HasConnects
FromDefProperty
FromTagProperty
HostRefProp
MetaClass
MetaGroups
MetaPages
MetaProperties
IsExplicitRelation
IsReadOnly
IsVisible
PosRestrictInsideEdge
PosRestrictOutsideEdge
RepresentedBy
Represents
SizeRestrictAllowed
SizeRestrictSpecified
sMode
SubTypeOf
SubTypeOf2
SubTypes
SupportedEmbeddedMetaItems
SupportedMetaItems
ToDefProperty
ToTagProperty
TypeName
TypeNumber
ValidConnections
MetaModel class
Encyclopedia
MetaClasses
MetaExplicitRelConnTuple class
MetaExplicitRelDetail class
MetaGroup class
MetaKeyedBy class
MetaProperty class
MetaRepresents class
Symbol class
Symbol class: Attributes
ArrowAtEnd
ArrowAtStart
AuditID
ddId
Definition
Diagram
Encyclopedia
FillColor
FontColor
FromCardinality
Handle
LineStyle
MetaItem
Name
PenColor
PenStyle
SAClass
SAType
Selected
ToCardinality
TunnelAtEnd
TunnelAtStart
TypeName
UpdateDate
UpdateTime
Xpos
Xsize
Ypos
Ysize
Symbol class: Methods
ConnectFrom
ConnectTo
Delete
GetChildDiagrams
GetField
Get metric
GetProperty
GetPropertyAsCollection
GetRelatedObjects
Save
SetField
SetProperty
Symbol fields
Symbol metrics
System Architect collections
OfCollection class
Name
Count
Item
Add
Clear
Remove
SetProperty
SACollection class
Count
Item(Index)
SAObjects class
Complete
Count
Encyclopedia
Item(Index)
IsMoreThan(Index)
ReadAll
System Architect events
AuditIDChanged
DiagramClose
DiagramOpen
DiagramSave
EditDefinitionPostApply
EditDefinitionPostOK
EncyClose
EncyOpen
MainMenuUpdate
MethodMenuUpdated
ReportsMenuUpdate
ToolsMenuUpdate
ShowNode
ShutDown
StartUp
SymbolEvent
Guidelines for adding macro items to menus programmatically
Adding a macro to a standard System Architect menu
Using the events
Adding a popup
Adding macro items to a popup
Adding a popup to a System Architect menu
Adding a separator to a menu item
Removing an item from a menu
System Architect relationships
Handling events in field types
System Architect errors
Handling errors
System Architect errors
Samples
Diagram_AddItems
Diagram_AddItemsAtLocation
Diagram_Explorer_AddItem
Introduction to extending SA with VBA
Diagram_Explorer_AddItem
This site works best with JavaScript enabled