Description
This the Optionality of the Relationship. Valid values are: 0 = Optional and 1 = 0. Mandatory = 1. DATATYPE: Integer.
Property
...
Type
Syntax
...
Code Block |
---|
|
Public Property OptionalityValue() As Variant |
Example
Sub Main
Anchor |
---|
wp1024442 | wp1024442 | Anchor |
---|
wp1024443 | wp1024443 | Dim d As Diagram
Anchor |
---|
wp1024444 | wp1024444 | Dim m As Model
Anchor |
---|
wp1024445 | wp1024445Dim rel As Relationship
anchorwp1024446 | wp1024446 | Anchor |
---|
wp1024447 | wp1024447 | Set d = DiagramManager.ActiveDiagram
anchorwp1024448 | wp1024448 | Set m = d.ActiveModel
Anchor |
---|
wp1024449 | wp1024449 | Anchor |
---|
wp1024450 | wp1024450'Force every Relationship to be Mandatory and One-To-One or More
anchor
wp1024451 | wp1024451 | Anchor |
---|
wp1024452 | wp1024452 | For Each rel In m.Relationships
anchorwp1024453 | wp1024453 | rel.OptionalityValue = 1
Anchor |
---|
wp1024454 | wp1024454 | rel.CardinalityNo = 1
Anchor |
---|
wp1024455 | wp1024455 | Next rel
anchorEnd Sub
wp1024456 | wp1024456 | Anchor |
---|
wp1024457 | wp1024457 | End Sub