Posts Tagged ‘global origin’

MicroStation Today — June 2009(Volume 16, Issue 6)

Monday, 1 June 2009

Click here for back issues.

MicroStation Today — June 2009 (Volume 16, Issue 6)

Download a PDF version of this issue.

To read the pages above, download Adobe®‘s free Acrobat Reader®, if not already installed in your computer.

Save time and prevent a CAD standards nightmare.

Friday, 15 May 2009

Part two in a series of articles on the mysteries of global origin

By Rick Dewitt

Have you ever started a project and noticed that one or more reference files didn’t seem to line up in your master files the way you expected or that the geometry you expected to be a particular size was too big or too small? In a previous issue of MicroStation Today, I wrote the first segment of an in-depth discussion on the frequently misunderstood subject of “global origins”. [Editor's note: See MicroStation Today Volume 16, Issue 3. The article can be found here] Not understanding global origin and a closely related topic, “working resolution”, can lead to a host of questions such as:

Not knowing how global origin affects your design files could result in time-consuming and costly mistakes — the kind that keep you up at night.

  • What exactly is the global origin?
  • What happens if you change it?
  • How do you change it?
  • How does it affect reference files?
  • How is working resolution related?
  • Does Axiom have any products that can help fix global origin and working resolution problems?

In this article, I will continue that discussion so you have an even better grasp of the subject, how it can impact your projects and what you can do if you discover the global origin is wrong in some or all your project design files.
If you ever had a time when one or more reference files didn’t line up in your master files the way you expected after attachment or the geometry appeared way too big or way too small, then you had mismatched global origin settings, working unit settings, working resolution settings or some combination of all three.

The global origin is a setting made relative to the MicroStation design plane (for 2D) or cube (for 3D) which defines where the x=0, y=0 and z=0 coordinate point is located. The global origin point, when you ask MicroStation, is defined (set) as a certain number of master units (like feet or meters) from a predefined fixed point on the design plane (or cube) along each axis. The “predefined fixed point” is set by Bentley (more on this below).
“Master units”, as you probably know, define what we will call the real world distance measurement in a design file.

For civil engineering projects, this is usually feet or meters. If you are designing circuit boards however, you would probably prefer inches or millimeters as a master unit.

“Working resolution” defines how many units of resolution are going to be used to make up a specific unit of measure like a foot or a meter. For example, if you set the units of resolution to 1,000 units per foot in a design file, then a line that is one foot long will take up ten times more design plane than a one-foot line in a design file whose units of resolution are set to 100 units per foot. So, if you attach a reference file that uses 1,000 units of resolution per foot to a master file that uses 100 units of resolution per foot, at a scale of 1.0, then a one-foot line in the reference file will look like a ten-foot line in the master file.

Because the global origin is expressed as a value in master units like feet or meters, the same point on the design plane can have a very different value when the master units of two files are different or the working resolution is different for the same distance of measure.

Combining V7 and V8 files can create unexpected problems.
In MicroStation V8, the predefined fixed point used to help locate the global origin was changed from where this point was in V7. Specifically, the predefined fixed point was moved from the lower, left-hand corner (for 2D designs) to the exact center of the design plane. What’s more, the design plane is significantly larger (about 2 million times larger) in V8 than it was in V7. For 3D designs, the predefined fixed point was moved from the lower, bottom-left corner (where it was in V7) to the precise middle of the design cube (in V8). This change has created some confusions and problems — particularly when combining MicroStation V7 design files with MicroStation V8 design files in the same project.

One example of such problems occurs with “coincident” reference file attachments. When you make a coincident reference file attachment, MicroStation orients the two design files so the design planes match up exactly. It’s important to know that the thing MicroStation matches up is the design planes, not the global origins. In projects where all the design files (including all the reference files) use the same global origin and the same working resolution, then obviously all the global origins and geometry will happen to line up as well. Unfortunately, this is not the case if the global origin or working resolution settings of a master file are different from those of an attached reference file. In this case, the geometry in the reference files will not line up as expected due to global origin differences or the size of the elements will be wrong due to differences in working resolution.

When the global origins are different between master and reference files, a coincident attachment will offset geometry just like the global origins are offset above.

For instance, let’s say that you have a hybrid project that includes V7 design files, V8 design files and maybe even AutoCAD files. If each type (V7 or V8) of MicroStation file uses a different global origin setting and the working resolution settings are different, you are going to notice reference file geometry not having the expected orientation to the master file’s coordinate system. Also, the size of the geometry from the reference file will appear wrong.

Similar to the above, if the V7 or AutoCAD files are being translated into V8 format or vice-versa, you can easily run into the same problems if the translators are not set up to handle these factors properly. Understanding global origin and working resolution and how to fix them is crucial when you are responsible for creating projects that must comply to CAD standards or if you have to define the CAD standards others must follow.

Avoiding a time-consuming nightmare
Let’s say you translate a group of files from AutoCAD to MicroStation V8 without ensuring that the translated files come into MicroStation with the required working units (such as feet or meters), resolution settings and global origin settings. Guess what? You are playing Russian roulette with your company’s potential profit on that project. It’s true you might get lucky using the default translation settings or you might have a client who isn’t picky about settings as long as the sheets plot correctly. But if you aren’t lucky and the project has to be fixed to comply with a different resolution standard and a different global origin value, you will have a time-consuming nightmare on your hands. Why? Because changing the resolution changes the “real-world” size and location of every element already in the design file and changing the global origin changes the coordinate location of every element. To get things right after designing the project, you will have to re-scale and move everything. Re-scaling and moving elements obviously affects where reference file elements are going to display in master files. If reference file attachments are clipped, the elements in the reference files, after being rescaled and moved, will almost certainly disappear outside the clipping boundary, making it necessary to fix that as well. I could go on but I’m sure you get the point.

Some solutions may not meet your CAD standards.
In MicroStation V8, Bentley added a new attachment method called “Coincident World” to help make this all a little easier for users to deal with. “Coincident World” matches the attachment’s global origin to the master file’s global origin. This is really useful when files from multiple projects — that may have different global origin settings — are used together. Using this attachment method along with the “True Scale” option (which automatically scales the attachment to compensate for differences in working units or resolution) can make combining files from different projects very simple in V8 — provided you don’t have CAD standards that forbid having different global origin settings or different working resolution settings. Unfortunately for many, a number of CAD standards still require the use of very specific global origin and working resolution settings. When those settings aren’t followed, the time-consuming nightmare mentioned above comes into play.

Because of these problems, Axiom added additional features to Global File Changer that help isolate design files with non-standard settings and provide a way to easily update those design file settings to match the standard. Global File Changer and other tools from the MicroStation Productivity Toolkit provide effective solutions that can drastically reduce the time required to fix project design files, including those created using non-standard working resolution or global origins settings.

What do you mean the global origin is wrong?

Saturday, 7 February 2009

What’s all the fuss?

By Rick Dewitt
In the many years I have worked with CAD professionals, one area that seems to be consistently misunderstood is “global origin”. What exactly is it? What happens if you change it? How do you change it? How does it affect reference files? Does Axiom have any products that can help with this?

So let’s clear the air in this article by starting with exactly what the global origin is and give some explanation of how it is used. The “global origin” of a MicroStation design file (V7) or model (V8) is a setting which defines where, relative to the MicroStation design plane (2D) or cube (3D), the point where X=0, Y=0 and, for 3D files, Z=0 is located.

It helps when visualizing this concept to think of the MicroStation 2D design plane as a big piece of paper and the global origin as a point on this big piece of paper that we refer to as X=0 and Y=0 in the coordinate system. Although you could put the global origin outside of the piece of paper, we’ll assume, for this example, it’s on the paper. You could set the global origin point, as one example, to be the lower left-hand corner of our piece of paper. (See Figure 1.) If we decided to set our MicroStation design plane with this global origin setting then all the elements we draw on the design would have to have positive X and Y coordinate values because we are not allowed to draw elements outside the piece of paper.

If we set our global origin to be in the middle of our piece of paper then we would have the ability to draw using both the positive and negative X and Y axis directions.

Figure 1. If you set the global origin as the lower left-hand corner of a 2D design plane, then all of your drawing coordinates will be positive numbers.

So what’s all the fuss about global origins? Why not just set the global origin in the center of the design plane or cube for every drawing and get to work? Well, for example, one of the main reasons for difficulties with global origins stems from the fact that, in MicroStation versions prior to V8, the design plane wasn’t big enough for many users’ needs. To solve this problem, many companies and government entities developed CAD standards that demanded the use of a global origin that was located far away from the center of the design plane and still insist on this location today, in order to remain compatible with older (pre-V8) designs. If you will indulge me, I shall elaborate on this so you will have a complete understanding of what I just wrote.

Figure 2. If the center of your design plane was, for instance, the center of a city, then setting the global origin in the center of the design plane would allow you to draw or place elements to the left (a negative “X” coordinate) or below the center of the city (a negative “Y” coordinate).

Prior to V8, the design plane was limited to 4,294,967,296 (232) accessible points on each axis. The accessible points in a design plane were called “positional units”. Depending on the degree of accuracy required, these accessible points were divided by the number of positional units assigned to each master unit (such as feet or meters) to determine the overall “real world” size of the design plane (how big it is in feet or meters). A common usage would be a master unit of “feet” with a resolution of 1,000 positional units for each foot. So if we divide our total number of accessible points by 1,000, we get the total length of each axis in feet. In this case 4,294,967.296 feet. Now let’s say we put the global origin in the middle of our pre-V8 design plane. This would then give us 2,147,483.648 feet in both the positive and negative direction for each axis (in MicroStation). For many MicroStation users, this size was sufficient. However, for civil designs that use real-world coordinates, the number of feet required can easily exceed 4,000,000 on either axis. For these users, setting the global origin outside the design plane was the only way they could place design elements on the design plane when drawing to locations that required large coordinate values.

Example: A road to be built in Oregon has to be drawn using exact locations based on a recognized geographic coordinate system (a standard). In the United States, one common standard requires that geographic locations be represented by the number of feet that a location is to the east and to the north of a specific point (which point is also defined in the standard). In parts of Oregon, the X coordinate (based on this geographic standard) can be in the neighborhood of 4,298,000 feet from that fixed point. Therefore, when attempting to draw a road at this location in MicroStation V7, users had to have the global origin well off the design plane in order to draw their road at the correct “real-world” geographic coordinate point. (See Figure 3.)

Figure 3. Prior to MicroStation V8, some users such as civil engineers would sometimes have to set the global origin off the 2D design plane as the design plane simply wasn’t big enough to accommodate elements placed in design files with very large coordinate values.

Fortunately, as of MicroStation V8, the size of the design plane is now approximately 2 million times larger on each axis, which allows for a “real world” design plane that is much larger than available in previous versions of MicroStation. But even with this huge increase in size, many CAD standards still require global origin settings that match those of the earlier pre-V8 design files. This fact alone frequently causes confusion when other companies (that don’t still have this old requirement) create design files that are not based on this CAD standard.

Hopefully this description gives you a better understanding of “global origin” and of one of the main reasons global origins can cause difficulties. Unfortunately, the Editor informs me that I have already exceeded the column inches available and must wait until next issue to finish my explanation and answer the other questions posed at the beginning of this article. See the next part of this article in an upcoming issue of MicroStation Today.

MicroStation Today — February 2009(Volume 16, Issue 2)

Sunday, 1 February 2009

Click here for back issues.

MicroStation Today — August 2009 (Volume 16, Issue 2)

Download a PDF version of this issue.

To read the pages above, download Adobe®‘s free Acrobat Reader®, if not already installed in your computer.