Example #1
0
 /// <summary>Turns on/off the object's editing grips.</summary>
 /// <param name="customGrips">The custom object grips.</param>
 /// <returns>
 /// true if the call succeeded.  If you attempt to add custom grips to an
 /// object that does not support custom grips, then false is returned.
 /// </returns>
 public bool EnableCustomGrips(Rhino.DocObjects.Custom.CustomObjectGrips customGrips)
 {
   IntPtr pConstThis = ConstPointer();
   IntPtr pGrips = customGrips==null?IntPtr.Zero:customGrips.NonConstPointer();
   bool rc = UnsafeNativeMethods.CRhinoObject_EnableCustomGrips(pConstThis, pGrips);
   if (rc && customGrips != null)
   {
     customGrips.OnAttachedToRhinoObject(this);
   }
   return rc;
 }