Understanding Indexes

<< Click to Display Table of Contents >>

Navigation:  WireCAD PRO Manual > Advanced Topics >

Understanding Indexes

Previous pageReturn to chapter overviewNext page

hmfile_hash_9fe6aa50

 

Related Topics

Unassigned Cables

Unassigned SysNames

Cables by Drawing

SysNames by Drawing

Cables by SysName

Orphaned Cables

Orphaned SysNames

 

WireCAD keeps track of two classes of data.

1. Primary - examples of primary data include: SysNames, Cable Numbers, Locations, Drawings. This data is of cardinal importance. We always want this data to accurately portray what goes on in the drawing/database.

2. Secondary - Indexes are secondary or transient data.

The indexes are link data relating the primary data bits to each other.

 

Index data is transient in nature.

WireCAD consists of a drawing interface with undo/redo and a database which does not. With that as our framework let's discuss a scenario which will put the indexes out of sync quickly.

1.You add a cable to a drawing. A record is added to the Unassigned Cables index.

2.You undo. The cable is removed from the drawing but the database does not have an undo function (nor should it but that's a discussion for another day).

3.We now have a record in the Unassigned Cables index that is in error. It only to two steps to create an inconsistency in the index table.

 

So rather than try unsuccessfully to keep every move in sync we routinely scan the drawing and rebuild the index tables as a background process.

The indexes can be destroyed, rebuilt, and at any given time - out of sync. Deleting all indexes has no effect on primary data.

To insure the most current indexes run the Rebuild Indexes command.

 

You can view the indexed data in the primary data grids as sub grids with the [+] button.

You can also view the indexed data in individual grids.

 

There are seven indexes:

1. Unassigned Cables by Drawing. We search the drawing and add any cable that does not yet have a number to this index.

2. Unassigned SysNames (equipment) by drawing. We search the drawing for any equipment that does not yet have a SysName and add it to this index.

3. Equipment by Drawing. Any equipment that has a SysName and corresponding entry in the Equipment List is added to this index by drawing.

4. Cables by Drawing. Any cable that has a number and corresponding entry in the Cables database is added to this index by drawing.

5. Cables by Equipment. Any cable that has a number and corresponding entry in the cables database and where both ends of the cable have valid entries in the Equipment list will be added to this index.

6. Orphaned Cables. Any cable with a number but no corresponding entry in the Cables database will be added to this index by drawing.

7. Orphaned SysNames. Any equipment with a SysName but no corresponding entry in the Equipment list will be added to this index by drawing.

 

Settings that affect Indexing

The Auto Index setting will scan the project in the background upon project open and any drawing save.

The Show Index Progress setting turns on the main progress bar in the status bar to indicate progress.