OK, that was really helpful. Thanks! I had not realized that this was done with records.
In case this comes up for anyone else, this seems to work for me (Python script):
#User defined project name
strProjectName = vs.StrDialog('Set the project name','[changeme project name]');
#Sheet data record format and field
strRecordName = 'Title Block Project Data'
strRecordField = 'Project Name'
def SetRecord(h):
vs.SetRField(h,strRecordName,strRecordField,strProjectName);
vs.ResetObject(h);
criteria = '((R in [' + "'" + strRecordName + "'" + ']))';
vs.ForEachObject( SetRecord, criteria);
The key is to use the ResetObject function after setting the drawing border field. Otherwise the record gets set but it doesn't display correctly until the drawing border is edited again. This works with Sheet data as well, but I have not messed with Revision or Issue at this point.
Note that I'm a terrible coder, so there's no error checking or anything like that. But it does work!
-Dan