Exemplo n.º 1
0
 /// <summary>
 /// Get the Nucleus model object linked to the specified Rhino handle ID
 /// </summary>
 /// <param name="rhinoID"></param>
 /// <returns></returns>
 protected ModelObject LinkedModelObject(Guid rhinoID)
 {
     if (Links.ContainsSecond(rhinoID))
     {
         Guid objID = Links.GetFirst(rhinoID);
         return(Core.Instance.ActiveDocument?.Model?.GetObject(objID));
     }
     else
     {
         return(null);
     }
 }