Command isn't waiting until tabs are finished being created/deleted to sort layouts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm using this script right now to integrate the layer sorting command into some other scripts I made that delete/create new tabs:
https://drive-cad-with-code.blogspot.com/2011/06/set-layout-in-order.html
The problem is that when I put this at the very end of my script:
SetLayoutOrder("ASC")
ed.Regen()
Msgbox("Done")
End Sub
i'll receive the signal that it's "Done" but I can clearly see in the layouts corner that nothing has been created or deleted yet, so when I finally hit "Ok" it finally creates and deletes all the files and nothing gets sorted. I created a separate command that is just the exact same thing as above and it works just fine so I know the command itself works but it doesn't seem to be executing my code in order. Thoughts?