Naming 'Untitled'
-
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?
-
@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 withUI.openURL("myname.skp")leaving the original 'Untitled' one still open too OR better you can useSketchup.open_file("myname.skp")to open that newly made file, with the 'Untitled' one being closed without saving...
-
@tig said:
better you can use
Sketchup.open_file("myname.skp")to open that newly made file, with the 'Untitled' one being closed without savingThanks, TIG. Any way to fire that extra "N" (don't save Untitled) from Ruby?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement