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

Performance Question on finding entities

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
348 Views, 3 Replies

Performance Question on finding entities

Wondering if anybody any idea of which of the methods would be faster.

I need to find a number of entities based on layername, entity type, and
if there is XData attached. I then need to perform different procedures depending
what the layername, type, and Xdata properties.

Would it be faster to create selection filter that would grap all entities
I'm interesed in and return a single result buffer then parse out the found
entities OR perform multiple selection filter searches. (I'm assuming the
built in selection alogorithms would be faster than parsing the BTRs and
creating own collections via .NET, correct?)

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

Yes you are correct that using selection sets are faster than parsing all of the block records.

If you are doing something with your returned data i would tend to separate out the filters.

Patrick Johnson
http:\\www.cadenhancement.com
Message 3 of 4
Anonymous
in reply to: Anonymous

Hello patrick1256,
I had a feeling using multiple selections would be faster than parsing a
single large result buffer. I'm going that route but when I get time I'll
try both methods to confirm and report the results.

Thanks
Mike Robertson

> Yes you are correct that using selection sets are faster than parsing
> all of the block records.
>
> If you are doing something with your returned data i would tend to
> separate out the filters.
>
> Patrick Johnson
> http:\\www.cadenhancement.com
Message 4 of 4
Anonymous
in reply to: Anonymous

From my experience, selections sets are faster, but you can only use them if you're opening the drawing, so the rule for me is if the drawing is opened, use SS.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost