ISIAPIProject Interface¶
Namespace: SIDRASolutions.SI.API
Assembly: SIDRASolutions.SI.API.dll
COM CLSID: 92FE4623-165F-4767-B5DD-0C803422C9DD
SIDRA INTERSECTION Project wrapper interface
Declaration¶
Get an instance¶
Properties¶
Name¶
Project name
Type string
Value
Project name
Code samples
LastErrorMessage¶
Type string
Code samples
SiteFolders¶
Collection of SiteFolders in the current Project
Type ISIAPISiteFolders
Value
SiteFolders collection
Code samples
NetworkFolders¶
Collection of NetworkFolders in the current Project
Type ISIAPINetworkFolders
Value
NetworkFolders collection
Code samples
Description¶
Type string
Code samples
MinViableVersion¶
Type string
Code samples
Created_date¶
Type DateTime
Code samples
Created_by¶
Type string
Code samples
Created_by_company¶
Type string
Code samples
Created_version¶
Type string
Code samples
Modified_date¶
Type DateTime
Code samples
Modified_by¶
Type string
Code samples
Modified_by_company¶
Type string
Code samples
Modified_version¶
Type string
Code samples
EarliestModifiedVersion¶
Type string
Code samples
LatestModifiedVersion¶
Type string
Code samples
SiteVolumeBinFolders¶
Collection of SiteVolumeBinFolders in the current Project
Type ISIAPISiteVolumeBinFolders
Value
SiteVolumeBinFolders collection
Code samples
Methods¶
UpdateModifiedInfo()¶
Update the Last Modified Information, such as Date, User Name, Organisation Name, Software Version Number
Returns bool
Code samples
ImportSitesFromProject(string, string)¶
Import Site(s) from another Project file into this Project file.
Parameters
| Name | Type | Description |
|---|---|---|
projectFilePath |
string |
The file path of the other Project file. |
siteNames |
string |
The name(s) of the Site(s) to import. Use semicolon ";" to separate the names. If a name already has ";", replace each ";" with ";;". For examples: |
Returns int - The number of successfully imported Sites
Code samples
ImportNetworksFromProject(string, string)¶
Import Network(s) from another Project file into this Project file. This function will import the Sites in the Network(s) too.
Parameters
| Name | Type | Description |
|---|---|---|
projectFilePath |
string |
The file path of the other Project file. |
networkNames |
string |
The name(s) of the Network(s) to import. Use semicolon ";" to separate the names. If a name already has ";", replace each ";" with ";;". For examples: |
Returns int - The number of successfully imported Networks
Code samples
AddSiteFolder(string)¶
Add a new SiteFolder into the Project.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Returns ISIAPISiteFolder
Code samples
RemoveSiteFolder(ISIAPISiteFolder)¶
Remove a SiteFolder from the Project. All Sites in the SiteFolder will be removed. This method fails if any Site in the SiteFolder is used in a Network.
Parameters
| Name | Type | Description |
|---|---|---|
siteFolder |
ISIAPISiteFolder |
The SiteFolder to remove. |
Returns bool - true if the SiteFolder is successfully removed; otherwise, false. This method also returns false if the SiteFolder does not exist in this Project.
Code samples
MoveSiteFolderTo(ISIAPISiteFolder, int)¶
Move a SiteFolder to a new position.
Parameters
| Name | Type | Description |
|---|---|---|
siteFolder |
ISIAPISiteFolder |
The SiteFolder to move. |
newPosition |
int |
The zero-based position that the SiteFolder should be moved to. |
Returns bool - true if the SiteFolder is successfully moved; otherwise, false. This method also returns false if the SiteFolder does not exist in this Project.
Code samples
AddNetworkFolder(string)¶
Add a new NetworkFolder into the Project.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Returns ISIAPINetworkFolder
Code samples
RemoveNetworkFolder(ISIAPINetworkFolder)¶
Remove a NetworkFolder from the Project. All Networks in the NetworkFolder will be removed.
Parameters
| Name | Type | Description |
|---|---|---|
networkFolder |
ISIAPINetworkFolder |
The NetworkFolder to remove. |
Returns bool - true if the NetworkFolder is successfully removed; otherwise, false. This method also returns false if the NetworkFolder does not exist in this Project.
Code samples
MoveNetworkFolderTo(ISIAPINetworkFolder, int)¶
Move a NetworkFolder to a new position.
Parameters
| Name | Type | Description |
|---|---|---|
networkFolder |
ISIAPINetworkFolder |
The NetworkFolder to move. |
newPosition |
int |
The zero-based position that the NetworkFolder should be moved to. |
Returns bool - true if the NetworkFolder is successfully moved; otherwise, false. This method also returns false if the NetworkFolder does not exist in this Project.
Code samples
AddSiteVolumeBinFolder(string)¶
Add a new SiteVolumeBinFolder into the Project.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Returns ISIAPISiteVolumeBinFolder
Code samples
RemoveSiteVolumeBinFolder(ISIAPISiteVolumeBinFolder)¶
Remove a SiteVolumeBinFolder from the Project. All SiteVolumeBins in the SiteVolumeBinFolder will be removed. This method fails if any SiteVolumeBin in the Folder is used by Site.
Parameters
| Name | Type | Description |
|---|---|---|
siteVolumeBinFolder |
ISIAPISiteVolumeBinFolder |
The SiteVolumeBinFolder to remove. |
Returns bool - true if the SiteVolumeBinFolder is successfully removed; otherwise, false. This method also returns false if the SiteVolumeBinFolder does not exist in this Project.
Code samples
MoveSiteVolumeBinFolderTo(ISIAPISiteVolumeBinFolder, int)¶
Move a SiteVolumeBinFolder to a new position.
Parameters
| Name | Type | Description |
|---|---|---|
siteVolumeBinFolder |
ISIAPISiteVolumeBinFolder |
The SiteVolumeBinFolder to move. |
newPosition |
int |
The zero-based position that the SiteVolumeBinFolder should be moved to. |
Returns bool - true if the SiteVolumeBinFolder is successfully moved; otherwise, false. This method also returns false if the SiteVolumeBinFolder does not exist in this Project.