Get ActiveLayout object in 64bit OS

Get ActiveLayout object in 64bit OS

Anonymous
Not applicable
608 Views
1 Reply
Message 1 of 2

Get ActiveLayout object in 64bit OS

Anonymous
Not applicable

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;

0 Likes
609 Views
1 Reply
Reply (1)
Message 2 of 2

Jeff_M
Consultant
Consultant

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

Jeff_M, also a frequent Swamper
EESignature
0 Likes