Space / Moves / Move Scenarios
Using Historical Enterprise Graphics Files
You may want to save historical floor plans and enterprise graphics files so that you can see how a floor plan changes over time. Archibus does not provide features to automatically manage or show historical drawings; however, there is a way to do this by developing a customized logic, renaming files, and editing the records in the afm_enterprise_graphics table.
Before a CAD Operator publish changes to an inventory floor:
- Rename the existing published enterprise graphics files to the format "<name>-<date>.<ext>", using a date that is one day before the current date. This way, newly published files won't overwrite the existing files.
- For example, rename "srl02.svg" to "srl02-20170626.svg", which is the date one day before the current date.
- In the Enterprise Graphics table (afm_enterprise_graphics), edit the records for the files renamed in Step 1>
- Edit the values in the File Name (filename) field to match the names set in Step 1.
- Set the Usage field (usage_type) to "Historical."
- For example, the record with file name "srl02.svg" would be renamed "srl02-20170626.svg", and the Usage would change from "Inventory" to "Historical."
In this way, a customized logic could call up a historical drawing by checking the afm_enterprise_graphics table to find the file name associated with a bl_id and fl_id and date_published that is the first date found greater than or equal to the requested date.