mcneel/rhinopython — Issue #65: Cannot delete doc data
Author: pgolay
Created: 2011-10-16 01:23:35+00:00
State: open

Add some document data and then check it as below- data does not seem to get deleted.

import rhinoscriptsyntax as rs

rs.SetDocumentData("Oingo", "Boingo", "pfuh")
print "Set " , rs.GetDocumentData()

#then delete it, and check it

rs.DeleteDocumentData()
print "Delete 1 " , rs.GetDocumentData()

rs.DeleteDocumentData("Oingo")
print "Delete 2 " , rs.GetDocumentData()

rs.DeleteDocumentData("Oingo", "Boingo")
print "Delete 3 " , rs.GetDocumentData("Oingo")