PlantWise Help

Export to DRV

PlantWise can generate a MicroStation design file and the associated label files (.dri and .drv) that are readable by walk-through programs such as Bentley Navigator. The combined files allow the reviewer to see the associated PlantWise attribute information from the label file in the message window when a component is selected. PlantWise ships with a project workspace for Navigator in the
<plantwise>\Documentation\Navigator support file\PlantWise DRV workspace
folder.
Copy these files to your Navigator's default folder. For example, project workspaces
C:\Documents and Settings\All Users\Application Data\Bentley\WorkSpace\Projects\Examples\
if you use the default installation directories.

The plantwise.lib file in the provided workspace is compatible with the components and attributes exported by the sample DRV report files. If you set your Navigator to use this workspace on startup, Navigator displays the exported PlantWise component information when you select a graphic object and ask for element information. You can export your PlantWise model by choosing Reports > Export from the PlantWise menu and then selecting DRV Model Export in the Export dialog. You are then be prompted for the file path and an export name in the Export to DRV dialog. PlantWise then saves, in the specified location, three files: the MicroStation design file at the time of the export, a .dri, and a .drv - all with the name as provided by you.

Export to DRV dialog.

The data in the label files is generated by a series of PlantWise reports that have a “drv” prefix in their name – simple drv reports are provided with PlantWise. All of the drv reports are customizable with the Report Editor, and additional reports can be added; however, for the export to be successful each report must:
  • have “drv-” at the beginning of its name;
  • have the “lbl” expression as the first column; and
  • have the “close” expression as the last column.

The label expression (lbl) opens the entry for each component of the report so that Smart Plant can read the data.

The format of the label expression is:
"lbl{" + lisp-function(dpar-get-dmrs-string
			<report component>) + "text {"   
As an example, the label expression for the drv-eq report provided with PlantWise is:
"lbl{" + lisp-function(dpar-get-dmrs-string
			equipment) + "text {"
			
The close expression ends the entry for each component of the report, its format is:
"<carriage-return>}}”