This problem has been reported before, but it’s still not fixed either on my laptop or desktop…
I have a macro to open a new file with my custom template:
If I have done something in the file so that the “modified” flag has been set to True - if I hit that button, I should normally get a popup that asks me if I want to save the file.
This worked (stilll works) fine in V7
In V8 and the WIP however, I get this:
And if I hit “No”, it asks me what template I want to use:
And yes, the file path is correctly set in Options>Files:
And the template file exists in the correct location:
There was a scripted hack (which I lost) that someone posted to fix this problem in V8 way back when, as I was not the only person experiencing this. Looks like the same problem persists here in the WIP… Is this something that other people are still seeing too, or is it just something odd with my install?
Edit - found the script, below if anyone wants it:
import rhinoscriptsyntax as rs
import scriptcontext as sc
def OpenTemplate():
template_name="YourTemplateName"
doc_name=rs.DocumentName()
if not doc_name: doc_name="Untitled"
if sc.doc.Modified:
msg="Save changes to {} ?".format(doc_name)
choice = rs.MessageBox(msg,3)
if choice==6:
#Yes - save changes
rs.Command("_Save") #save file
rs.Command("_-New {}".format(template_name))
elif choice==7:
#No - do not save changes
rs.Command("_-New _No {}".format(template_name))
else:
rs.Command("_-New {}".format(template_name))
OpenTemplate()





