Change the Units of Measure for Smart 3D Labels - Intergraph Smart Review - Help

Intergraph Smart Review Help

Language
English
Product
Intergraph Smart Review
Search by Category
Help
SmartPlant Foundation / SDx Version
7.1 (2018 R1)
Smart Review Version
13.x(2018)

By default, Smart 3D publishes all label data in System International (SI) units. The UoM (Units of Measure) Converter utility enables you to change the units of measurement for labels in Smart 3D project files that are imported into Smart Review. For example, you can change temperature measurement from Kelvin to Fahrenheit, and meters to feet for distance measurements.

The UoM Converter utility, accessed from Start > Intergraph Smart Review > UoM Converter, uses the Smart 3D-generated schema file, P3DComponent.xml. This file contains metadata information that lists the attributes and types of measurement units used in the file, and how they relate to each other. The UoM Converter utility reads and displays information from this file so that you can edit the required units of measurement. Once you set the new units of measurement, the UoM Converter utility generates the UoMConversions.xml file, which is read by Smart Review the next time the project file is opened and a new label database (MDB2) file is generated. Your changes are reflected in the Smart Review Text window or the Properties dialog box when you select graphic elements using the updated units of measure.

If you used the SPRDirect method in Smart 3D to generate the VUE and MDB2 files, you do not need to use the UoM Converter utility. With SPRDirect, attributes (custom and standard) and measurement units are set up in the Smart 3D application and generated in an MDB2 database file. For more information about using SPRDirect, see Using SPRDirect in the Smart 3D Integration Guide.

Key Components of the UoM Converter

Smart 3D project

Contains .xml and .vue files. The UoM Converter utility only uses schema files from Smart 3D projects.

P3DComponent.xml file

Creates the project .xml file. Because you can have multiple P3Dcomponent.xml schema files, each used to create a different project .xml file, you must select the correct P3Dcomponent.xml file when running the UoM Converter utility. You must always load the P3Dcomponent.xml file that was used to create the Smart 3D project .xml file you are working with to create the desired conversion file.

UoMConversions.xml

Specifies the conversion generated by the UoM Converter utility. You can rename the file once it has been generated, if needed.

Smart Review only recognizes the UoMConversions.xml filename as the conversion file.

MDB2 label database file

Contains the label information for Smart Review. An .mdb2 file is automatically generated when you open a project in Smart Review for the first time. When you create a new conversion file, you must move the current .mdb2 file to another location or delete it so that Smart Review can generate a new .mdb2 file containing your conversions.

UoM Converter Dialog Box

Enables you to customize the units of measure for labels in Smart Review. You can only use the UoM Converter utility with files imported from the Smart 3D application.

Options:

Schema file name (P3DComponent.xml) - Shows the P3DComponent.xml file to be used for the customization. Browse to the P3DComponent.xml file generated by Smart 3D to use to customize the units of measure. A P3DComponent.xml file is generated when you create project files in Smart 3D. The P3DComponent.xml file contains the schema information related to the Smart 3D project, and it is generated in the same folder as the Smart 3D project file.

You can only use the schema files generated by Smart 3D.

File output directory - Shows the path of the resulting conversion file (UoMConversions.xml) containing your changes. Browse to or type in the desired path location. The conversion files in Smart Review are (1) the folder containing the project files, and if not found there, then (2) the folder where the Smart Review executable file is installed.

  • You should not change the name of the conversion file, UoMConversions.xml. It is automatically created when you save your changes in the UoM Converter dialog box.

  • If you do not specify an output directory, the UoMConversions.xml file is saved in the root directory where the UoM Converter utility is installed.

Conversion rules

Lists all the measurement types and units that are available in the selected Smart 3D schema file, P3DComponent.xml.

  • Type - Measurement unit type (for example, Angle, Length and Temperature).

  • Convert From - Measurement unit that you want to change. Click in the field to display a pull-down list with unit currently available for the selected measurement type.

  • Convert To - Updated measurement unit. Click in the field to display a pull-down list with the unit you want to have display in Smart Review labels.

  • Precision - Number of decimal places to use to express the measurement value. The measurement value is rounded to fit the selected precision. You can type in an integer value 0 - 30 to represent the number of decimal places to use. For example, if you typed in 5 as the precision for the value 12.345, then the decimal value is displayed as 12.34500. If you used 2 as the precision, then the displayed decimal value is 12.35.

    Using a precision of 0 during a conversion may not give you the neededresult. For example, when a value of six inches is converted to feet with a zero (0) precision, the result is one foot because of rounding:

    6 inches / 12 inches per foot = 0.5 feet (with zero (0) precision rounds 0.5 up to 1) = 1 foot.

Default precision

Precision value (0 - 30) used if no value is set for the conversion rule. If you type in a value in the Precision column of the conversion rule, that value overrides the Default precision setting.

Conversion rules in effect

Lists the measurement conversions you want to use. When you click Add, all rows you have selected in the Conversion rules section are placed in this section.

Load

Appends or replaces the conversion rules you have set in another UoMConversions.xml file. When you click Load, a message displays asking if you want to append to or replace all of the current conversion rules. If you click Yes, then the conversion rules are added to the bottom of the current conversion rules displayed in the dialog box. If you select No, then the current conversion rules are replaced by those in the other file. This allows you to create different sets of customized conversion rules.

Save

Saves the UoMConversions.xml file in the directory specified in the File Output Directory box. All conversions that are in the Conversion rules in effect section when you click Save are placed in the UoMConversions.xml file.

Close

Exits the UoM Converter utility. If modifications have been made, a confirmation message is displayed before the application closes.

Add

Copies all measurement rows you have selected in the Conversion rules section into the Conversion rules in effect section of the dialog box.

Delete

Removes the selected row(s) from the Conversion rules in effect section.

What do you want to do?