sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Naming 'Untitled'

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

      1 Reply Last reply 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

        1 Reply Last reply 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.

          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