@pgs wrote:
I am trying to add a name attribute to a rhinodoc object, similar to the ObjectName method in rhinoscript\object.py. However, CommitChanges returns False. How can I work around this?
Pål
doc = Rhino.RhinoDoc.New(None) Rhino.RhinoDoc.ActiveDoc = doc crv = Rhino.Geometry.ArcCurve() guid = doc.Objects.AddCurve(crv) obj = doc.Objects.FindId(guid) obj.Attributes.Name = 'test' obj.CommitChanges() #This returns False
Posts: 1
Participants: 1