예제 #1
0
        /// <summary>Array of Rhino Objects related to a Named Position.</summary>
        /// <param name="id">
        /// The Guid of the named position from which you want to retrieve the objects.
        /// </param>
        /// <returns>
        /// Array of Rhino Objects which are tracked by the Named Position.
        /// </returns>
        /// <since>6.0</since>
        public RhinoObject[] Objects(Guid id)
        {
            var objects = new Runtime.InternalRhinoObjectArray();

            UnsafeNativeMethods.RhNamedPosition_Objects(m_doc.RuntimeSerialNumber, id, objects.NonConstPointer());

            return(objects.ToArray());
        }
예제 #2
0
 /// <summary>
 /// Gets an array of all of the objects in a group.
 /// </summary>
 /// <param name="groupIndex">The index of the group in this table.</param>
 /// <returns>An array with all the objects in the specified group.</returns>
 /// <since>5.0</since>
 public RhinoObject[] GroupMembers(int groupIndex)
 {
     using (Rhino.Runtime.InternalRhinoObjectArray rhobjs = new Runtime.InternalRhinoObjectArray())
     {
         IntPtr pRhinoObjects = rhobjs.NonConstPointer();
         UnsafeNativeMethods.CRhinoGroupTable_GroupMembers(m_doc.RuntimeSerialNumber, groupIndex, pRhinoObjects);
         return(rhobjs.ToArray());
     }
 }