Drawing units is wrong in exported DWGs
Answers
-
anyone know?
-
To clarify, every exported DWG from global mapper has the drawing setting set to feet, even tho the values are in meter.
-
No one else with this problem?
-
Hi Goran,
I export/import between AutoCAD and GM almost every day and I've never had this problem. Do you have Distance Units set to Metric (m/km) as per below? I'm not sure why you have this error otherwise?
Hope this helps...
ta,
/al
-
It did not help. thank you anyway.
I was thinking that maybe the drawings from GM is unitless but my settings in autocad is to set unitless drawings to meter, which should mean that the drawings from GM probably is in Feet.
I also export to DWG daily from GM which makes it a bit irksome that i need to open every drawing to reset the correct drawing units. I did a lisp for it, so that i only need to write a command.
-
Hi Goran,
Not sure if it makes any difference, but my AutoCAD default "Insertion Scale" is millimetres as shown below? Maybe worth a try?
I've also attached a very simple trial dwg comprising two lines (736.5 m and 758.6 m long) to see what you get when you open it in AutoCAD.
Cheers,
/al
-
When opening your dwg and checking UNITS and DWGUNITS they are both in feet.
Thank you for taking your time and uploaded a dwg
-
Wow! I have no idea...
You might want to contact GM support at geohelp@bluemarblegeo.com
Ta,
/al
-
Thank you. I did contact support and they are looking into it
-
I've raised this several times and it still exports DWG/DXF in feet. If you have a solution could you kindly share it? Thanks.
-
Until its solved i use this lisp on drawings from GM.
It sets drawing units and insertion units to meter. Converts 2d-polylines to regular polylines. Sets color by layer on all object. Change layer color of contour layers. asks if it should rename contour layers
(defun c:gm (/)
(command "-DWGUNITS" "6" "2" "4" "no" "no" "no")
(command "-units" "2" "4" "3" "4" "300" "y")
(command "_insunits" "6")
(command "setbylayer" "all" "" "y" "y")
(command "convert" "" "")
(command "-layer" "c" "4" "Contour Line_ Major" "")
(command "-layer" "c" "8" "Contour Line_ Intermediate" "")
(if (progn
(initget "Yes No")
(if (= "Yes" (getkword "\nByta Change contour layer names? [No/Yes] <No>: "))
t nil
)
)
(progn
(command "-rename" "la" "Contour Line_ Major" "Niv_5m")
(command "-rename" "la" "Contour Line_ Intermediate" "Niv_1m")
)
)
)
-
Thanks for the Lisp - that'll save some time!
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 637 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website