.NET

.NET

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

Get ActiveLayout object in 64bit OS

184 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,521
Registered: ‎07-22-2003
Message 2 of 2 (166 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
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.