Iterating through every drawing object?

Programming and macros
User avatar
loeb
Posts: 74
Joined: Sun Jan 16, 2022 5:55 pm
Answers: 1
x 40
x 10

Iterating through every drawing object?

Unread post by loeb »

Merry Christmas. I need to write a macro that traverses a drawing and manipulates the layer that objects are on in certain circumstances. I was hoping to be able to iterate through all the objects on each sheet and view, identify what they are, and do something based on some rules.

It looks to me like I can't "iterate through all the objects" using a simple loop. Instead, I will need a separate loop for each type of object. In other works, I can't use a function like "GetEverything", but instead need to have separate Gets for each object type such as GetAnnotations, GetSketch, GetTableAnnotations, etc.

Am I on track here?

Thanks for your advice!
by josh » Thu Dec 26, 2024 12:48 pm
Yes, you're on track. You need to get each type of thing specifically as you've found.
Go to full post
User avatar
josh
Posts: 319
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 17
x 23
x 541

Re: Iterating through every drawing object?

Unread post by josh »

Yes, you're on track. You need to get each type of thing specifically as you've found.
Post Reply