Class to handle DB components. Components include various tables of data including constructions, glazing data, profiles, etc.
More...
|
| Table | AddTable (string tableName, int fieldCount) |
| | Adds an empty table with specified name and number of fields to ApplicationComponents object.
|
| |
| Table | GetTable (string tableName) |
| | Retrieves an existing ApplicationComponents table with specified name.
|
| |
| void | RemoveTable (string tableName) |
| | Removes an existing ApplicationComponents table with specified name.
|
| |
|
void | RemoveAllTables () |
| | Removes all tables and all table contents from ApplicationComponents object (same as ClearComponents method).
|
| |
| bool | CreateNewFile (string fileName, string path) |
| | Creates file using name supplied and if successful associates file with ApplicationComponents object.
|
| |
| bool | AddTableFromFile (string tableName, string filePath) |
| | Populates the specified ApplicationComponents table with the contents of the specified ASCII file.
|
| |
| bool | OpenFile (string fileName, string path) |
| | Loads all ApplicationComponents tables from specified binary file (previously created by saving ApplicationComponents object).
|
| |
| bool | SaveFile () |
| | Saves ApplicationComponents tables to binary file previously created using CreateNewFile.
|
| |
| bool | CopyTableToSite (string name) |
| | Copies specified table from ApplicationComponents object to Site level tables.
|
| |
| int | CopyAllTablesToSite () |
| | Copies all ApplicationComponents tables to site level tables.
|
| |
| bool | ClearTable (string name) |
| | Removes contents of specified ApplicationComponents table.
|
| |
|
void | ClearComponents () |
| | Removes all tables and all table contents from ApplicationComponents object (same as RemoveAllTables method).
|
| |
|
void | Dispose () |
| |
Class to handle DB components. Components include various tables of data including constructions, glazing data, profiles, etc.
◆ AddTable()
| Table DB.Api.ApplicationComponents.AddTable |
( |
string |
tableName, |
|
|
int |
fieldCount |
|
) |
| |
Adds an empty table with specified name and number of fields to ApplicationComponents object.
- Parameters
-
| tableName | Name of table. |
| fieldCount | Number of fields (columns) in table. |
- Returns
- TRUE if table added successfully otherwise FALSE.
◆ AddTableFromFile()
| bool DB.Api.ApplicationComponents.AddTableFromFile |
( |
string |
tableName, |
|
|
string |
filePath |
|
) |
| |
Populates the specified ApplicationComponents table with the contents of the specified ASCII file.
- Parameters
-
| tableName | Name of ApplicationComponents table to be populated. |
| filePath | Full path of ASCII file containing table data. |
- Returns
- TRUE if table populated successfully successful otherwise FALSE.
◆ ClearTable()
| bool DB.Api.ApplicationComponents.ClearTable |
( |
string |
name | ) |
|
Removes contents of specified ApplicationComponents table.
- Parameters
-
| name | Name of table to be cleared. |
- Returns
- TRUE if table cleared successfully otherwise FALSE.
◆ CopyAllTablesToSite()
| int DB.Api.ApplicationComponents.CopyAllTablesToSite |
( |
| ) |
|
Copies all ApplicationComponents tables to site level tables.
- Returns
- TRUE if tables copied successfully otherwise FALSE.
◆ CopyTableToSite()
| bool DB.Api.ApplicationComponents.CopyTableToSite |
( |
string |
name | ) |
|
Copies specified table from ApplicationComponents object to Site level tables.
- Parameters
-
| name | Name of table to be copied. |
- Returns
- TRUE if table copied successfully otherwise FALSE.
◆ CreateNewFile()
| bool DB.Api.ApplicationComponents.CreateNewFile |
( |
string |
fileName, |
|
|
string |
path |
|
) |
| |
Creates file using name supplied and if successful associates file with ApplicationComponents object.
- Parameters
-
| fileName | Name of new ApplicationComponents file. |
| path | File path |
- Returns
- TRUE if file created successfully otherwise FALSE.
◆ GetTable()
| Table DB.Api.ApplicationComponents.GetTable |
( |
string |
tableName | ) |
|
Retrieves an existing ApplicationComponents table with specified name.
- Parameters
-
- Returns
- TRUE if table exists and retrieved successfully otherwise FALSE.
◆ OpenFile()
| bool DB.Api.ApplicationComponents.OpenFile |
( |
string |
fileName, |
|
|
string |
path |
|
) |
| |
Loads all ApplicationComponents tables from specified binary file (previously created by saving ApplicationComponents object).
- Parameters
-
| fileName | Name of ApplicationComponents file. |
| path | File path |
- Returns
- TRUE if tables loaded successfully successful otherwise FALSE.
◆ RemoveTable()
| void DB.Api.ApplicationComponents.RemoveTable |
( |
string |
tableName | ) |
|
Removes an existing ApplicationComponents table with specified name.
- Parameters
-
| tableName | Name of table to be removed. |
◆ SaveFile()
| bool DB.Api.ApplicationComponents.SaveFile |
( |
| ) |
|
Saves ApplicationComponents tables to binary file previously created using CreateNewFile.
- Returns
- TRUE if tables saved successfully otherwise FALSE.
The documentation for this class was generated from the following file:
- C:/DesignBuilder/Components Source/DB.Api/DB.Api/ApplicationComponents.cs