sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    No API help for importer class?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 709 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