/* Copyright (c) 2024 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved. */ /*-------------------------- Pro/Toolkit includes ---------------------------*/ #include <ProToolkit.h> #include "ProGraphic.h" /*-------------------------- Application includes ---------------------------*/ #include <TestError.h> /*================================================================*\ FUNCTION : UserPickPosition PURPOSE : The user picks a position in the drawing \*================================================================*/ ProError UserPickPosition (ProFileName wmsgfil, ProCharLine prompt, ProPoint3d position ) { int status; ProMouseButton mouse_button; status = ProMessageDisplay(wmsgfil, "USER %0s", prompt); ERROR_CHECK("UserPickPosition","ProMessageDisplay",status); status = ProMousePickGet (PRO_LEFT_BUTTON, &mouse_button,position); ERROR_CHECK("UserPickPosition","ProMousePickGet",status); return(status); }