.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get ActiveLayout object in 64bit OS

1 REPLY 1
Reply
Message 1 of 2
masa10789
350 Views, 1 Reply

Get ActiveLayout object in 64bit OS

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;

Tags (3)
1 REPLY 1
Message 2 of 2
Jeff_M
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
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost