@tig said:
The importer v1.0 was made to import 'geometry files' only.
Images require you to pick a position and a scale - there is no 'automated way' of doing this viaimport
- it must be byentities.add_image
- I'll add this to the importer too...
Thanks, TIG for clever advice. I did this to import a local file, and it worked:
objEntities=Sketchup.active_model.entities
point = Geom::Point3d.new 10,20,30
objEntities.add_image "c:/temp/ypykka800.jpg", point, 300, 300
The user interface File > Import... > file open dialog would accept a URL as a file reference. Is there a way of doing that in a SU Ruby script or do I have to get the file first into a local directory?
BTW I didn't spot entities.add_image as I don't have a way browsing the reference material. Is there a reference manual in PDF which would be a bit easier to delve into than the online HTML pages?