Applies To Product(s): OpenPlant PID Version(s): 08.11.10.XXX Environment: Windows 7 64 bit Area: Installation-Configuration Subarea: Original Author: Harpreet Singh, Bentley Technical Support Group Introduction This document will explain how to setup a mixed metric environment with metric project workspace which is delivered as OPPowerPID_Metric in OpenPlant PID. The project OPPowerPID_Metric which is shipped with OpenPlant PID, has all metric values; scales, sizes, offsets. A set of variables can be added to the project configuration file (pcf) to create a mixed metric environment. Steps to Follow: Copy the standard metric project “OPPowerPID_Metric” folder and its corresponding PCF (OPPowerPID_Metric.pcf) file. Rename the folder and PCF file to a unique name say “OPPID_MixMetric”. Give the same name to folder and PCF file. Open OPPID_MixMetric.pcf file and change the project name and project description as shown in the picture below: 4. Open OPPID_MixMetric.pcf file and make the following changes in the existing variables: #Alternate unit scaling and configurations ALT_SCALE_FACTOR=25.4 ALT_ROUND_OFF_FOR_SCALE_FACTOR=2 ALT_ROUND_OFF_FOR_SCALE_FACTOR_FOR_POINTS=4 ALT_SIZE_LIST=IMPERIAL_PIPE_SIZES ALT_RUN_SIZE=1 ALT_RUN_NOMINALSIZE=1 ALT_BORDER_LIST=METRIC_BORDER_LIST ALT_BUBBLE_SIZE=6.0 ALT_OVAL_BUBBLE_WIDTH_SIZE=3.0 DEFAULT_INSTRUMENT_ANNOTATION_CLASS=INSTRUMENT_OVAL_ANNOTATION ALT_USE_METRIC_SPEC_MODE_SIZE=True 5. Add the following variables in the PCF file. These variables can be placed anywhere in the PCF file however it is recommended to place them under the “#Alternate unit scaling and configurations” section: BMF_REPORT_VALUES_SCALE_FACTOR=25.4 USE_SCALE_FOR_ANNOTATION=True _BMF_USE_MIXED_METRIC_UNITS=1 Please refer to the snapshot below: 6. Save the changes and close the PCF file. For changing the units of Nominal Diameter property from mm to inch: Open the base openplant schema (OpenPlant.01.03) in class editor. Supplement it with OpenPlant_Supplemental_Units_Metric.01.03 schema. Go to class “Piping Network Segment”. Select the “Nominal Diameter” Property. Go to units Tab and select the INCH units from drop down. Save the changes made to the schema in Class Editor. Open OpenPlant PID and verify the results. Variable Details Variable Description ALT_SCALE_FACTOR Variable that controls the overall scaling for cells and offsets. Offsets include connection points, annotation offset, pipe run auto routing and gapping (padding). ALT_ROUND_OFF_FOR_SCALE_FACTOR Variable that controls the decimal round off for scaling. This is useful for getting whole numbers. Example: Scale factor applied to value: 25.4 * 0.125 = 3.175 Round off set to 0. Value returned 3.0 ALT_ROUND_OFF_FOR_SCALE_FACTOR_FOR_POINTS Same as above but applied to connection points. ALT_SIZE_LIST Variable that controls the SIZE property variable display. The value is the class name in schema that contains the array list of valid sizes. ALT_RUN_SIZE Variable that controls the default SIZE and DESIGN_SIZE property values. ALT_RUN_NOMINALSIZE Variable that controls the default NOMINAL_SIZE property value ALT_BORDER_LIST Variable that controls the Border list display ALT_BUBBLE_SIZE Variable that controls bubble radius size. The reason for this variable is that the bubble value would remain a constant size no matter the scaling value ALT_OVAL_BUBBLE_WIDTH_SIZE Variable that controls the oval width size. DEFAULT_INSTRUMENT_ANNOTATION_CLASS Variable that controls the class name that is used for the bubble annotation with Control Valves and Flow elements ALT_USE_METRIC_SPEC_MODE_SIZE Variable that sets values to facilitate the querying of specs. This variable adds the “mm” to the SIZE value to query metric specs. It does not convert the size value to read imperial specs. Files and values not handled Seed file Seed files contain unit values that have to be set Spec Files The current Spec files in the ANSI spec folder are imperial based Text Styles Text style size must be set. These are defined in the dgnlib Line Styles Line style scale must be changed in the element templates. Change the value from 0.025 to 0.25.
↧