Author Topic: Download imagen via lisp  (Read 405 times)

0 Members and 1 Guest are viewing this topic.

dgpuertas

  • Mosquito
  • Posts: 16
Download imagen via lisp
« on: April 26, 2012, 03:14:36 am »

I need to save images from Internet to my HD.
ie

(url->disk "http://www.theswamp.org/screens/mp/theswamp_logo11.png" "c:\swamp.png")


I try:
Code: [Select]
(setq html (vlax-create-object "InternetExplorer.Application"))

(vlax-invoke-method html 'Navigate2 "http://www.theswamp.org/screens/mp/theswamp_logo11.png")

But a dialog from save appears and i need to save in the disk without dialog
Any idea?

Thanks and sorry about my english.

Patrick_35

  • Bull Frog
  • Posts: 243
  • Rennes, France
Re: Download imagen via lisp
« Reply #1 on: April 26, 2012, 07:07:56 am »
Hi

Are you try vla-getremotefile in (vla-get-Utility (vla-get-ActiveDocument (vlax-get-acad-object))) ?

An example

@+
The shape even of the pyramids of Egypt shows that already the workmen tended to make some less and less.
Will Cuppy, 1884-1949.

Lee Mac

  • Needs a day job
  • Posts: 8808
  • AutoCAD 2013 Windows 7 London, England
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?

dgpuertas

  • Mosquito
  • Posts: 16
Re: Download imagen via lisp
« Reply #3 on: April 26, 2012, 11:06:58 am »
Thanks a lot.
Works good.

now i can download raster from wms or google maps and "georeferenced" (i dont know if that word exists) in AutoCAD in UTM coordinates.

Thanks Patrick, thanks Lee Mac.



BlackBox

  • Water Moccasin
  • Posts: 2255
"Potential has a shelf life." - Margaret Atwood