Provides access to members that set information for this NetWeightAssociation object.
| Description | ||
|---|---|---|
![]() |
FieldName | Name of the field that contains the values for this associated weight. |
![]() |
FieldName | Name of the field that contains the values for this weight. |
![]() |
TableName | Name of the table to be associated in this weight association. |
![]() |
TableName | Name of the table to which this weight is associated. |
![]() |
WeightID | Weight internal ID of the weight to be associated in this weight assocation. |
![]() |
WeightID | Weight internal ID of the weight to which this table is associated. |
| Interfaces | Description |
|---|---|
| INetWeightAssociation | Provides access to members that get information about the network weight association described by this NetWeightAssociation object. |
| CoClasses and Classes | Description |
|---|---|
| NetWeightAssociation | A container for defining an association between a network weight and a field in a table. |
The INetWeightAssociationEdit interface is only for adding weight associations to a stand-alone empty logical network. For creating weight associations when building a geometric network, use the Build Geometric Network Wizard, or the AddWeightAssocation method on the NetworkLoader object.
The code below will create a new weight association between the weight with WeightID 1 and the "myWtFld" field of the "myNetTable" table:
Dim pNetWeightAssoc As INetWeightAssociation
Dim pNetWeightAssocEdit As INetWeightAssociationEdit
Set pNetWeightAssoc = New NetWeightAssociation
Set pNetWeightAssocEdit = pNetWeightAssoc
pNetWeightAssocEdit.WeightID = 1
pNetWeightAssocEdit.TableName = "myNetTable"
pNetWeightAssocEdit.FieldName = "myWtFld"
INetWeightAssociationEdit Interface | INetWeightAssociation Interface | INetWeightAssociationEdit Interface | INetWeightAssociation Interface | INetWeightEdit Interface | INetWeight Interface