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

How to filter entities in xref file

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
667 Views, 2 Replies

How to filter entities in xref file

Hi,

 

I used c# to attached a xref 1.dwg to host.dwg, yet still scratching the head on how to read entities on layer 'abc'  in 1.dwg from host.dwg.

 

Any suggestions, please? 

 

Thank you in advance.

Tags (1)
2 REPLIES 2
Message 2 of 3
Alexander.Rivilis
in reply to: Anonymous

You have to find Database corresponding to "1.dwg" and iterate it ModelSpace (or PaperSpace, or both ModelSpace and PaperSpace) checking layers of all entities.

Sample to getting all xrefs: http://adndevblog.typepad.com/autocad/2012/06/finding-all-xrefs-in-the-current-database-using-cnet.h...

XrefGraphNode.Database allow to get Database of appropriate Xref.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 3 of 3
Anonymous
in reply to: Alexander.Rivilis

Thank you Alexander!

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