ISIAPINetworkFolder Interface¶
Namespace: SIDRASolutions.SI.API
Assembly: SIDRASolutions.SI.API.dll
COM CLSID: C9D53985-EBE9-45CC-8880-3A5684768C62
NetworkFolder wrapper interface
Declaration¶
Get an instance¶
Properties¶
Name¶
NetworkFolder name
Type string
Value
The NetworkFolder name, max length = 100.
Code samples
Position¶
This NetworkFolder Position in the collection. It is a zero-base integer.
Type int
Code samples
Networks¶
Collection of Networks in this NetworkFolder
Type ISIAPINetworks
Value
Networks collection
Code samples
Project¶
Type ISIAPIProject
Code samples
Methods¶
AddNetwork(int)¶
Add a new Network into this NetworkFolder. The new Network does not include any Sites. It is created by using a Standard Software Setup.
Parameters
| Name | Type | Description |
|---|---|---|
softwareSetup |
int |
One of: - Standard Software Setup that is used to create the Network - 1 - Standard Left - 2 - New Zealand - 3 - New South Wales - 4 - Standard Right - 5 - US HCM (Metric) - 6 - US HCM (Customary) |
Returns ISIAPINetwork - The new added Network.
Code samples
AddNetwork(string)¶
Add a new Network into this NetworkFolder. The new Network does not include any Sites. It is created by using a User Software Setup or a Standard Software Setup. The Software Setup is identified by the string parameter softwareSetupSignature.
Parameters
| Name | Type | Description |
|---|---|---|
softwareSetupSignature |
string |
The signature string of a User Software Setup or a Standard Software Setup. |
Returns ISIAPINetwork - The new added Network.
Code samples
RemoveNetwork(ISIAPINetwork)¶
Remove a Network from this NetworkFolder.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to remove. |
Returns bool - true if the Network is successfully removed; otherwise, false. This method also returns false if the Network does not exist in this Project.
Code samples
CloneNetwork(ISIAPINetwork)¶
Clone a Network.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to be cloned. |
Returns ISIAPINetwork - The new cloned Network.
Remarks
This funciton will create a new Network with the same Sites as those in the original Network, i.e. the Sites will not be cloned.
Code samples
CloneNetworkWithSites(ISIAPINetwork)¶
Clone a Network with its Sites.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to be cloned. |
Returns ISIAPINetwork - The new cloned Network.
Remarks
This function will clone the Network and its Sites as well, i.e. there will be new cloned Sites in the new cloned Network.
Code samples
MoveNetworkTo(ISIAPINetwork, int)¶
Move a Network to a new position in the same NetworkFolder.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to move. |
newPosition |
int |
The zero-based position that the Network should be moved to. |
Returns bool - true if the Network is successfully moved; otherwise, false. This method also returns false if the Network does not exist in this Project.
Code samples
MoveNetworksToFolder(string, ISIAPINetworkFolder)¶
Move Network(s) from this Network Folder to another Network Folder in this Project.
Parameters
| Name | Type | Description |
|---|---|---|
networkNames |
string |
The name(s) of the Network(s) to move. Use semicolon ";" to separate the names. If a name already has ";", replace each ";" with ";;". For examples: |
destFolder |
ISIAPINetworkFolder |
The destination Network Folder |
Returns int - The number of successfully moved Networks