Working with Large Coordinates in AutoCAD

Learning
Working With Large Coordinates in AutoCAD

Remember when you got your first calculator or calculator app and took the square root of 2 repeatedly and then squared it the same number of times to see how far off the calculator went? You might have ended up with 1.99999… instead of 2. The inaccuracy was due to round-offs because of the limited number of significant digits available. The same is true for personal computers running AutoCAD or any other high-precision application software.

Coordinate System Standards and Precision

Civil engineering, surveying, and mapping are examples of disciplines that might need to locate map features such as facilities or structures using a specified projection or various coordinate systems such as a local zone in the U.S. State Plane Coordinate System. The coordinates in these drawings are usually quite large. The problem with large coordinates is that they use up a good portion of the precision that you get from double-precision floating-point data just to locate objects. Let me explain.

Data Format and Precision

AutoCAD stores geometric data in a standard IEEE 64-bit binary format that’s allocated like this:

  • 1 bit for the sign, positive or negative.
  • 11 bits for the exponent, the powers of 10 included in the value. The 11-bit exponent provides maximum and minimum real values for shifting the decimal point more than 300 places to the left or to the right. No problem there.
  • 52 bits for the mantissa, which is sometimes called the significand, fraction, or coefficient. This provides the decimal places of precision available from all computations and stored values.

Converting from 52 bits in binary to decimal gives you 15-17 decimal places as a theoretical maximum. The actual precision in a drawing is less than this, depending on internal tolerances, the effects of multiple computations, and fuzz factors. Usually, this is not a problem . . . unless the coordinates are large.

AutoCAD and Precision

Because numeric data in AutoCAD are stored in “world coordinates” (WCS), the more decimal places you consume in locating geometric objects away from the WCS origin, the fewer you have left over for precise computations involved in rotating, trimming and extending, computing tangents, creating small offsets, detecting tiny interferences, and so on. The additional decimal places are rounded off, and that’s the source of the problem just as it was with your calculator.

Large Coordinates in AutoCAD

You might be asking yourself whether the settings specified in the UNITS command and the DIMDEC system variable affect the precision in a drawing. The answer is no. These settings control only the number of decimal places that are displayed for locations, distances, and dimensions. They do not affect the precision of locations and computations. Moving the UCS near the area where you’re working reduces the size of the coordinates displayed and entered, but also doesn’t affect the precision.

Workarounds for Large Coordinates

There are several workarounds and a solution for working in a drawing with large coordinates.

Workaround 1: Create everything reasonably close to the WCS origin (0,0,0) and add a note to identify the origin in a specified mapping coordinate system.

Workaround 2: Create everything reasonably close to the WCS origin and then use the BLOCK command to save the selected data to a block definition before placing or moving the block instance at a location with large coordinates. This method preserves the precision of the objects within a block definition, but there are two drawbacks:

  • It’s less convenient to edit a block definition than other objects within the drawing
  • The precision of geometric operations involving the block instance with other objects when located very far from the WCS coordinates will still result in round-off errors.

Workaround 3: Create everything reasonably close to the WCS origin and then use XREF to reference this drawing from a drawing with large coordinates. This method is similar to using block definitions. It has the advantage of retaining the precision of a facility or structure in a separate DWG file. However, round-off errors will still occur with operations at large coordinates.

Workaround 4: Create a “footprint” of the facility or structure near the WCS origin using a closed polyline, and then use the HYPERLINK command to link it to drawing file. When you press Ctrl while selecting the polyline, it opens the associated drawing file in a new tab.

Large Coordinates in AutoCAD

The advantages of this method include smaller drawing file sizes and better performance. It also provides an appropriate abstraction level for small constructions at the scale of a large map. In other words, you probably don’t need the dynamic range of zooming to a rivet on the Sydney Harbour Bridge within a map of Australia. The disadvantage of this method is that the hyperlink paths have to be specified or changed manually for each instance. Round-off errors are still present, but they involve simpler and far fewer objects.

The Ideal Solution for Large Coordinates

While it’s preferable to preserve the maximum precision by creating objects close to the WCS origin, what can you do when you absolutely need to specify both large mapping coordinates and preserve precision down to small values?

The ideal solution is to use AutoCAD Map 3D or Civil 3D for work that requires high precision at large coordinates. These products have a built-in method that employs internal “lookup tables” for a variety of mapping coordinate standards. The tables deliver location and distance data in the specified coordinate system or transformation from a coordinate library without compromising precision. The large-coordinate shift in your drawings is maintained separately, while computations are performed with high precision using smaller numbers.

For more specific information about coordinate systems within AutoCAD Map 3D and Civil 3D, you can refer to the AutoCAD Map 3D Help documentation:
AutoCAD Map 3D Help: About Coordinate Systems
AutoCAD Map 3D Help: About Creating Coordinate Systems
AutoCAD Map 3D Help: About Global Coordinate Systems

Try AutoCAD free for 15 days
The AutoCAD Blog is all about helping you get the most out of AutoCAD. It's also the best way for you to connect with the makers of AutoCAD. Subscribe to keep up with AutoCAD

______
icon-svg-close-thick

Cookie preferences

Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

May we collect and use your data?

Learn more about the Third Party Services we use and our Privacy Statement.

Strictly necessary – required for our site to work and to provide services to you

These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

Improve your experience – allows us to show you what is relevant to you

These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

Customize your advertising – permits us to offer targeted advertising to you

These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

icon-svg-close-thick

THIRD PARTY SERVICES

Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

icon-svg-hide-thick

icon-svg-show-thick

Strictly necessary – required for our site to work and to provide services to you

Qualtrics
W
Akamai mPulse
W
Digital River
W
Dynatrace
W
Khoros
W
Launch Darkly
W
New Relic
W
Salesforce Live Agent
W
Wistia
W
Tealium
W
Upsellit
W
CJ Affiliates
W
Commission Factory
W
Google Analytics (Strictly Necessary)
W
Typepad Stats
W
Geo Targetly
W
SpeedCurve
W
Qualified
#

icon-svg-hide-thick

icon-svg-show-thick

Improve your experience – allows us to show you what is relevant to you

Google Optimize
W
ClickTale
W
OneSignal
W
Optimizely
W
Amplitude
W
Snowplow
W
UserVoice
W
Clearbit
#
YouTube
#

icon-svg-hide-thick

icon-svg-show-thick

Customize your advertising – permits us to offer targeted advertising to you

Adobe Analytics
W
Google Analytics (Web Analytics)
W
AdWords
W
Marketo
W
Doubleclick
W
HubSpot
W
Twitter
W
Facebook
W
LinkedIn
W
Yahoo! Japan
W
Naver
W
Quantcast
W
Call Tracking
W
Wunderkind
W
ADC Media
W
AgrantSEM
W
Bidtellect
W
Bing
W
G2Crowd
W
NMPI Display
W
VK
W
Adobe Target
W
Google Analytics (Advertising)
W
Trendkite
W
Hotjar
W
6 Sense
W
Terminus
W
StackAdapt
W
The Trade Desk
W
RollWorks
W

Are you sure you want a less customized experience?

We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

Your experience. Your choice.

We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

May we collect and use your data to tailor your experience?

Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.