API Reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DB.Api.ApplicationComponents Class Reference

Class to handle DB components. Components include various tables of data including constructions, glazing data, profiles, etc. More...

Public Member Functions

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 ()
 

Detailed Description

Class to handle DB components. Components include various tables of data including constructions, glazing data, profiles, etc.

Member Function Documentation

◆ 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
tableNameName of table.
fieldCountNumber 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
tableNameName of ApplicationComponents table to be populated.
filePathFull 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
nameName 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
nameName 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
fileNameName of new ApplicationComponents file.
pathFile 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
tableNameName of table.
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
fileNameName of ApplicationComponents file.
pathFile 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
tableNameName 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: