Clemp Posted May 16, 2014 Posted May 16, 2014 Hello. Here is my problem : I want to select the Model Space either in VBA or with a Command, but I have two Model Spaces (a legend and the "real" model space) and I can't choose which one it activates with the command "_.MSPACE". Is there a way to choose, or are the Model Spaces supposed to be unique ? Hope you can help ! Quote
Clemp Posted May 20, 2014 Author Posted May 20, 2014 After some research I found the shortcut Ctrl + R which allows to toggle between the view ports. Is there a way to do this with a command or a VBA instruction ? Haven't found anything Quote
BlackBox Posted May 20, 2014 Posted May 20, 2014 More information is needed. MSPACE is the correct command to active a given Viewport, and your subsequent user prompt/Command call will allow user to switch between Viewports. Otherwise you might consider the CVPORT System Variable. Quote
Clemp Posted May 20, 2014 Author Posted May 20, 2014 Hello. Here are some screens : The drawing What I get with .SendCommand "_.MSPACE" & vbCr (the view port with the legend is selected) What I want (the view port with the map is selected) This can be done by clicking twice on it, or with the shortcut Ctrl + R, but I can't find a way to do this in VBA. Quote
Clemp Posted May 20, 2014 Author Posted May 20, 2014 More information is needed. MSPACE is the correct command to active a given Viewport, and your subsequent user prompt/Command call will allow user to switch between Viewports. Otherwise you might consider the CVPORT System Variable. Awesome, thanks for "CVPORT". I'm sorry my question wasn't clear enough, I should have posted screens. Quote
BIGAL Posted May 21, 2014 Posted May 21, 2014 Just a bit extra CTAB is the variable for the current layout so you can change to a different layout sheet easy also. CTAB "Model" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.