New Data Record Version
If a data record of a table is changed, this leads to the fact that standard parts already installed in a drawing and based on this data record differ from newly installed standard parts based on the changed data record. To prevent legacy data from changing - especially in referenced models - it is possible to version data records in catalogue tables. The New data record version function is used for this purpose.
The function is only available if the table contains a PREV_ID column (Data type: Integer).
There are two ways to insert the column:
- Open the corresponding table in the Catalogue Editor and - if it does not already exist - insert a column with the name PREV_ID (Data type: Integer).
or
- Use the function Prepare tables for versioning in the context menu of the table.
If the tables contain the column PREV_ID, proceed as follows for versioning:
- Open the table.
- Then right-click on the record you want to change and select the function New data record version. The original data record then receives the status Deleted
. The ID of the original data record is automatically entered in the PREV_ID column of the new data record. This establishes the link between the two data records.
- Edit the new data record and save the changed table.
The modified table is available in HiCAD after a restart or after executing the HiCAD function Settings > Catalogues > Reload. The procedure in HiCAD is then as follows:
- If a drawing contains "old" standard parts, i.e. standard parts that were installed on the basis of the original data record, these remain unchanged.
- If new standard parts are installed, the changed data are used.
- The standard parts receive the same item number.
An example:
As an example, let us consider the table Tifas Blind rivet, large dome head (for reasons of clarity, the columns Custom1 to Custom5 have been hidden in the following illustrations)
We want to create a new version of the data record with the ID 1 and change it.
For this we proceed as follows:
- Create column PREV_ID
To do this, right-click on a column heading of the table and select the function New column. In the dialogue window, enter the name PREV_ID and select Data type: Integer. Then exit the window with OK.
- Create new data record version
Now right-click on the first column of the row with thenumber1 and select New data record version.
The original data record is given the status Deleted . The ID of the original data record is automatically entered in the PREV_ID column of the new data record. This establishes the link between the two data records.
- Edit data record / Save table
Now edit the new data set and save the table.
Now let's look at a drawing in which the standard part was already installed before the change made above.
If the catalogue is reloaded and the standard part of type TIFA-BLI_RIVET - 3.2x10 is installed again, the changed data will only be used for this part. The previously installed standard parts remain unchanged. But all standard parts of this type receive the same item number.
Important:
If the original data record is deleted with the Delete record function, this record cannot be restored any more!