The easiest way is to show a message box which will stop execution. And user need to click ‘OK’ on this message box once the selection or whatever else is completed and code needs to be executed. Another way is to listen for a selection events.
Artem Taturevych, Application Engineer at Intercad (Australia)
translationXpert – add-in to translate SolidWorks models
myIntercad – an integrated tool for SolidWorks Professionals
Yes that is how I start the app with a dialogbox giving the user a range of shapes to select from.
After a shape is selected the dialog box goes away and I want to give the user the ability to pick a spot on the screen.
Like the Insert Block function. but I need to record where the user picks on the screen once that is done then the app can finish.
Artem is talking about using a non-modal message box that pauses execution of the code. When the user selects a point or points they can click OK. You can use event notifications related to the mouse (swMouseNotify_e) or perhaps ISelectionMgr::GetSelectionPoint2. There's a lot of posts that already demonstrate how to use these methods.
Thank You guys