Beruflich Dokumente
Kultur Dokumente
English-to-Metric
Universal working units conversions
Version 3.8
Axiom International
1805 Drew Street
Clearwater, Florida 33765
1-727-442-7774 voice
1-727-442-8344 fax
AxiomInt@AxiomInt.com
www.AxiomInt.com
Page 2
English-to-Metric
This software and manual are provided as is without warranty of any kind, either
expressed or implied, including, but not limited to the implied warranties of
merchantability and fitness for a particular purpose. The entire risk as to the quality and
performance of this program is with you. You are advised to test the program thoroughly
before you rely on it. Should the program prove defective, you (and not the seller nor
manufacturer) assume the entire cost of all necessary servicing, repair or correction. Any
liability of seller or manufacturer of this software will be limited exclusively to product
replacement or refund of the purchase price. Venue for the resolution of any dispute
arising out of this license or this product shall be Pinellas County, Florida.
Table of Contents
Table of Contents
Chapter 1 Introduction--------------------------------------------------------------------- 9
The Metric System and Design Files --------------------------------------------------------------9
What does English-to-Metric do? ------------------------------------------------------------------9
Chapter 2 Installation----------------------------------------------------------------------10
Before You Install ---------------------------------------------------------------------------------- 10
Typical Installation from CD --------------------------------------------------------------------- 10
Congratulations------------------------------------------------------------------------------------- 16
Environment variables used by English-to-Metric -------------------------------------------- 16
ENGMET_RSC ------------------------------------------------------------------------------ 16
ENGMET_ENG_TO_MET----------------------------------------------------------------- 16
ENGMET_MET_TO_ENG----------------------------------------------------------------- 17
ENGMET_FT_IN_SEPARATOR---------------------------------------------------------- 17
ENGLISH_STATION and METRIC_STATION----------------------------------- 17
Page 3
Page 4
English-to-Metric
Table of Contents
Chapter 17 Flags----------------------------------------------------------------------------62
<More Options...> Flags----------------------------------------------------------------------- 62
<Clear Flags> --------------------------------------------------------------------------- 62
Page 5
Page 6
English-to-Metric
Table of Contents
Page 7
Page 8
English-to-Metric
Version 3.3f 13 October 1999 (not publicly released, included in 3.4a) ---------------101
Version 3.3d 13 August 1999 ----------------------------------------------------------------101
Version 3.3c 30 July 1999 --------------------------------------------------------------------101
Version 3.3b 6 July 1999 ---------------------------------------------------------------------102
Version 3.3a 22 June 1999 -------------------------------------------------------------------102
Version 3.2l 28 May 1999 --------------------------------------------------------------------102
Version 3.2k 19 March 1999 -----------------------------------------------------------------102
Version 3.2j 22 February 1999---------------------------------------------------------------102
Version 3.2i 17 December 1998 -------------------------------------------------------------102
Version 3.2h 20 November 1998 ------------------------------------------------------------103
Version 3.2g 26 October 1998 ---------------------------------------------------------------103
Version 3.2f 15 September 1998 ------------------------------------------------------------103
Version 3.2e 15 September 1998 ------------------------------------------------------------103
Chapter 1 Introduction
Page 9
Page 10
English-to-Metric
Chapter 2 Installation
Page 11
3. Press <OK> and the first installation dialog box (below) will appear.
6. These instructions will describe only the Typical installation path. Choose
Typical and click <Next>.
Page 12
English-to-Metric
7. Choose the license file for this installation. Place the floppy disk that came with this
installation CD into your floppy drive now.
Chapter 2 Installation
Page 13
9. Highlight the version of MicroStation you want to associate the Axiom tools with and
click <Next>.
Since this is a Typical installation, all programs for which an Axiom license was
found will already be checked-on to be installed. Other items that are also
automatically checked-on for installation are the product Users Guides, individual
product sample files and Axioms MicroStation pull-down menu.
Page 14
English-to-Metric
Chapter 2 Installation
Page 15
If you accept the license and click <Next>, the installation will begin. You can click
<Cancel> at any time to abort the installation.
Page 16
English-to-Metric
13. This is the final dialog box. It shows that the installation is complete. By default the
View Readme.pdf option is toggled on and will display the Readme.pdf document
when you click <Finish>.
Congratulations
Thats it! You have successfully completed the installation of your Axiom tools.
ENGMET_ENG_TO_MET
English-to-Metric by default applies a conversion factor based on the US Survey Foot. In
Feet to Meters mode the default conversion factor is 1200.0 / 3937.0. If you want to use a
different conversion constant, create a MicroStation environment variable called
ENGMET_ENG_TO_MET and set it to the conversion factor you want. For example, the
conversion factor based on the International Survey Foot would be:
ENGMET_ENG_TO_MET=.3048
Chapter 2 Installation
Page 17
ENGMET_MET_TO_ENG
English-to-Metric applies a conversion factor based on the US Survey Foot. In Meters to
Feet mode the default conversion factor is 3937.0 / 1200.0. If you want to use a different
conversion constant, create a MicroStation environment variable called
ENGMET_MET_TO_ENG and set it to the conversion factor you want. For example, the
conversion factor based on the International Survey Foot would be:
ENGMET_MET_TO_ENG=3.280839
ENGMET_FT_IN_SEPARATOR
By default the separator between feet and inches is ' - . (Note this is foot symbol
spacehyphenspace.) If you want a different separator, create a MicroStation
environment variable called ENGMET_FT_IN_SEPARATOR and set it to the separator
you want. For example:
ENGMET_FT_IN_SEPARATOR=" feet "
Remember you will need to add as a Suffix to your Feet-Inch rules the (inch symbol)
or any other value you might want trailing the converted numbers.
Page 18
English-to-Metric
Page 19
QuickStart Objectives
The purpose of this QuickStart is to introduce you to the basic features of English-toMetric so that you can immediately use the program.
This QuickStart should take less than 30 minutes.
Prerequisites
1. Any MicroStation SE or J version.
2. English-to-Metric must be installed on your computer. You can verify this by
selecting the Axiom menu from MicroStations main menu bar, then select Englishto-Metric. If English-to-Metric does not appear in the Axiom menu, follow the
instructions in the Installation chapter of this Users Guide.
3. You will need some non-production design files to practice with. The two sample
design files that are delivered with English-to-Metric are suitable:
...\Axiom\V7\EngMet\sample\engmet.dgn
...\Axiom\V7\EngMet\sample\engmet.ref
Demonstration Version
The English-to-Metric demonstration version works the same as the permanent version
with the exception that it will not process files larger than 100 Kb.
Needless to say, your permanent version of English-to-Metric will not have this
restriction.
Page 20
English-to-Metric
Page 21
Whether or not you want to shift elements along an axis. Lets take the example in four
above. Suppose you didnt want to move the global origin or change the conversion
working units. You could use the shift coordinates feature in the Settings menu to
move each element in your design to the left and down far enough to accommodate the
size change, which would occur upon conversion. All of the previous factors can be
defined or set from the main dialog box. Each function has a toggle button, which
activates it or deactivates it, based on what you want to accomplish during conversion.
Page 22
English-to-Metric
Open the sample design file engmet.dgn in MicroStation. This file contains some
different kinds of elements for demonstration. Its reference file is the border.
Once English-to-Metric has been installed as described in the Installation chapter, you
can start English-to-Metric by selecting it from the Axiom menu in the MicroStation
menu bar.
Page 23
The image above shows the English-to-Metric main dialog box that appears when you
first load English-to-Metric. This box contains the basic options for conversion.
When you want to convert a drawing from English to Metric units or from Metric to
English, select the Convert Master Units option. Then set the From and To option
buttons to the desired values.
Use Feet in the From box and Meters in the To box for converting our sample
file Engmet.dgn and its reference file. You can see the conversion factor
(0.30480060960122) displayed beside the From field.
Page 24
English-to-Metric
The sample file contains text strings in the upper left of the design.
After conversion, we will want these strings to reflect meters and the symbols for feet and
inches to reflect meters.
Since we want the text converted, select the Convert Text Strings option in the Text
Strings category. Conversion of text strings requires a text rules file which is described
later in this manual. The default rules file engmet.rul automatically loads when
English-to-Metric is started, and that file will process our sample file.
We will not be shifting coordinates in this sample run.
When the working units need to be changed, select the Change Working Units option.
You may then modify any of the items in the To: column. Enter the To: fields as in
the image above for the sample run.
When you tab out of the To: fields, you will see the new working area computed and
listed at the bottom.
Page 25
Page 26
English-to-Metric
Test
Select the <Test> button to test the current settings on the selected design file and its
reference files. If the test were unsuccessful, you would be offered some options as to
how to handle elements that could not be converted. Since we are doing demo files here,
well leave that to be covered in detail later. If the test is successful, you will see a short
report like the one below informing you that the entire file can be processed. After
viewing it, click <Close>.
Save Settings
The ENGMET.SET file contains conversion settings that are loaded when EngMet is
loaded. Use it to contain your default settings.
Anytime you process more than one design file with the same settings, or if you think
you might want to use these settings again later, you can save your settings using the
Save settings as option from the Settings pull down menu of the English-to-Metric
main dialog box.
Select Save settings as now, and save your settings as SAMPLE.SET.
Note: When processing reference files separately from the masters, be sure you use the
exact same settings as those used to process their associated master files. Otherwise your
attachments may not display after conversion.
<Next>>>
Now click the <Next>> > button at the bottom of the dialog box to proceed to the
English-to-Metric Files dialog box.
Page 27
The image above shows the English-to-Metric Files dialog box that appears when you
select <Next>> > on the main dialog box.
The design files field always defaults to the active file at the time when English-to-Metric
is loaded.
Tip: Any time you change active design files and want to insert the active design file
name, you can delete the contents of the Design Files field and tab out of it.
Page 28
English-to-Metric
Backup
By default, English-to-Metric will back up your files and work on the original file. We
recommend keeping this option selected.
Start
Before starting, take a look at the sample file. Note the text (2.7992 and 33.591) We
will be able to see these values in meters after conversion. Note also the dimension
element. This too will be converted to meters. The working units, which are now set at
feet and inches, will be Meters and Millimeters in the output file. All patterns, cells, and
multi-lines will convert as well.
Click the <Start> button.
Page 29
At the end of processing, you can see the changes to the fields noted above. Press the
<View Report> button to see a list of your settings followed by a summary of activity for
each design file that was converted.
This demonstration showed converting from English to the metric system. Using Englishto-Metric, it is just as simple to convert from metric to English.
Additionally, you can set up text rules files that convert dollars to pounds, add 20% to
numbers in text elements on level 33, update telephone numbers, in short, any kind of
change you want to make to numbers in text elements.
Think about how you would accomplish these changes on a number of design files
without English-to-Metric.
Page 30
English-to-Metric
Starting English-to-Metric
Once English-to-Metric has been installed as described above, then select English-toMetric from the Axiom menu on the main menu bar of the MicroStation Command
Window.
Page 31
Page 32
English-to-Metric
Page 33
The image above shows the English-to-Metric dialog box that is the first dialog box you
see when you start English-to-Metric.
If you have not already done so, take the time to read the short Quick Start overview to
better understand the important factors in making conversions with English-to-Metric.
Page 34
English-to-Metric
File | Exit
The only option in the File menu is <Exit>. Choosing <Exit> will close English-toMetric.
Page 35
Help
Help | Contents...
Help | Contents... the English-to-Metric Help file.
Help | About...
Help | About... opens an HTML file which displays English-to-Metric version, license,
and copyright information. It also includes Axiom contact information, links to the
Axiom website as well as e-mail addresses for Axiom Support, License Support and
Sales areas.
Conversion Options
On main dialog box #1, you see the basic conversion options. More options in these
categories and other categories are available through the <More Options...> button.
The option categories are:
Coordinate shifts
Page 36
English-to-Metric
<Test>
<Next>> >
The <Next>>> button takes you to the second main dialog box where you can select files
to process, view the report file and start the conversion process.
Page 37
<More Options...>
The <More Options...> button opens an advanced settings dialog box which contains
additional options for each category of conversion settings. The settings for each category
in this dialog box are described more fully in the chapters to which the category applies.
<Close>
Page 38
English-to-Metric
Page 39
<Active File>
The active design file is the default and will normally be in the Design Files field when
you open this dialog. You may blank out or change this field, and the <Active File>
button puts the name of the active file back into the Design Files field.
<Edit List...>
The <Edit List...> button brings up the Edit Design File List File List Editor dialog box
where you can select one or more design files to process. When you select a list of files,
the Design File field will contain the words, <EDITED FILE LIST>. To learn
more about selecting files to process, see the section called The File List Editor.
Tip: If you dont select any files, English-to-Metric will automatically process the active
design file.
Note: after selected files have been processed by English-to-Metric the selection list will
be cleared. Use the File | Export function of the File List Editor if you want to save and
later recall the list of selected files.
Select Include reference files if you want to convert all attached reference files
automatically.
Several master files may have the same reference file attachments. No reference file will
be converted twice.
Cell Libraries
English-to-Metric can convert cell descriptions that contain measurements. You can enter
one or more cell libraries to have measurements within cell descriptions converted as text
strings.
Page 40
English-to-Metric
The <Edit List...> button lets you browse and select cell libraries to process. To learn
more about telling English-to-Metric that files to process, see the section called The File
List Editor.
Warning: When converting cell libraries, be sure to select, or confirm, the Cell library
conversion settings. You can reach these by clicking the <More Options...> on the first
main dialog box, then selecting the Cell Library category.
With English-to-Metric you can select resource files containing custom line styles to be
converted. As of this writing, only custom line styles are converted. To learn more about
telling English-to-Metric that files to process, see the section titled The File List Editor
in this guide.
Note: after selected resource files have been processed by English-to-Metric the
selection list will be cleared. Use the File | Export function of the File List Editor if you
want to save and later recall the line style resource file list.
Page 41
Use the <Browse...> button to select the name for the next report file English-to-Metric
will generate. Simply select a file name or type in a new name and press the <OK>
button.
Backup
Page 42
English-to-Metric
Backup options
The first two options both result in two versions of the file. One copy is of the file before
processing and one copy is of the file after processing. The difference is basically only in
the name of the two files. For example, if you converted the file MYFILE.DGN and
selected the .BKP extension:
< <<Back>
Use the < <<Back> button to return to the first main dialog box and view or modify the
conversion settings.
<Start>
Page 43
<View Report>
Select <View Report> button to display the report file specified in the Select Report
File field. The report file is created after clicking the <Test> button in the previous main
dialog box or after processing a file with English-to-Metric.
<Close>
Page 44
English-to-Metric
The Convert Master Units option lets you control the type of translation performed by
English-to-Metric. The two primary translation types are Feet-to-Meters and Metersto-Feet.
The valid selections for the From: and To: selections are:
Feet to Meters
Selecting feet in the From: column and meters in the To: column converts a design
file or cell library from feet to meters. The conversion factor that displays under the
From field displays 0.3048006 by default when you select Feet to Meters. Although
not shown, the computations use 12 decimal places.
To change the conversion factor or limit it to 6 decimal places, use the
ENGMET_ENG_TO_MET environment variable described later in this section.
You can also convert other combinations from the English standard to any metric
standard unit on the list. When, for example, you select from inches to millimeters; the
conversion factor will show as 25.4000508.
English-to-Metric by default applies a conversion factor based on the US Survey Foot. In
Feet to Meters mode the default conversion factor is 1200.0 / 3937.0. If you want to use a
different conversion constant, create a MicroStation environment variable called
ENGMET_ENG_TO_MET and set it to the conversion factor you want. For example, the
conversion factor based on the International Survey Foot would be:
ENGMET_ENG_TO_MET=.3048
Note: The US Survey Foot (39.37 inches = 1 meter) is the standard for surveying in the
United States. The International Foot (1 inch = 25.4 millimeters) is the standard for most
other measurements. Most hand-held calculators use conversion factors based on the
International Foot.
Page 45
Meters to Feet
Selecting meters in the From: column and feet in the To: column converts a design
file or cell library from meters to feet. You can also convert other combinations from the
metric unit list to an English standard unit.
English-to-Metric applies a conversion factor based on the US Survey Foot. In Meters to
Feet mode the default conversion factor is 3937.0 / 1200.0. If you want to use a different
conversion constant, create a MicroStation environment variable called
ENGMET_MET_TO_ENG and set it to the conversion factor you want. For example, the
conversion factor based on the International Survey Foot would be:
ENGMET_MET_TO_ENG=3.280839
Note: This option only controls whether elements are scaled from English to Metric or
Metric to English. It does not affect whether elements are scaled to compensate for a
change in working units. See the section Change Working Units for more information.
Page 46
English-to-Metric
The Shift Coordinates option lets you offset all of the elements in the design file by a
specific distance. The offset distance is set using the master units in effect after the
conversion is performed, so if you are converting a file thats in feet to meters, set your
shift distances based on meters.
Suppose you didnt want to move the global origin or change the conversion working
units. You can use the shift coordinates feature to move each element in your design to
the left and down far enough to accommodate a size change, which would occur upon
conversion.
Another use of this feature, especially in mapping applications, is when the global origin
is placed at a point well outside the MicroStation design plane and you need to
compensate for the imprecision of the conversion constant over large distances. For
example, the U.S. survey foot uses .3048, but carried out a few more decimal places it
would be .3048006. Over a long distance it could cause a discrepancy in location which
might need to be adjusted.
Important: The global origin is not an element type like a line or shape, but rather a
design setting that describes a relationship between some virtual point and the lower left
corner of the design plane. You can define it outside the MicroStation design plane and
place elements relative to it, as long as you dont try to place the actual elements
themselves outside the design.
Page 47
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Text Strings category.
Page 48
English-to-Metric
Use the <Define text rules...> option to open a dialog box from which you can load text
rules files, modify them, save them under different names, and recall them. See the
section, Text Conversion Options and Rules for information on how to build or modify
a Text rules file
<Browse...>
Use the <Browse> button in the advanced options dialog box to select a Text Rules file
to use.
After selecting a Text Rules file, it may be viewed and modified by clicking the
<Define text rules...> button on the main dialog box. See the section Text Conversion
Options and Rules for information on how to build or modify a Text rules file
Change symbology
Use the Change symbology fields to display converted text in a color of your choice or
on a different level. Changing the color of converted text can be particularly useful when
Page 49
testing text rules against sample design files to ensure only the text you want changed by
the rules is being processed or to discover which text elements are missed by the existing
rules.
Page 50
English-to-Metric
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Working Units category.
Definition: Working units include the following values: master unit name, sub-unit
name, sub-units per master unit, and positional units per sub-unit.
All MicroStation users are familiar with the term working units, but may not be
familiar with the effects of changing working units on a design.
Without English-to-Metric, lets say you have a design drawn in feet (master unit name)
and inches (sub-unit name) using 12 sub-units (su) per master unit (mu) and 1000
positional units (pu) per sub-unit. Then, you just change the working units to meters and
millimeters using 1000 sub-units per meter and 100 positional per sub-unit. Now, when
you measure a line that used to be 12 feet long it would now measure only 1.44 meters
Page 51
instead of the expected 3.6576 meters. The reason for this is that changing the working
units in MicroStation from the settings menu does not change the point locations that
define each element in the design plane, it only changes what each point represents to the
user.
In the example above the number of positional units used to draw our 12 foot line in the
original drawing could be figured by the following equation:
12 (feet) X 12 (# of su/mu) X 1000 (# of pu/su) = 144,000 positional units
After we changed the working units from the settings menu of that design file, the
original line would still be 144,000 positional units long but that 144,000 positional units
would represent something different to the user:
1mu (meter) X 1000su (millimeters) X 100pu = 100,000 pu/meter
Dividing 100,000 (amount of pu/meter) into 144,000 (our line in pu) = 1.44 meters
In the real world something that measured 12 feet in the English standard would measure
3.6576 meters in the metric standard, not 1.44 meters.
English-to-Metric handles both the re-scaling and the changing of working units together
so the final product is just what you want, a design with the new working units and one in
which the elements measure as drawn in the new system.
This option can be used alone or in combination with other English-to-Metric options.
The Change Working Units toggle button controls whether or not to change the working
units of each design file during processing.
Use the Change Working Units section to define the new working units.
The From: column is populated with the values of the file that was the active file when
English-to-Metric was loaded. Be sure the design you make settings from is a design that
has the proper before processing working unit values.
The To: column is where you enter the new values for working units
Note: The processing of working units is not affected by the setting of the Change
Master Units toggle button. The Change Master Units toggle button only controls
whether elements are converted from feet to meters or meters to feet. It does not affect
whether elements are scaled to compensate for a change in working units.
Anytime you change working units by turning on the Change Working Units toggle
button, each element is automatically scaled so that the size of each element (in master
units) remains unchanged.
<Recall>
Click this button to make English-to-Metric recall the working units that were in effect
last time you converted a file.
Page 52
English-to-Metric
<Suggest>
Click this button to make English-to-Metric suggest a new set of working units. The
mode (English to Metric, Metric to English or No conversion) must be correctly set for
this option to work.
<Browse>
This option displays a standard Open File type dialog box. Choose a design file that has
the working units you wish to use. English-to-Metric will briefly change the selected
design file to retrieve the working units and then return to the current design file. The To
column values will automatically be populated with the selected files values.
The base file is the file used to calculate the conversion matrix. This is generally the
active file at the time that English-to-Metric is loaded.
When you set up the To fields for working units conversion, you are actually creating a
conversion factor based on the base file working units and the working units entered in
the To field.
For example, in the conversion of meters to feet, the factor would normally be
3.2808333. If the file that you are converting does not have working units of meters, this
factoring would usually create an undesirable result. For this reason, if the working units
of any selected file do not match the base file, the working unit conversion will ordinarily
not take place.
Use the Convert files even if working units dont match base file option to force
working unit conversion.
Page 53
Design Plane
Definition: The finite plane (2D) or cube (3D) onto which graphic elements
can be placed. It has a size of 4,294,967,296 UORs (units of resolution)
along each axis.
Drawing Range
Page 54
English-to-Metric
When you set a new global origin via a MicroStation key-in, you change the coordinate
values of all elements, but English-to-Metric allows you to set a new global origin and
will move all the elements to maintain the same coordinate position.
In fig. 1 below, you can see a design file before processing.
Fig. 2 illustrates the situation after processing when we selected an extreme global origin,
elements are shifted to the edge of the design plane).
In fig. 3 below, you can see the situation when an out-of-range global origin was used
and some elements were pushed off the edge of the design plane.
Fig. 4 illustrates the result of Set GO to the middle of displayable elements.
In other words...
Global Origin indicates where the (0,0) point is in your design file relative to the
MicroStation design plane. A (0,0) point in the middle of the design plane means that
elements in the lower left-hand quadrant would have negative coordinates. A (0,0) point
in the lower left-hand corner would mean that all coordinates in the design file would
have positive coordinates. The global origin you enter in the Manually Change Global
Origin dialog box will be the coordinates of the lower left-hand corner of the design
plane. For example, a global origin of (0,0) means that no-point on the design plane will
have a negative coordinate. If you are going to manually enter a global origin, it is
important to understand how English-to-Metric uses the global origin settings when a
conversion is done.
Page 55
English-to-Metric considers the relationship between the design elements and the GO to
be inviolate, such that a tentative point placed on an element before conversion must
measure the exact same distance if placed after conversion. In other words, if a tentative
point is placed at the center of a circle and reads 1000ft before conversion, then placing a
tentative point at the center of the same circle must measure 304.8m after conversion
assuming a conversion from feet to meters.
Now looking at this from the viewpoint of changing the GO settings, it means that
changing the To GO values from those calculated by English-to-Metric, will move the
design elements away from the center of the design plane by the amount of the change.
For example: If English-to-Metric calculates a GO of (10000,10000), and you manually
enter (100,100), the effect is that the entire design (i.e. all the design elements
collectively) will be 9900 post conversion Master Units down and to the left of the center
of the design plane. Now depending upon the working units settings, this may be quite a
large distance, possibly enough to shift some elements off the bottom or left-hand edge of
the design plane.
Page 56
English-to-Metric
Manually change GO
You can also manually set the global origin, however you should consider the factors laid
out in this section.
When manually changing the global origin, remember that your new global origin setting
should be defined as a distance in master units from the lower left corner of the design
plane.
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Global Origin category.
The From: column is populated with the coordinate values of the global origin of the
current design file. This global origin where x, y, and z values are zero is expressed in
master units distance from the lower left corner of the design plane.
Tip: Be sure that the design you get settings from is a design that has the proper before
processing global origin.
The To: column is where you enter the distance in master units of where you want the
global origin to be relative to the lower left corner of the design plane.
If you select Set GO so elements are centered in the design plane, English-to-Metric
will recalculate an optimum global origin based on the Master Unit conversion factor and
the Working Units, whenever you change any of the data in those fields. This calculated
global origin is based on centering the design on the design plane and then adjusting the
global origin so that the position of each element, expressed in master units from (0,0), is
unchanged. If you wish to manually calculate and enter a new global origin, simply
toggle the check-box on, and enter the new data.
Page 57
<Recall>
Click this button to make English-to-Metric recall the global origin that was in effect the
last time you converted a file.
<Browse>
This option displays a standard Open File type dialog box. Choose a design file that has
the global origin you wish to use. English-to-Metric will briefly change the selected
design file to retrieve the global origin and then return to the current design file. The To
column values will automatically be populated with the selected files values.
Page 58
English-to-Metric
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Cell Libraries category.
These settings control how English-to-Metric handles numeric values contained in cell
descriptions.
Page 59
As in the above example, converted cell descriptions may end up being longer than they
were before conversion. Sometimes, this may cause the description to be longer than is
allowed for a cell description. Use this option button to determine how English-to-Metric
should handle that situation.
Page 60
English-to-Metric
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Dimensions category.
Page 61
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Unconverted Files category.
Use the Unconverted Files options to select a handling for conversions that would push
elements off of the design plane. You have 5 options.
1. Skip this file. The file will not be converted
2. Delete the stray elements. The file will be converted, but the elements that were
pushed off of the design plane will be missing.
3. Flag the stray elements. The stray elements will be flagged, and will not be
dropped. The file will be converted. Use the <More Options...> Flag category
options in combination with this option.
4. Automatically generate new working units and GO. The file will be converted
with a global origin and working units combination selected by English-to-Metric
that is guaranteed to work. No elements will be dropped.
5. Decide what to do when each file is encountered. A message box will supply the
four above options at the time the file is processed.
Page 62
English-to-Metric
Chapter 17 Flags
You can open the above dialog from the English-to-Metric main dialog box #1, by
clicking the <More Options...> button and selecting the Flags category.
Use the Flags options to set symbology for flags that will be used to mark elements that
cannot be converted.
<Clear Flags>
Use the <Clear Flags> function to delete flags that were previously set. This tool will
only work in the active design file.
Page 63
Use custom conversion to apply an algebraic formula to all text strings of font 0 and
containing a number.
Page 64
English-to-Metric
There are some important basic concepts to understand about writing text conversion
rules.
1. Only text is converted by these rules. This includes Text and Text Node elements. It
also includes Cell Descriptions if selected from the Settings menu. Type 33
dimension elements are automatically converted through MicroStation when the file
is re-scaled after running English-to-Metric. Dimension element text will be based on
the new working units you set with the Change working units function of English-toMetric.
2. Each text element in the file is checked against each text conversion rule from left to
right within the text string and from the top of the list down. This allows multiple
conversion to be done within a single string, but it also means that the order of the
rules is significant. For example, a text element that has two sub-strings that need to
be converted. If the first rule in the rules list matches the second sub-string, then the
first sub-string will not be detected because of the left-to-right processing of the
string.
Page 65
3. Regular expressions are used to define what kind of text to process only. What unit
values that text represents such as feet, inches, miles, meters etc. and the units it gets
translated to must also be defined for each rule. These other factors will not be
obvious in the main Text Conversion Rules dialog box unless you indicate them in
your description.
4. The output of each translation, in addition to giving the correct translated number
value, can have any prefix or suffix you want to add.
5. Regular expressions that select text elements with no numeric value will delete that
portion of the text element.
6. You may limit any text rule by level, color, weight, font, text height and/or text width
to ensure you convert only the text you want converted.
7. The provided text conversion rules are a good selection of standard length or distance
designations that might need to be converted in any design. They are included for use
with the sample files as a good starting point for creating your own rules. They will
not necessarily be a complete or correct set of rules for your designs.
8. Each rule may also define a custom conversion formula by which you can alter or
replace the numeric value of the string. This value may be computed before or after
the automatic conversion is done.
Page 66
English-to-Metric
English-to-Metric gives you very detailed control over how text elements in your design
files are processed. Each rule uses regular expressions to define exactly which text to
convert. You can limit each rule by level, color, weight, font, text height and text width to
prevent unwanted text from being converted. You can also define the format each
converted text element will have after conversion.
The Text Rules dialog box lets you add new rules, modify existing rules and remove
rules.
Tip: Because only the first matching rule is executed, the order in which rules are listed
is significant. Change the order of rules by using CTRL-UP and CTRL-DOWN.
If a text element can match more than one rule, be sure the rule you want executed is
listed before other rules that might match. This is usually best accomplished by placing
more specific rules (that match fewer elements) earlier in the list than more general rules
(that match more elements).
Page 67
File Menu
File | New...
Use New... to create a new rules file. Selecting New... will unload the current rules
file and clear all the existing rules for a fresh start.
File | Open...
Use Open... to open a previously created text rule file. The standard Open File dialog
box will be displayed. Simply select a text rule file and press the <OK> button.
File | Save
Use Save to commit changes you make to the currently loaded text rules file.
Page 68
English-to-Metric
User Menu
User | Regular Expressions
You can select User | Regular Expressions when you want to list the descriptions of
common regular expressions. You can select these to automatically create the
corresponding regular expression statement in the String: field in the Find section of
the dialog box. See section To Add a Rule below.
Page 69
The Text Rules area displays the contents of the selected rules file. The rules are
displayed in regular expression format or in text description format depending on the
drop-down button selection.
The following sections describe each field or selection you will need to make in order to
write a text conversion rule and add it to a text rules file.
There are three major sections, Find, where you tell English-to-Metric which text you
want to convert and two conversion sections where you can specify what to do with the
text string once it is found. One conversion section is for automatic conversion and the
other for custom conversion.
To add a rule
To add a rule, click the <Add> button.
The Find | String field will be ready for you to type in your regular expression code.
Enter a description in the field below, and enter your conversion settings. The rule is
created as you enter or change values in these fields.
Added rules will be appended to the bottom of the list. You can change the sequence of
rules by using the <Ctrl + Down Arrow> and <Ctrl + Up Arrow>.
Note: You can use the User | Regular Expressions menu to access common expressions.
Click on the one you want, and it will be inserted into the string field.
To <Insert> a rule
To insert a new rule, highlight the rule and click the <Insert> button. An exact copy of
the highlighted rule will be inserted just above its current position. After modifying the
rule for your needs you can move it up or down in the sequence using the <Ctrl + Down
Page 70
English-to-Metric
Arrow> or <Ctrl + Up Arrow> keys. The changes you make to the rule will be stored in
memory until you specifically save the new rule to the active rules file by either using
File | Save or clicking the <OK> button at the bottom of the dialog box. Clicking the
<OK> button will also close the dialog box.
To modify a rule
To modify a rule, just highlight it in the Text Rules list box. Once highlighted make
changes to any aspect of the rule in the appropriate section of the dialog box. The
changes you make to the rule will be stored in memory until you specifically save the rule
to the active rules file by either using File | Save or clicking the <OK> button at the
bottom of the dialog box. Clicking the <OK> button will also close the dialog box.
To <Remove> a rule
To remove a rule, highlight the rule you want to remove and click the <Remove> button.
The changes you make will be stored in memory until you specifically save the rule to the
active rules file by either using File | Save or clicking the <OK> button at the bottom of
the dialog box. Clicking the <OK> button will also close the Text Rules: dialog box.
Find
String
Here is where you enter the regular expression that describes the text elements you want
this rule to process. Lets consider an example:
In the following (perhaps oversimplified) example, the only text elements in your design
file are in the format 1.23 feet. For example, 14.75 feet, 5.25 feet or 35.00 feet.
Page 71
Since all the text in this file is in the same format, we only need one rule to process the
entire file. We create the following regular expression:
:d*\.:d+[ ]*[F|f][E|e][E|e][T|t]
Translated this means:
:d* 0 or more digits
\.
a decimal point
:d+ 1 or more digits
[ ]* 0 or more space characters
[F|f] an F (uppercase or lowercase)
[E|e] an E (uppercase or lowercase)
[E|e] an E (uppercase or lowercase)
[T|t] a T (uppercase or lowercase)
Tip: Using an * after the first :d and a + after the second :d enables this rule to
process any text element with a decimal point. If a + were used with the first :d it
would not pick up text elements like .25 Feet.
All text elements that match this regular expression will be processed.
Note: If the text that matches the regular expression falls in the middle of a text string,
the text before and after the match is left unchanged. For example, if the above regular
expression was specified and a matching piece of text was The distance is 1.23
feet. This might get translated to The distance is .37 meters. Notice
how The distance is part of the string remains unchanged.
Page 72
English-to-Metric
Character
Meaning
\c
Beginning of line.
end of line.
:a
:d
any digit.
:n
[...]
[^...]
s*
s+
st
\d
\x
\o
If you are familiar with regular expressions, writing text conversion rules will be very
straightforward.
If you are not familiar, then spending a little time with the examples in this section and
creating a few sample files to see how they work will have you doing it easily in a short
period of time.
Before starting it would be a good idea to review the Overview at the beginning of this
section.
Page 73
Page 74
English-to-Metric
If any failure to convert or seems to convert improperly, make sure the settings described
below are properly set. Such things as units, level, color etc. are what to look for
and then check for rules which might be too general earlier in the list than the rule you
wrote to convert the text string which is giving you trouble (See the section Text
Conversion Overview). Usually one of those two things is whats causing the problem.
Expression
Description
:d+[ ]*\^[ ]*:d+[ ]*\'[ ]*:d+[ ]*\" 00^ 00' 00" (bearing) (exclude)
:d+[ ]*\+[ ]*:d+\.*:d*
00'-0.00" (feet-inches)
:d+\.*:d*[ ]*\'
^:d+\.*:d*[ ]*\"
:d+\.*:d*[ ]*[F|f][T|t]\.*
:d+\.*:d*[ ]*[I|i][N|n]\.*
:d*\.:d+[ ]*\m
100.00m (meters)
:d+[ ]*[m][m]
100mm (millimeters)
Description
Enter a brief textual description of this rule. It is a good idea to add into your description
some designation like (ex) on rules that use Exclude for the unit value when not
otherwise obvious.
Symbology
Clicking the <Symbology...> button brings up the Symbology dialog box where you
can limit each rule by the symbology of the text element being tested for a string match.
Only if the text element matches the symbology filter will the rule be applied to it. The
symbology of the text element being tested must match all categories that are turned on
(checked) in order for the text rule to be applied. When the <Symbology...> button
displays an * (asterisk) as in the image to the right above, it means that the selected rule
Page 75
is limited by one or more symbology categories. The Symbology dialog box is nonmodal and as such can remain open while moving between rules.
Levels
If this toggle button is not selected, text on all levels will be converted by this rule.
If it is selected, only text on the level specified will be converted by this rule. Separate
levels with commas and use a hyphen to create ranges (2.4-12,20).
Colors
If this toggle button is not selected, text of all colors will be converted by this rule.
If it is selected, only text of the color specified will be converted by this rule.
Weights
If this toggle button is not selected, text of all weights will be converted by this rule.
If it is selected, only text of the weight specified will be converted by this rule.
Fonts
If this toggle button is not selected, text of all fonts will be converted by this rule.
If it is selected, only text having the fonts specified will be converted by this rule.
Page 76
English-to-Metric
Height
If this toggle button is not selected, text of all heights will be converted by this rule.
If it is selected, only text of the height specified will be converted by this rule.
Width
If this toggle button is not selected, text of all widths will be converted by this rule.
If it is selected, only text of the width specified will be converted by this rule.
From Element
The <From Element> option allows you to take selected symbology from an element in
the design file. First select the categories that you are interested in, Level and Font
for example. Then click <From Element>. You will be prompted to identify an element
and then Accept/Reject. The level and font numbers from that element will now appear as
added in your Symbology dialog box.
Automatic Conversion
Page 77
From
Each text element that matches the current rule should contain a numeric value. Use the
Units: option to tell English-to-Metric what the numeric part of each matching text
element represents (feet, inches, meters, etc.).
Note: The numeric part of the text element can be anywhere in the text element. It does
not have to start at the very beginning of the text element. English-to-Metric will scan
each matching text element from left to right until it finds a numeric value.
The valid options for Units are:
Exclude Exclude is not really an input format. Exclude tells English-to-Metric to leave
text elements that match this rule unchanged. Using exclude on rules early in the file
can ensure that certain numeric values that represent things other than lengths do not get
converted. Example: using Exclude rules, you could prevent all lot numbers that are
located on level 10 from being converted.
Feet When the numbers in the text string represent feet only, select feet from the
units pull-down. If the string represents both feet and inches, use feet/inches instead.
When the numbers in the text string represent inches only, select inches
from the units pull-down.
Inches
When the numbers in the text string represent both feet and inches,
select feet/inches from the units pull-down. The leftmost numeric value is feet. The
next numeric value is inches.
Feet/Inches
Note: The separator between feet and inches can be any character except a digit.
If the numeric value being defined is in English station format use this
selection from the units pull-down.
English Station
Definition: A station is a regular position along a road or other right of way. In the
English measuring system, stations are positioned every hundred feet. A distance in
English station format is of the form x + y where x is hundreds of feet and y is feet. For
example: 32 + 50.00 would be 3250 feet.
When the numbers in the text string represent miles only, select miles from
the units pull-down.
Miles
Page 78
English-to-Metric
When the numbers in the text string represent meters only, select meters
from the units pull-down.
Meters
When the numbers in the text string represent millimeters only, select
millimeters from the units pull-down.
Millimeters
When the numbers in the text string represent kilometers only, select
kilometers from the units pull-down.
Kilometers
Metric Station If the numeric value being defined is in metric station format, use this
selection from the units pull-down.
Definition: In the metric measuring system, stations are positioned every hundred
meters. A distance in metric station format is of the form x + y where x is hundreds of
meters and y is meters. For example: 32 + 50.00 would be 3250 meters.
To
Use this option to tell English-to-Metric what unit (meters, millimeters, etc.) the numeric
part of each matching text element should be converted to. English-to-Metric will
automatically covert the number-value according to this setting.
The valid options for Units are:
Note: If Exclude is selected in either the Find or the Replace with Units: menu, then
text elements that match this rule are left unchanged.
Feet The numeric value (distance) is converted to feet. The number of digits after the
decimal place is determined by the setting of the Roundoff option.
The numeric value (distance) is converted to inches. The number of digits after
the decimal place is determined by the setting of the Roundoff option.
Inches
The numeric value (distance) is converted to feet and inches. The number
of digits after the decimal place (for inches only) is determined by the setting of the
Roundoff option. By default the separator between feet and inches is ' - " . (Note this is
foot symbolspacehyphenspaceinch symbolspace.) If you want a different separator,
Feet/Inches
Page 79
6 + 56.34
The numeric value (distance) is converted to miles. The number of digits after
the decimal place is determined by the setting of the Roundoff option.
Miles
The numeric value (distance) is converted to meters. The number of digits after
the decimal place is determined by the setting of the Roundoff option.
Meters
Kilometers
Metric Station The numeric value (distance) is converted to metric station. The number
of digits after the decimal place (on the meters part of the number) is determined by the
setting of the Roundoff option. For example, 656.34 meters would be represented as:
6 + 56.34
Roundoff
This option tells English-to-Metric how many digits after the decimal place you want
each output distance to have.
New Prefix
Enter the text you want to appear before each converted distance. For example if you
want each output text string to start with, The distance from Chicago is, enter that in
the New Prefix field.
Tip: If you want a space between the prefix and the distance, be sure to end the prefix
with a space character.
Page 80
English-to-Metric
New Suffix
Enter the text you want to appear after each converted distance. For example if you want
each output text string to end with, kilometers., enter that in the New Suffix field.
Example, using the above mentioned prefix and suffix might yield an output text element
of:
The distance from Chicago is 12.65 kilometers.
Tip: If you want a space between the distance and the suffix, be sure to start the suffix
with a space character.
Custom conversion
Use Custom conversion to specify a formula to be applied to a text string. The Mode
selected will determine how the formula is applied.
Mode
If you want the Formula Value to be computed before the automatic conversion is
done, select Before automatic conversion. If you want the value to be computed after
the automatic conversion is done, select After automatic conversion.
Another option, Instead of automatic conversion allows you to apply the formula
directly to text in the design file without other change.
As an illustration, say there was a text string consisting of 100 and the file was being
converted from feet to meters.
Page 81
Formula
If you have selected No custom conversion, this field will be disabled. (No custom
conversion is being done so there is no need to specify a custom conversion value.)
Specify a linear formula with X representing the current value in the text field. Five basic
arithmetical operations are included: + (addition), - (subtraction), * (multiplication), /
(division), ^ (raising to a power).
You can build complicated formulas using brackets.
((X + 5) ^ 2 - .89) / 1.4 * X
You can also do substitution by number. Just enter any number in the formula field and it
will replace the matched string.
You can do text substitution by entering text in quotes, which will replace an entire
matched string. This works only in the Instead of automatic conversion mode.
We strongly suggest using the test string in the fields below to check your proposed
revisions before running the program.
Page 82
English-to-Metric
If the result field shows no change to the string, then you know the highlighted rule does
not effect the test string.
Test string:
Enter the text to be tested, or use the <Test Element> button to select the text element
from the active design file whose string you want to test.
Result string:
The results of the string conversion are displayed here.
Note: If the contents of the Result string: field are displayed exactly the same as the
contents of the Test string: field, then the regular expression for the rule does not match
any part of the test string.
Page 83
To use this feature either type a text string into the Test String: field or use the <Test
Element> or <Convert Element> button. Based on the string typed or the text element
selected, the first matching rule contained in the Text Rules list box will be highlighted
and the results of applying that rule will display in the Result String: field.
When typing a value into the Test String: field you must <Tab> out of the field to
update the value shown in the Result String: field and activate the rule selection
function.
If the result field shows no change to the string and none of the rules are selected in the
list box then you know none of the rules match the test string.
Test string:
Enter the text to be tested, or use the <Test Element> button to select the text element
from the active design file whose string you want to test.
Result string:
The results of the string conversion are displayed here.
Note: If the contents of the Result string: field are displayed exactly the same as the
contents of the Test string: field and no rule is selected in the list box then none of the
rules match the test string.
Page 84
English-to-Metric
<OK> button
When you have the desired rules file loaded or modified to your satisfaction clicking the
<OK> button will save any changes to the loaded rules file and close the dialog box
returning you to English-to-Metrics main dialog box. If you are creating a new rules file
then clicking the <OK> button will bring up a standard file creation dialog box for giving
your rules file a name before returning to English-to-Metrics main dialog box.
Page 85
The List menu lets you create, save, and re-use different lists of files. There are several
applications that can make use of these lists of files. So lists can be imported and
exported between applications.
Tip: Although there are some similarities between this menu and a standard File menu,
the differences are significant. When you Import or Export from this menu, the files do
not remain open, you are not editing a file, and no files are updated. Effectively,
these are one shot copy operations where an entire set of data is copied from the dialog
box to a file, or from a file to the dialog box.
There are two possible file formats, each having different advantages and disadvantages.
Page 86
English-to-Metric
This format is handy for using as a basis for an @listfile (see below). Or even for
generating a list of files for any application that uses a list of files for input.
The default extension for this format is .lst, which stands for list.
Page 87
List | Import
List | Export
Navigation Section
This section of the dialog box works just like the File | Open dialog box in
MicroStation and other Windows programs. You can select a drive by choosing from the
available drives on the Drive: option button, or by entering the drive in the Filter:
Page 88
English-to-Metric
field. You can move up or down the directory tree structure by double clicking on one of
the directory names, or by typing in any valid directory path in the Filter: field. You
can display specific file types in the Files: list by specifying wildcards in the Filter:
field. The Filter: field will recognize any valid combination of device, directory and/or
filename, including UNC specifiers.
As you make changes to any of these fields, the other fields and lists will be
automatically updated.
This section of the dialog box is used to add and remove individual filenames from the
list of selected files.
Page 89
/fodate on date
/fo1-1-2002 includes only files modified on January 1st, 2002.
/ft today
/ft includes only files with dates matching the current system date.
Note: Since the forward slash is used to indicate an option, and the backward slash is
used to separate directory names, neither can be used for separating month, day and year
in dates. Use either periods (12.31.92) or dashes (12-31-92) instead of slashes.
Tip: /fldate and /fedate may be combined to restrict file dates to a specific range, as
in c:\dgnfiles\*.dgn /fe7-1-1997 /fl8-1-2002 /s
Page 90
English-to-Metric
semicolon
Multiple extended file specifications may be strung together by separating them with
semicolons ; . For example:
c:\dgnfiles\*.dgn /s; d:\dgnfiles\*.dgn /s
@
@ prefixed to a file specification indicates a list file. A list file is a flat text file
containing lines composed of file specifications as defined above. That is, each line can
be a simple file specification, a wildcard file specification, a list file specification, a
single extended file specification, or multiple file specifications of any of theses types,
separated by semicolons. The contents of a list file might look something like this:
e:\reffiles\border.dgn
e:\reffiles\ref1.dgn
e:\reffiles\ref2.dgn
e:\reffiles\ref3.dgn
e:\reffiles\ref4.dgn
e:\reffiles\ref5.dgn
c:\dgnfiles\*.dgn /s /ft
d:\dgnfiles\*.cel /s /ft
@c:\filelists\project1.lst
@c:\filelists\project2.lst
<OK>
Click the <OK> button to save the list in the selected files listbox and exit the dialog
box.
<Cancel>
Click the <Cancel> button cancel any changes made to the list in the selected files
listbox and exit the dialog box.
Page 91
To add the files which fall within the date range specified from the Files: list to the
Selected Files: list, click the Add button. To delete the files in the Selected Files:
list which fall within the date range specified , click the Remove button.
Earliest date
Use this field to enter a beginning cutoff date for a range of files to be added to the
selected files listbox. Files whose last modification date is before this date will not be
added to the selected files listbox when the <Add by dates> pushbutton is clicked or
removed from the selected files listbox when the <Remove by dates> pushbutton is
clicked.
Latest date
Use this field to enter an ending cutoff date for a range of files to be added to the
selected files listbox. Files whose last modification date is after this date will not be
added to the selected files listbox when the <Add by dates> pushbutton is clicked or
removed from the selected files listbox when the <Remove by dates> pushbutton is
clicked.
Note: The Filter: is combined with the dates when adding files to the selected files
list. In other words, only those files which fall within the specified date range, and which
are displayed in the available files list, are added to the selected files list when the
Add button is clicked.
Page 92
English-to-Metric
Messages
xxx is not currently accessible.
This message indicates one of two things:
1. A file specification was entered into the Files: field, but it does not correspond to
any resource accessible to the system. This usually just ends up being a mis-typed or
mis-remembered directory name or UNC path.
2. A resource is truly not accessible to your system. Some likely reasons for this are: a)
you do not have, or no longer have, access permissions for the resource, b) the
resources name has changed, c) a resource is down, offline, or inaccessible for some
other mechanical reason, d) drive letter mappings have been changed on your
computer, e) a directory has been deleted or moved.
If you get this message and have checked your entry, contact your systems administrator
to determine why the resource is not accessible.
Note: The term resource is borrowed from the UNC definition \\<servername>\<resource-name>\. In our context we mean a specified device/directory
combination in either DOS or UNC format. This specifically excludes the filename and
extension. Examples of this might be c:\dgn_files\ and \\server\drive_c\dgn_files\.
Page 93
Custom installation
The Axiom installation program updates or creates certain environment variables in the
active user configuration at the time of installation. If you change User Configurations
the Axiom pull-down menu will not appear unless you reinstall the software from that
User Configuration or manually update and create the appropriate environment
variables.
The installation program creates a new MicroStation environment variable called AXI
and it updates the MS_DGNAPPS and MS_MDL MicroStation environment
variables.
AXI is defined as: The path to the Axiom directory followed by the necessary \ or /
character. It will not work without the appropriate trailing slash.
Example: AXI = c:\axiom\
MS_DGNAPPS has in its expansion: The full path and the filename aximenu.ma.
Aximenu.ma loads the Axiom pull-down menu.
Example: MS_DGNAPPS = c:\axiom\aximenu.ma or $(AXI)aximenu.ma
MS_MDL has in its expansion: The path to the Axiom directory followed by the
necessary \ or / character.
Example: MS_MDL = c:\axiom\ or $(AXI)
Page 94
English-to-Metric
2D and 3D
English-to-Metric works on both 2D and 3D design files.
Undo
The MicroStation Undo function will not undo an English-to-Metric conversion. You
must reverse the conversion settings and run English-to-Metric again. Or, having set the
backup option, you can simply revert to the backup file.
Blue Demo
By default, Demo Licenses will only allow files of 200K or less to be processed by
English-to-Metric. This is sufficient for demonstration purposes in many cases. However,
many of our users have expressed the desire to be able to convert their larger files to
determine if the program actually fulfills all their requirements. For this reason, what we
call the Blue Demo mode was implemented. In this mode, all processed elements are
changed to color 1, level 1. (Color #1 is blue in MicroStations default color palette,
hence the name Blue demo.) If you have only a demo license and wish to process files
over 200K, create a MicroStation configuration variable named BLUEDEMO and assign
it any value (e.g. BLUDEMO=X). English-to-Metric will detect it and thereafter process
Page 95
files of any size, changing all displayable elements to color 1, level 1. To revert to the
standard 200K limit demo, simply delete the BLUEDEMO MicroStation configuration
variable.
Dimensions
There are a couple of internal bugs in MicroStation relating to scaling dimension
elements.
The first has to do with dimension elements which were originally placed with
Association Lock turned On, and Relative Dimension Lines (Element |
Dimensions | Placement | Relative Dimension Lines) turned Off. This bug in
MicroStation can be seen by selecting an element and its associated dimension (which
was placed as above), and resizing them using the Scale tool from the Main tool
palette. The result from this operation is that the extension lines are not scaled correctly.
The second bug has to do with tolerances. The text size for the tolerance text is not scaled
with the rest of the settings.
English-to-Metric uses MicroStations internal scaling processes to scale all elements.
Therefore, when MicroStation corrects these situations, they will automatically be correct
when files are processed by English-to-Metric.
Station conversion
By default, English-to-Metric will interpret measurements in the form n1 + n2 as (n1
* 100) + n2. However, a factor of 100 is not always used by all installations. For
instance, n1 may represent thousands of units instead of hundreds of units. For this
reason, there needs to be some method of changing the significance of n1. This is
provided via the use of the ENGLISH_STATION and METRIC_STATION MicroStation
configuration variables. Simply create the configuration variables and assign to them the
number of units which n1 represents for each conversion type in your project. For
example, you may have English designs that use 100 units per station and you are
converting to a metric system in which the station represents 1000 units. In this case you
would create a configuration variable named METRIC_STATION and assign it the value
of 1000. Then simply convert as usual.
Page 96
English-to-Metric
converting the demo files, the calculated X-axis value is -24151.455773. This can be
rounded to 25000.0 making it somewhat simpler.
Remember that this does not change the relative distances between the GO and the
design elements. All it does is change the positions of the elements slightly, relative
to the design plane after conversion. This type of rounding can be useful in mapping
applications.
2. When the GO must display the same distance before and after conversion. E.g.
MicroStation displays 1000,1000 in response to a key-in of go=$ before
conversion, and you want it to display 304.8,304.8 after a conversion from English
to Metric.
This is very easily accomplished by multiplying the From GO values by the Master
Unit Conversion Factor and entering the result into the To GO field. Using the
above example, 1000 X .3048 = 304.8, so that is what you would enter into the To
field.
3. When the GO must have the same location relative to the design plane before and
after conversion. In other words, it must be the same number of positional units from
the lower left corner of the design plane before and after conversion.
This type of situation requires a formula:
tGO = (fGO x (fSUMU x fPUSU)) / (tSUMU x tPUSU)
where
tGO stands for To global origin and represents the value to be entered into
that field
fGO stands for From global origin and represents the value displayed in
that field
fSUMU stands for From su per mu and represents the value displayed in
that field
fPUSU stands for From pu per su and represents the value displayed in that
field
tSUMU stands for To su per mu and represents the value displayed in that
field
tPUSU stands for To pu per su and represents the value displayed in that
field
Note: All of these solutions are still subject to the laws regarding pushing elements off
the design plane. That is, if the resulting GO would cause elements to be moved off the
design plane, in whole or in part, English-to-Metric will not be able to process the file,
regardless if the correct values were used for any of these solutions.
Page 97
Page 98
English-to-Metric
Page 99
Page 100
English-to-Metric
point to the location of English-to-Metric settings files. This way an individual user can
point to, for example, their home directory where their own personal English-to-Metric
settings file resides.
A Help | Contents... menu option now displays the English-to-Metric Users Guide in
Windows Help format.
English-to-Metric now has the ability to automatically process reference files.
We upgraded the function that allows any rule to change a text string by a set value. The
function now accepts linear formulas and can be executed independently, without other
conversions.
We combined the Text Conversion Rules and Modify Text Conversion Rule dialog
boxes into one dialog box named Text rules. This makes it easier to create and modify
text conversion rules.
We restored the environment variables, ENGMET_ENG_TO_MET and
ENGMET_MET_TO_ENG, which had been omitted from a recent version. These variables
allow entering conversion factors different from the defaults.
ASCII codes may now be used in text rule regular expressions.
Converted text can now display in a color and on a level of your choice.
At the end of processing a list of files, the original file will become the active file. When
English-to-Metric loads, the active file will always be the file in the Design files field.
Lists of design files will not be saved, although you may save and recall them through the
List | Import and List | Export options of the Edit Design File List dialog box.
In the past, you had to close and re-open English-to-Metric after loading a new design file
in order to pick up the new default values. Now the parameters are automatically reset
when you load another design file in MicroStation.
We added a new options category named Unconverted Files which gives you five
choices regarding what to do if your conversion settings will cause any elements to be
pushed off of the design plane or cube.
The backup file extension now defaults to .bkp.
Base file parameters that appear in the options boxes will be re-loaded after conversion to
reflect the new settings of the active file.
We handled a problem with the conversion of shared cells.
If you set the global origin (or certain other numeric values) to invalid values, these
values will now be highlighted in red. Additionally, English-to-Metric has long had an
option to flag elements that would not fit on the design plane based on current settings. A
new function allows you to delete those flags at the touch of a button.
The <Test> button in the main English-to-Metric dialog box will now test all selected
design files instead of just the active file.
The warning message: Current design file not present among files to be processed. Do
you want to process it? gave only two options, <Yes> and <No>. We added the option
<Cancel>.
When running with a demonstration license, a warning will display upon loading
English-to-Metric telling users they are running in demo mode.
Page 101
Page 102
English-to-Metric
Page 103
named METRIC_STATION and assign it the value of 1000. Then simply convert as
usual.
Page 104
English-to-Metric
The copyright year, displayed in the about box, license display box, status line, etc., is
now displayed with all four digits, instead of only the last two. This is a result of handling
the year 2000 problem within each program.
Support for using UNCs (Universal Naming Conventions) to specify file names was
added.