mcneel/rhinopython — Issue #64: GetDocumentData - Entries skipped.
Author: pgolay
Created: 2011-10-16 01:17:12+00:00
State: open

Start a new file, add some document data:

rs.SetDocumentData("Oingo", "Boingo", "pfuh")

then, GetDocumentData() with different arguments:

print rs.GetDocumentData()

gets me ['Oingo'] - so far OK.

but
print rs.GetDocumentData("Oingo")

gets me ['pfuh') but should get me ['Boingo']

and

print rs.GetDocumentData("Oingo", "Boingo")

gets me pfuh

as expected again.

import rhinoscriptsyntax as rs

rs.SetDocumentData("Oingo", "Boingo", "pfuh")

print "First its " , rs.GetDocumentData()

print "Then its " , rs.GetDocumentData("Oingo")

print "Finally its " , rs.GetDocumentData("Oingo", "Boingo")