Esempio n. 1
0
 public static void OnDisConnect(tagFMAddInFlags flags)
 {
     fc.CommandBars.DeleteButton("Utilities", "FeatureCAMToCAMplete");
     if (flags == tagFMAddInFlags.eAIF_DisConnectUserUnLoad)
     {
     }
 }
Esempio n. 2
0
        public static void OnConnect(object obj, tagFMAddInFlags flags)
        {
            //path for debug
            //string path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
            //                           @"..\..\FeatureCAMToVericut\Icons");
            string path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
                                       @"Icons");

            fc.CommandBars.CreateCustomButton("Utilities", "FeatureCAMToVericut",
                                              Path.Combine(path, "icon-16.bmp"), Path.Combine(path, "icon-24.bmp"));
            if (flags == tagFMAddInFlags.eAIF_ConnectUserLoad)
            {
            }
        }
Esempio n. 3
0
        public static void OnConnect(object obj, tagFMAddInFlags flags)
        {
            //This is the path for version in Addins folder
            string path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
                                       @"FeatureCAMToEUREKA\Icons");

            //This is the path for debugging
            //path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
            //                           @"Icons");
            fc.CommandBars.CreateButton("Utilities", "FeatureCAMToEUREKA", tagFMMacroButtonFaceId.eMBFID_RtArrow);
            if (flags == tagFMAddInFlags.eAIF_ConnectUserLoad)
            {
            }
        }
Esempio n. 4
0
        public static void OnConnect(object obj, tagFMAddInFlags flags)
        {
            //This is the path for version in Addins folder
            string path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
                                       @"FeatureCAMToNCSIMUL\Icons");

            //This is the path for debugging
            //path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
            //                           @"Icons");
            fc.CommandBars.CreateCustomButton("Utilities", "FeatureCAMToNCSIMUL",
                                              Path.Combine(path, "icon_16.bmp"), Path.Combine(path, "icon_24.bmp"));
            if (flags == tagFMAddInFlags.eAIF_ConnectUserLoad)
            {
            }
        }
 static public void OnDisConnect(tagFMAddInFlags flags)
 {
     Application.CommandBars.DeleteButton("Utilities", "ListFeatureTypes");
 }
 static public void OnConnect(object obj, tagFMAddInFlags flags)
 {
     Application.CommandBars.CreateButton("Utilities", "ListFeatureTypes", tagFMMacroButtonFaceId.eMBFID_Cogs);
 }