No API help for importer class?
-
Why is there no help topic for this class?
http://download.sketchup.com/OnlineDoc/gsu6_ruby/Docs/ruby-importer.html#load_file
Does anybody have any info relating to methods for this class? -
@unknownuser said:
import
The import method is used to load a file by recognizing the file extension and calling appropriate importer.Syntax
status = model.import "path+filename", show_summary
Arguments
“path+filename” – the path and name of the file to import. [It works out the importation type from the file's suffix of .dwg/.dxf/.skp/ etc]show_summary - true if you want to show a summary window, false if you do not want to show a summary window.
Return Value
status – true if successful, false if unsuccessfulso I'd expect that:
Sketchup.active_model.import("C;\\...FULL_PATH_TO...\\my.dwg",false)should work [it does].
Incidentally the equivalent model.export(filepath,false) method also works...
-
Thanks mate. Thats very helpful.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement