User interaction in VBA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have an assembly file with parts assembled, and I want the user to move and position the assembled part into a position as they desire, and then run VBA to extract coordinates information to do further calculation.
So, what I want to do is creat a VBA code that does the following in sequence
1. VBA runs code to assemble the parts (I can do this)
2. go to the autodesk interface and allow user to manipulate the part
3. when user presses a key (e.g. "enter", "space"), the control returns to VBA
4. VBA run some code to extract the coordinates and do some calculations (I can do this too)
Can anyone help me with step 2 and 3? I'm hoping there is something like an input box that waits for the user to click ok, before continuing to run the rest of the coding. But I realise that the input boxes and message boxes do not allow users to work on the model in the background. Since I need users to move/rotate the part to the desired position, I can't simply use input and message boxes.
Thanks,
Ying Ying