Print Page | Close Window

Georeferencing images in Autocad 2018.

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12755
Printed Date: 17.May.2026 at 05:35


Topic: Georeferencing images in Autocad 2018.
Posted By: Joerundm
Subject: Georeferencing images in Autocad 2018.
Date Posted: 11.Jun.2018 at 11:29
Hi, I am trying to use GeoRefImg for putting together a map from a number of jpg files in ACAD2018. 
The issue is that the images once referenced disappears - they are not shown in the file, even if the filemanager shows that they have been imported. 

Is there any other way than using GeoRefImg that can be utilized to simply import and georef the into ACAD?

If there is a batch script that could be very useful. 

Joerund



Replies:
Posted By: Vladimir Michl
Date Posted: 11.Jun.2018 at 11:35
Hello,
GeoRefImg just repositions and rescales an existing image as defined in the image's world file. The image should not be deleted by it. Can you see any error message? Do you have the JGW world files in the same folder as JPGs?


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: Vladimir Michl
Date Posted: 11.Jun.2018 at 12:57
As for the batch script. You can use batch script both for attaching the images and for georeferencing them.
The script file is just a text file containing all characters (keystrokes) you would have typed manually. So for inserting and repositioning/rescaling you would use a similar text file (save it as a .SCR file and start in AutoCAD with the SCRIPT command) - assumes 3 images, the only images in the drawing:
_IMAGE _A "C:\MyPictures\ImageToAttach1.jpg" 0.0,0.0 1.0 0.0
_IMAGE _A "C:\MyPictures\ImageToAttach2.jpg" 0.0,0.0 1.0 0.0
_IMAGE _A "C:\MyPictures\ImageToAttach3.jpg" 0.0,0.0 1.0 0.0
(load "georefimg.vlx")
GEOREFIMG _All
 
ZOOM _All
 


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: Joerundm
Date Posted: 11.Jun.2018 at 13:39
Thanks Vladimir, 

I figured it out. it had something to do with the fact that i had old fun in my drawing - something was drawn far away from the image - zoom all/extents showed to small of a resulotion. 

So, now i have successfully loaded the images and successfully, i ran the command georefimg command through the load application. I am now aiming to build my script via notepad and run it as you described. 

The only matter now is that when i right click on the imaga properties, the scale is not what the input file jgw file says. should this not be the same value?

Joerund


Posted By: Vladimir Michl
Date Posted: 11.Jun.2018 at 14:16
No, the values in the world file are quite complicated. Just believe the resulting scale and rotation in AutoCAD :-)


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window