Replies: 1 comment 5 replies
-
Hi @poagester, Here is a quick sample of how to get all the insert entities what are an XRef: CadDocument doc = DwgReader.Read(path, this.onNotification);
foreach (Insert insert in doc.Entities.OfType<Insert>())
{
if(insert.Block.Flags.HasFlag(Blocks.BlockTypeFlags.XRef)
|| insert.Block.Flags.HasFlag(Blocks.BlockTypeFlags.XRef))
{
string xref = insert.Block.BlockEntity.XrefPath;
}
} If you only need the Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been going through objects in the debugger and combing through code here to determine if I can easily find all XRef objects contained in the dwg. I am having no luck. I saw another post about the database being implemented at another time, but I was wondering if there was currently a way to do this without the database.
Beta Was this translation helpful? Give feedback.
All reactions