Message 1 of 8
AutoCAD API C# detach xref current drawing

Not applicable
04-22-2015
01:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
Here is what I am trying,
I am tryign to get the list of all th xref in the current drawing and then detach broken and resolved xref from a wpf ui.
Examples specified everywhere makes the user select the xref from the drawing not geting the objId from the db.
When i try to pick from the screen.
Xref ID: (8796084459232)
Xref Handle: 28BDE
when i get object id using code I get differnt handle and object ID
XREF ID >>: (8796084449504) || 28A8E
if i try to detach xref usign this handle or object id it shows fatal exception.
Could someone help me with some code snippet on how to get the right handle for the xref in the current drawing using code and detach without user interaction to pick the xref from the screen.