Message 1 of 1
Problem declaring Layout Object Variable
Not applicable
06-21-2005
11:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
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?