wait loop until drawing views are updated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've created a VBA program to export drawing views to DXF. While running the program the user is asked to select geometry (engraved text) to be put in another layer before exporting to DXF. Before that, some properties of the part in that drawing view are changed which causes the drawing view to be updated. This update disturbs the selection process, because the drawing view is being 'rendered' (which you can see by the corner marks around the view and the low-resolution) while the VBA program continues. Apparently you can only select geometry when the drawing view is up-to-date.
Now I want to program a loop that waits until all the views on the drawing are up-to-date before continuing the rest of the code. How can I do this? Which property of the DrawingDocument indicates this?
Thanks in advance.
Product Design Suite 2024
Inventor 2024 (v 28.20.27200.0000), Vault Basic 2024
Fusion 360
HP Workstation Z4
Intel Xeon 3.4GHz
32GB RAM
Windows 10 Professional (64bit)