I’m trying to develop a plugin that download files from my custom server but i’m getting problems in Sketchup 2017 and 2016 using definitions.load_from_url
Here’s a sample code:
def self.downloadModel() url = 'http://myserver.com/a.skp' mod = Sketchup::active_model cdef = mod.definitions.load_from_url(url) return unless cdef Sketchup.active_model.place_component(cdef) end
And here is the behavior:
Sketchup 2018 - Software keeps responsible during download and freezes during import (OK)
Sketchup 2017 - Software is irresponsible during download and import (BAD)
Sketchup 2016 - Software is irresponsible during download and import (BAD)
Usually if you don’t try to do things in the software after the download ends it get back but is very common random crashes when you try to interact with the interface during the download/import of the file in 2016 and 2017.
So how can i get models from web in Sketchup 2016 and 2017 without freezes the interface during the download?