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

Creating a new Layout without a default viewport

1 REPLY 1
Reply
Message 1 of 2
Anonymous
585 Views, 1 Reply

Creating a new Layout without a default viewport

In AutoCAD you can check "Create viewport in new Layout" in Meny-> Tools->Options->Display.
After that if you create in managed code a new Layout, a default viewport is automatically created.
I need to know if there is a possibily to turn off the creating of a new viewport in managed code,
something like in ObjectARX:

AcApLayoutManager: setCreateViewports( Adesk::kFalse );

Thanks in advance.
1 REPLY 1
Message 2 of 2
mdelanno
in reply to: Anonymous

{code}
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Interop;

AcadPreferences prefs = Autodesk.AutoCAD.ApplicationServices.Application.Preferences as AcadPreferences;
prefs.Display.LayoutCreateViewport = false;
{code}

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