Provides access to members that set information for this NetWeight object.
| Description | ||
|---|---|---|
![]() |
BitGateSize | Bit gate size of the network weight described by this NetWeight object. |
![]() |
BitGateSize | Bit gate size of this NetWeight object. |
![]() |
WeightID | Internal ID of the network weight described by this NetWeight object. |
![]() |
WeightName | Name of the network weight described by this NetWeight object. |
![]() |
WeightName | Name of this NetWeight object. |
![]() |
WeightType | Type of network weight described by this NetWeight object. |
![]() |
WeightType | Type of network weight of this NetWeight object. |
| Interfaces | Description |
|---|---|
| INetWeight | Provides access to members that get information about the network weight described by this NetWeight object. |
| CoClasses and Classes | Description |
|---|---|
| NetWeight | A container for defining a weight on the network. |
To add this weight to your logical network you need to use INetSchemaEdit::AddWeight .
The INetWeightEdit interface is only for adding weights to a stand-alone logical network. For creating weights when building a geometric network, use the Build Geometric Network Wizard, or the AddWeight method on the NetworkLoader object.
You can create a new weight through the following code:
Dim pNetWeight As INetWeight
Dim pNetWeightEdit As INetWeightEdit
Set pNetWeight = New NetWeight
Set pNetWeightEdit = pNetWeight
pNetWeightEdit.WeightName = "WeightOne"
pNetWeightEdit.WeightType = esriWTInteger
If you want to create a bitgate weight there is one more parameter you need to specify. The following code shows you how to create a bitgate weight.
Dim pNetWeight As INetWeight
Dim pNetWeightEdit As INetWeightEdit
Set pNetWeight = New NetWeight
Set pNetWeightEdit = pNetWeight
pNetWeightEdit.WeightName = "Size"
pNetWeightEdit.WeightType = esriWTBitGate
pNetWeightEdit.BitGateSize = 10
INetWeightAssociationEdit Interface | INetWeightAssociation Interface | INetWeightEdit Interface | INetWeight Interface