.NET

Reply
New Member
masa10789
Posts: 2
Registered: ‎11-13-2006
Message 1 of 2 (182 Views)

Get ActiveLayout object in 64bit OS

182 Views, 1 Replies
12-12-2012 10:37 AM

Hi all,

Has anyone else run into this same problem with AutoCAD 2012, where you can't get the ActiveLayout.Name property from a Windows 64bit OS? This code only seems to work in 32bit OS. Anyone know of another way to get ActiveLayout in 64bit?

 

In this example code,using the following namespace:

namespace Autodesk.AutoCAD

 

Code example, but does not work in 64bit OS:

AcadDocument acadDOC = (AcadDocument)(openedSheet.AcadDocument); 
                if (acadDOC != null) 
                    layoutName = acadDOC.ActiveLayout.Name;

*Expert Elite*
Jeff_M
Posts: 4,450
Registered: ‎07-22-2003
Message 2 of 2 (164 Views)

Re: Get ActiveLayout object in 64bit OS

12-12-2012 08:07 PM in reply to: masa10789

I am able to use this in Win7 x64 on C3D2010 (32 bit) and C3D2012(64 bit).

Jeff_M, also a frequent Swamper
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.