/* Copyright (c) 2024 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved. */ /*---------------------- Pro/Toolkit Includes ------------------------*/ #include <ProToolkit.h> #include <ProMenu.h> /*---------------------- Application Includes ------------------------*/ #include <TestError.h> #include <UgDrawing.h> /*------------------------- External Data ----------------------------*/ extern int UserMenuDeleteAndPop(); int UserNewDrawingMenuSetup() { ProError status; int menu_id, action; ProMenuFileRegister("UGNewDrawing","ugnewdraw.mnu",&menu_id); ProMenubuttonActionSet("UGNewDrawing","Create View",UsrCreateSheet,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Dimension Points",UsrDimPoints,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Create Drawing",UsrDrawingCreateDemo,NULL,0); ProMenubuttonActionSet("UGNewDrawing","List Sheets",UsrListSheets,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Solid Replace",UsrDrawingSolidReplace,NULL,0); ProMenubuttonActionSet("UGNewDrawing","List Views",UsrListViews,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Group Create",UsrGroupCreate,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Surface Note",UsrSurfNoteCreateWrapper,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Box Symdef",UsrBoxSymdefCreateWrapper,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Syminst Create",UsrSymInstCreateWrapper,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Create Line",UsrLineentityCreateWrapper,NULL,0); ProMenubuttonActionSet("UGNewDrawing","Point Table",UsrPointTable,NULL,0); ProMenubuttonActionSet("UGNewDrawing", "-Done/Return", (ProMenubuttonAction)UserMenuDeleteAndPop, NULL, 0); status = ProMenuPush(); status = ProMenuCreate(PROMENUTYPE_MAIN, "UGNewDrawing", &menu_id); status = ProMenuProcess("UGNewDrawing", &action); return (0); }