.NET

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

Get ActiveLayout object in 64bit OS

183 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,483
Registered: ‎07-22-2003
Message 2 of 2 (165 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!