TheSwamp

Code Red => .NET => Topic started by: cannorth on March 19, 2014, 05:21:50 PM

Title: Switching from paper space to model space
Post by: cannorth on March 19, 2014, 05:21:50 PM
Hello,

  What are some solutions to switch from paper space to model space.

  I've tried the following:

                           ThisDrawing.Application.ActiveDocument.SetVariable("TILEMODE", 1)
                         
                           Application.SetSystemVariable("TILEMODE", 1)
                           
                            ThisDrawing.Application.ActiveDocument.ActiveSpace = AutoCAD.Interop.Common.AcActiveSpace.acModelSpace
                         
                            Editor.SwitchToModelSpace

  Any other ideas that could change to model space?

Thanks,

cannorth
Title: Re: Switching from paper space to model space
Post by: gile on March 19, 2014, 05:44:17 PM
HostApplicationServices.WorkingDatabase.tilemode = true;