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

AutoCAD Interop fast selection of xref nested objects on layer name

3 REPLIES 3
Reply
Message 1 of 4
kbarnettza
496 Views, 3 Replies

AutoCAD Interop fast selection of xref nested objects on layer name

I am doing this the slow way ... it is painfully slow...

 

By iterating every object in the block. Test for layer name and add to list of acad entities.

 

AcadBlock block1 = acadApp.ActiveDocument.Blocks.Item(...);

foreach (AcadEntity ae1 in block1)

{ ... }

 

It is horribly slow.

 

I was going to try a selection set in DBX document ... could not find it ...

Selection sets with filters are nice and fast... if only I could do it with a nested layer... what have I missed?

 

Thanks for reading...

Kevin.

 

 

 

3 REPLIES 3
Message 2 of 4
moogalm
in reply to: kbarnettza

Message 3 of 4
kbarnettza
in reply to: moogalm

Thx ... that blog page matches the code I use for filtering of non-nested. I am hoping to find a similar filter that works within externally referenced entities.

 

Message 4 of 4
moogalm
in reply to: kbarnettza

One way to work around is to programatically change the xrefdatabase as current working database and apply Selection filter and return current database.

If you tried above approach already , I'm sorry I don't have an API which selects all xref entities with in current database.

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