Ejemplo n.º 1
0
 /// <summary>
 /// Low level function to set formattted string data to an
 /// object's attribute user string data.
 /// </summary>
 public static bool SetData(IRhinoObject obj, string string_data)
 {
     if (obj != null)
     {
         MRhinoDoc doc = obj.Document();
         if (doc != null)
         {
             MRhinoObjectAttributes atts = new MRhinoObjectAttributes(obj.Attributes());
             if (atts.SetUserString(GetKey(), string_data))
             {
                 return(doc.ModifyObjectAttributes(new MRhinoObjRef(obj), atts));
             }
         }
     }
     return(false);
 }
 /// <summary>
 /// Low level function to set formattted string data to an
 /// object's attribute user string data.
 /// </summary>
 public static bool SetData(IRhinoObject obj, string string_data)
 {
     if (obj != null)
       {
     MRhinoDoc doc = obj.Document();
     if (doc != null)
     {
       MRhinoObjectAttributes atts = new MRhinoObjectAttributes(obj.Attributes());
       if (atts.SetUserString(GetKey(), string_data))
     return doc.ModifyObjectAttributes(new MRhinoObjRef(obj), atts);
     }
       }
       return false;
 }