Jump to content

Chose model space


Clemp

Recommended Posts

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 ! :)

Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Hello. :)

 

Here are some screens :

 

494026Capture.png

The drawing

 

 

 

815244Capture2.png

What I get with .SendCommand "_.MSPACE" & vbCr

(the view port with the legend is selected)

 

 

141401Capture3.png

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.

Link to comment
Share on other sites

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". :D

 

I'm sorry my question wasn't clear enough, I should have posted screens.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...