Пример #1
0
 public static bool ApplyWorkMode(Document doc, CatWorkModeType type = CatWorkModeType.DESIGN_MODE)
 {
     // insert test to see if only one is selected
     if (doc.IsProductDocument())
     {
         var prod = (ProductDocument)doc;
         prod.Product.ApplyWorkMode(type);
         return(true);
     }
     return(false);
 }
Пример #2
0
        public static bool ApplyWorkMode(CatWorkModeType type = CatWorkModeType.DESIGN_MODE)
        {
            // insert test to see if only one is selected

            var doc = CatiaApplication.Instance.ActiveDocument;

            if (doc.IsProductDocument())
            {
                var prod = (ProductDocument)doc;
                prod.Product.ApplyWorkMode(type);
                return(true);
            }
            return(false);
        }
Пример #3
0
        public bool SetDesignMode(CatWorkModeType type = CatWorkModeType.DESIGN_MODE)
        {
            Tree.ApplyWorkMode(this.product.AsDocument(), type);

            return(true);
        }