muck Posted June 30, 2009 Posted June 30, 2009 AutoCAD 2009 VBA The following code is only for model space. What if I want to step thru both model and paper space. Is there a statement for that? Dim aObj As AcadEntity For Each aObj In ThisDrawing.ModelSpace 'Code Next aObj Thank you, Quote
SEANT Posted July 1, 2009 Posted July 1, 2009 Something along this line should work. 'include ModelSpace layout and all layouts in PaperSpace For Each objLayout In ThisDrawing.Layouts For Each Entity In objLayout.Block . . . . . . Next Next Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.