Problem declaring Layout Object Variable

Problem declaring Layout Object Variable

Anonymous
Not applicable
301 Views
0 Replies
Message 1 of 1

Problem declaring Layout Object Variable

Anonymous
Not applicable
I have been experiencing a problem declaring a public variable since upgrading to the 2005 family of products. The following line of code produces varying results depending on the AutoCAD product and OS.

Public objLayout As AcadLayout

When run from AutoCAD Mechanical or Architectural Desktop on a Windows 2000 OS this line produces a variable of type AcadDictionary.

Straight AutoCAD 2005 on Windows 2000 and all AutoCAD products on Windows XP produce a variable of type AcadLayout (this is the type of variable produced in AutoCAD 2002).

My programs produce a type mismatch when trying to assign a layout to the AcadDictionary type objects.

Has anyone experienced this problem?
Is there a known resolution?
0 Likes
302 Views
0 Replies
Replies (0)