Global Mapper v26.0

Drawing units is wrong in exported DWGs

Hello,

When exporting vector data to DWG i get the wrong drawing units. Projection is correct embedded in the DWG but the drawing units is in feet instead of meter.

I got this issue with an update and i cant find where to change the settings.

Tagged:

Answers

  • GoranBregovic
    GoranBregovic Global Mapper User

    anyone know?

  • GoranBregovic
    GoranBregovic Global Mapper User

    To clarify, every exported DWG from global mapper has the drawing setting set to feet, even tho the values are in meter.

  • GoranBregovic
    GoranBregovic Global Mapper User

    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



  • GoranBregovic
    GoranBregovic Global Mapper User

    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



  • GoranBregovic
    GoranBregovic Global Mapper User

    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

  • GoranBregovic
    GoranBregovic Global Mapper User

    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.

  • GoranBregovic
    GoranBregovic Global Mapper User

    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!