sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Naming 'Untitled'

    scheduled pinned locked moved Developers' Forum
    3 Posts 2 Posters 169 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • M Offline
      MartinRinehart
      last edited by

      Your Ruby does a File/New. Create some geometry. model.save "myname.skp".

      Your SU still says it has "Untitled". Any way to tell it that it's got a name?

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      one-reply-to-this-post last-reply-time reply quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @martinrinehart said:

        Your Ruby does a File/New. Create some geometry. model.save "myname.skp".
        Your SU still says it has "Untitled". Any way to tell it that it's got a name?

        Using model.save("myname.skp") DOES save it [overwriting any earlier files of that name without warning] - check in your current working directory - often /Plugins/... but best to give it a proper path...
        What you saved is NOT what is now open.
        BUT you can then open it with UI.openURL("myname.skp") leaving the original 'Untitled' one still open too OR better you can use Sketchup.open_file("myname.skp") to open that newly made file, with the 'Untitled' one being closed without saving... 🤓

        TIG

        one-reply-to-this-post last-reply-time reply quote 0
        • M Offline
          MartinRinehart
          last edited by

          @tig said:

          better you can use Sketchup.open_file("myname.skp") to open that newly made file, with the 'Untitled' one being closed without saving

          Thanks, TIG. Any way to fire that extra "N" (don't save Untitled) from Ruby?

          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

          one-reply-to-this-post last-reply-time 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