.NET

Reply
New Member
2 Posts
0 Kudos
Registered: ‎11-13-2006
Post 1 of 2

Get ActiveLayout object in 64bit OS

189 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*
4,621 Posts
921 Kudos
Registered: ‎07-22-2003
Post 2 of 2

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
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!