.NET

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

Get ActiveLayout object in 64bit OS

177 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,384
Registered: ‎07-22-2003
Message 2 of 2 (159 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

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