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?
Advertisement