/* Copyright (c) 2024 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved. */ /*---------------------- Pro/Toolkit Includes ------------------------*/ #include <ProToolkit.h> #include <ProMenu.h> /*---------------------- Function Prototypes -------------------------*/ ProError ProUserAddMenuInit(); int ProCheckPart(); ProError ProUserAddMenuInit() { ProError err; int menuId; /*------------------------------------------------------------*\ Declare the command function(s) used here. \*------------------------------------------------------------*/ int ProCheckPart(void *a, int b); /*------------------------------------------------------------*\ Load the menu files for the part menu \*------------------------------------------------------------*/ ProMenuFileRegister("part","part.mnu", &menuId); ProMenuAuxfileRegister("part","part.aux", &menuId); /*------------------------------------------------------------*\ Define the new part menu button(s) \*------------------------------------------------------------*/ ProMenubuttonActionSet("part", "Check Part", ProCheckPart, NULL, 0); } /*============================================================================*\ Function : ProCheckPart Purpose : Empty function used as a Menubutton action \*============================================================================*/ int ProCheckPart(void *a, int b) { }