.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to select model space tab?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Alex_Crook
1811 Views, 3 Replies

How to select model space tab?

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

3 REPLIES 3
Message 2 of 4
LE3
Advocate
in reply to: Alex_Crook

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

 

LayoutManager.Current.CurrentLayout = "Model";

Message 3 of 4
Alex_Crook
in reply to: LE3

Excellent! Thank you!
Message 4 of 4
TiStars
in reply to: LE3

the other option is:

 

Application.SetSystemVariable("TILEMODE", 1);

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

 

 


天涯海角的山姆


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

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


EESignature



Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost