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); }
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); }
public bool SetDesignMode(CatWorkModeType type = CatWorkModeType.DESIGN_MODE) { Tree.ApplyWorkMode(this.product.AsDocument(), type); return(true); }