/// <summary>
 /// 设置是否固定
 /// </summary>
 /// <param name="comp"></param>
 /// <param name="doc">文档</param>
 /// <param name="IsFix">true为固定,false为浮动</param>
 public static void SetFixStatus(this IComponent2 comp, AssemblyDoc doc, bool IsFix)
 {
     if (IsFix)
     {
         if (comp.IsFixed())
         {
             return;
         }
         else
         {
             comp.SelectFor(() => doc.FixComponent());
         }
     }
     else
     {
         if (comp.IsFixed())
         {
             comp.SelectFor(() => doc.UnfixComponent());
         }
         else
         {
             return;
         }
     }
 }