.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Iterate through Entities

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
2170 Views, 3 Replies

Iterate through Entities

Hello,

 

I am new to AutoCAD Customization and learning few things.

But I would like to know like we have model space and paper space, is it possible to iterate through entities of these.

 

Few Drawings may not be repeated in paper space.

 

It can have Blocks, Tables, Texts, Polylines. I need to iterate entities of these sheets separately.

 

Regards,

Kumuda

3 REPLIES 3
Message 2 of 4
BKSpurgeon
in reply to: Anonymous

Mr Spider has already answered your question here - I needn't repeat what he has said:

 

http://spiderinnet1.typepad.com/blog/2012/06/autocad-net-iterate-through-model-space.html

 

but what is your purpose in iterating through it all? it can be a very slow process if you have many objects in your drawing. maybe it is better if you used a selection filter. just get the objects you need and do what you need to do.

 

 

regards

 

Ben

Message 3 of 4
_gile
in reply to: BKSpurgeon

@BKSpurgeon,

 

Iterating through entities is not slower than using selectAll with a SelectionFilter.

SelectAll does iterate through entities (how could it be otherwise).

See my reply in this topic.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 4 of 4
BKSpurgeon
in reply to: _gile

Thank you Mr Gilles - that post is very good - i had completely forgotten about it!

 

rgds

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report