Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5896

Rhino saves file then (annoyingly) prompts to save file

$
0
0

@Peter2 wrote:

I have created a 3D dxf file from Excel inputs.. It has one annoying issue -- it prompts to save the file (but the script has already saved. I have to press the "N" key repeatedly to resolve issue. Is it possible for someone to tell me what I am doing improperly?

Peter

Here is a portion of the code:

# save the file
save(partName)
#clearworkspace()
# remove rectangle (as quicker and easier than doing "new file")
rs.DeleteObject(createdObj)

def save(fn):
fName= fn + ".DXF"
cmd = "_-Save " + chr(34)+DXFPATH+fName+chr(34)+ " _Enter"
print "Savecommand:", cmd
print "save=",rs.Command( cmd,echo=dBGFLAG)
def clearworkspace():
cmd = "_-New _None" + " _Enter"
print "New command:", cmd
print "new=", rs.Command( cmd,echo=dBGFLAG)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5896

Trending Articles