Académique Documents
Professionnel Documents
Culture Documents
AutoCAD VBA
Lecture 3
Prof. Mounir Mabsout
Elsa Sulukdjian
Walid El Asmar
For iterating through a selection set, the ForEach-Next loop structure may not be best at
all times.
Example: when selectively removing objects from
the selection set. The For-Each-Next loop starts at
the beginning of the list till the end of it and the
removal of an item from the list inside the loop will
cause the loop to skip one.
The Filter
Data Contents
Object type string LINE, ARC, or
CIRCLE
String value in Text, Mtext
Object name string used for Blocks &
Tables
Layer name string
Primary point
Secondary points for text alignments, line
endpoints,
Arc and circle radius
Color number (integer)
Refining Filters
Numeric Tests
Whats Next
More Objects
More Methods