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

    Edit the dxf/dwg importer

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 3 Posters 255 Views 3 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.
    • P Offline
      Pout
      last edited by

      Simple question: Is the dwg/dxf importer accessible?
      Thx

      1 Reply Last reply Reply Quote 0
      • honoluludesktopH Offline
        honoluludesktop
        last edited by

        SU doesn't provide native access to importers. But because dxf is data in ascii form, it can be easily edited with a simple text editor. What are you trying to do?

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

          @pout said:

          Simple question: Is the dwg/dxf importer accessible?
          Thx

          You use Sketchup.active_model.import(path_to_CAD_file.dwg, boolean)
          The importer knows from the file suffix if it's a dwg or dxf.
          The boolean controls if a report is displayed - true/false...
          You can't readily control the 'options' as the ones currently set in the manual Import options for dwg/dxf will be used for the API import... [You can 'script' PC code to open the import dialog and change options but it's a bit clunky - see an old version of my 'Xref Manager' script set...]

          TIG

          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