sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    No API help for importer class?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 686 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      toxicvoxel
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @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 unsuccessful

        so 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...

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          toxicvoxel
          last edited by

          Thanks mate. Thats very helpful.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement