How to select model space tab?

How to select model space tab?

Anonymous
Not applicable
2,443 Views
3 Replies
Message 1 of 4

How to select model space tab?

Anonymous
Not applicable

Hello,

 

I'm trying to ensure that my users will be working in the model space. I hope I am using the right term but here's a picture to make it clearer:

modelspace.png

 

If the user would have the "Layout1" tab selected then I would force the user by code to be on the "Object" tab. To me, this is either model space or paper space... Hopefully I'm not confused about this.

 

In any case, I am trying to figure out how to do this via code. Is it even possible? I haven't  found anything on Google yet.

 

Thanks in advance,

Alex

0 Likes
Accepted solutions (1)
2,444 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

You can place this right on the top of your command or method:

 

LayoutManager.Current.CurrentLayout = "Model";

Message 3 of 4

Anonymous
Not applicable
Excellent! Thank you!
0 Likes
Message 4 of 4

TiStars
Advisor
Advisor

the other option is:

 

Application.SetSystemVariable("TILEMODE", 1);

but anyway, it switches back to previous tab when current command/program finished.

 

 


天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature