LISP for Insert or Import images to PSPACE viewports

LISP for Insert or Import images to PSPACE viewports

mbk.ee11
Explorer Explorer
637 Views
3 Replies
Message 1 of 4

LISP for Insert or Import images to PSPACE viewports

mbk.ee11
Explorer
Explorer

Hi, There are images saved in local folder and I need those images to be inserted/imported using VLISP to autocad drawing paper space viewports. Image file names and CAD drawing pspace viewport names are identical to each other. So each images to be placed on respective grid named in the drawing viewports. Is there any autocad command or a existing LISP code available so that all the images can be inserted at time?. Attached sample dwg and image files in zip.

0 Likes
638 Views
3 Replies
Replies (3)
Message 2 of 4

devitg
Advisor
Advisor

@mbk.ee11  there is not 

 

Attached sample dwg and image files in zip.

 

Please upload 

 

 

0 Likes
Message 3 of 4

mbk.ee11
Explorer
Explorer

Attached zip to main post. Thank you!

0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor

1st answer is yes can be done. Do this for client logo insert into title block.

 

2nd answer is every day I attached geo referenced images to dwg, that includes multiple images, a geo referenced image will have a JPG and a JGW file output from the software you are getting the arial image from. If you can work out how to get the jgw file as well then its easy, the big advantage is its in real world co-ords so if you have say a field survey then image will be correctly over top.

 

Just insert image/s  in Model, then run  Lisp attached it will move and rescale the images to real world co-ordinates.

 

near map example

SeaHaven_0-1667088912403.png

 

 

0 Likes