Message 1 of 6
For Each Layout In ThisDrawing.Layouts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I created a VBA routine within autocad using the below statement:
For Each Layout In ThisDrawing.Layouts
This loops through each layout in the current drawing. When I try to take this code into straight VB6 it gives me a Run-time error 424, Object Required. I already have the Layout defined as "Dim Layout As AcadLayout" What else do I need to get this to run?
For Each Layout In ThisDrawing.Layouts
This loops through each layout in the current drawing. When I try to take this code into straight VB6 it gives me a Run-time error 424, Object Required. I already have the Layout defined as "Dim Layout As AcadLayout" What else do I need to get this to run?