<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Removing Xref's with c# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11607000#M10730</link>
    <description>&lt;P&gt;Ok, here is an example Dwg. Yesterday i used the code from Gile's first reply and was able te remove the xrefs from the drawing. Today i tried again and it wouldn't detach the xrefs anymore. Any help with this would be very much appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 15:54:48 GMT</pubDate>
    <dc:creator>asdasdfsd2</dc:creator>
    <dc:date>2022-12-08T15:54:48Z</dc:date>
    <item>
      <title>Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603243#M10721</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Hello,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;I've been given the task of clearing Xref's from 200+ drawings and plotting them. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;I am stuck with getting(/finding) the Xref's in the drawings and i have no idea to solve this. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Is there anyone that can help with this problem? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Help would be greatly appreciated!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;This is the code i've pieced together. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;I believe this only returns the drawing itself as an Xref, the actual Xref's remain unseen.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;        public void ZkSearchXref()
        {
            var doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            var editor = doc.Editor;

            BlockTable blckTbl;
            BlockTableRecord blckTblRcrd;

            using (Transaction tr = db.TransactionManager.StartTransaction())
            {
                try
                {
                    blckTbl = tr.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable;
                    blckTblRcrd = tr.GetObject(blckTbl.ObjectId, OpenMode.ForRead) as BlockTableRecord;

                    //db.ResolveXrefs(false,true);
                    XrefGraph XrGraph = db.GetHostDwgXrefGraph(false);
                    GraphNode root = XrGraph.RootNode;

                    GraphNodeCollection gnC = XrGraph.GetOutgoing();
                    editor.WriteMessage("\n" + gnC.Count);

                    //XrefGraphNode child = root.Out(0);
                    //GraphNode child = root.Out(0);
                    //editor.WriteMessage(child.ToString());

                    editor.WriteMessage(root.NumOut.ToString());
                    editor.WriteMessage("\n"+XrGraph.NumNodes.ToString());                    
                    editor.WriteMessage(XrGraph.Node(0).ToString());

                    for (int i = 0; i &amp;lt; XrGraph.NumNodes; i++)
                    {
                        XrefGraphNode xrNode = XrGraph.GetXrefNode(i);
                        editor.WriteMessage("\n" + xrNode.NumIn);
                        editor.WriteMessage("\n" + xrNode.NumOut);

                        //XrefGraphNode xgn = xrNode.GetXrefNode(xrefName);

                        for (int j=0;j&amp;lt;xrNode.NumIn;j++)
                        {

                        }

                        editor.WriteMessage("\n"+"testing");
                        tr.Commit();
                    }
                }
                catch (Autodesk.AutoCAD.Runtime.Exception Ex)
                {
                    Application.ShowAlertDialog("\n" + Ex.Message);
                    tr.Abort();
                }
            } //End TR
        } //End ZkSearchXref
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 08:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603243#M10721</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-07T08:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603474#M10722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this ?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        public static void DetachAllXrefs()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            using (var tr = db.TransactionManager.StartTransaction())
            {
                var blockTable = (BlockTable)tr.GetObject(db.BlockTableId, OpenMode.ForRead);
                foreach (ObjectId id  in blockTable)
                {
                    var btr = (BlockTableRecord)tr.GetObject(id, OpenMode.ForRead);
                    if (btr.IsFromExternalReference)
                    {
                        db.DetachXref(id);
                    }
                }
                tr.Commit();
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:34:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603474#M10722</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-12-07T10:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603886#M10723</link>
      <description>&lt;P&gt;Yes! Hero!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much good sir&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 13:43:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603886#M10723</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-07T13:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603956#M10724</link>
      <description>&lt;P&gt;While it works like a charm on a single drawing i'm having dificulty getting this to work in a batch? What am i doing wrong here? I was having dificulties calling commands with "oDoc.Editor.Command()" as well, maybe that's related?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;public void ZkBatchOpenAgain()
        {
            var doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            var editor = doc.Editor;

            var path = @"pathtofolder";
            String[] dwgfiles = Directory.GetFiles(path);

            for (int i = 0; i &amp;lt; dwgfiles.Length; i++)
            {
                FileInfo myFile = new FileInfo(dwgfiles[i]);
                myFile.IsReadOnly = false;
            }

            using (Transaction tr = db.TransactionManager.StartTransaction())
            {
                try
                {
                    for (int i = 0; i &amp;lt; dwgfiles.Length; i++)
                    {
                        Document oDoc = AcadApp.DocumentManager.Open(dwgfiles[i], false);

                        //----------------------------------------------------------------------------------------
                        var oDb = oDoc.Database;
                        using (var oTr = oDb.TransactionManager.StartTransaction())
                        {
                            var blockTable = (BlockTable)oTr.GetObject(oDb.BlockTableId, OpenMode.ForRead);
                            foreach (ObjectId id in blockTable)
                            {
                                var btr = (BlockTableRecord)oTr.GetObject(id, OpenMode.ForRead);
                                if (btr.IsFromExternalReference)
                                {
                                    oDb.DetachXref(id);
                                }
                            }
                        }
                        //----------------------------------------------------------------------------------------

                        oDoc.CloseAndSave(oDoc.Name);
                        //oDoc.CloseAndDiscard();
                    }
                    editor.WriteMessage("testing");
                    tr.Commit();
                }
                catch (Autodesk.AutoCAD.Runtime.Exception Ex)
                {
                    Application.ShowAlertDialog("\n" + Ex.Message);
                    tr.Abort();
                }

            }

        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 14:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11603956#M10724</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-07T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11604057#M10725</link>
      <description>&lt;P&gt;I also have another approach which doesnt seem to work and this uses "ReadDwgFile" instead of opening the document with the documentmanager. The weird thing here is that the circle is drawn and the file saved so it somewhat works? Can't figure out why the xrefs arent detached either?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;public static void OpenSaveDwgFiles()
        {
            try
            {

                var doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
                var db = doc.Database;
                var editor = doc.Editor;

                var path = @"C:\Users\FarridMaagdelijnZKER\OneDrive - ZKER B.V\Bureaublad\TekeningenMap";
                //DirectoryInfo d = new DirectoryInfo(path);
                String[] Files = Directory.GetFiles(path);
                editor.WriteMessage(Files.Length.ToString());
                editor.WriteMessage("\n" + Files[0]);

                using (Transaction tr = db.TransactionManager.StartTransaction())
                {
                    try
                    {
                        using (Database sourceDb = new Database(false, true))
                        {
                            sourceDb.ReadDwgFile(Files[0], System.IO.FileShare.ReadWrite, true, null);

                            Transaction tr2 = sourceDb.TransactionManager.StartTransaction();
                            using (tr2)
                            {
                                BlockTable bt = tr2.GetObject(sourceDb.BlockTableId, OpenMode.ForRead) as BlockTable;

                                foreach (ObjectId id in bt)
                                {
                                    var btr2 = (BlockTableRecord)tr2.GetObject(id, OpenMode.ForRead);
                                    if (btr2.IsFromExternalReference)
                                    {
                                        db.DetachXref(id);
                                    }
                                }

                                BlockTableRecord btr = tr2.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord;
                                using (Circle crcl = new Circle())
                                {
                                    crcl.Center = new Point3d(1, 1, 0);
                                    crcl.Radius = 5;
                                    btr.AppendEntity(crcl);
                                    tr2.AddNewlyCreatedDBObject(crcl, true);
                                }
                                tr2.Commit();

                                //sourceDb.Save();
                                sourceDb.SaveAs(Files[0], DwgVersion.Current);
                            }
                            //doc.Editor.Command("_.-xref", "D", "*");
                            //doc.Editor.Command("_.-image", "D", "*");
                        }

                    }
                    catch (Autodesk.AutoCAD.Runtime.Exception Ex)
                    {

                    }
                }


                //Application.ShowAlertDialog("All files processed");
            }
            catch (System.Exception ex)
            {
                Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(ex.ToString());
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:11:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11604057#M10725</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-07T15:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11604205#M10726</link>
      <description>&lt;P&gt;Even though i forgot "oTr.Commit();" in the 4th reply the code still doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:24:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11604205#M10726</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-07T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11604802#M10727</link>
      <description>&lt;P&gt;Here's an example of a generic BatchProcess method which takes as arguments the sequence of file names to process and the action to execute on each file (&lt;A href="https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/" target="_blank" rel="noopener"&gt;delegate&lt;/A&gt;). In this example, the action have to be a method with a single Database argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        public static void BatchProcess(IEnumerable&amp;lt;string&amp;gt; fileNames, Action&amp;lt;Database&amp;gt; action)
        {
            foreach (string fileName in fileNames)
            {
                try
                {
                    using(var db = new Database(false, true))
                    {
                        db.ReadDwgFile(fileName, FileOpenMode.OpenForReadAndAllShare, false, null);
                        action(db);
                        db.SaveAs(fileName, DwgVersion.Current);
                    }
                }
                catch (System.Exception ex)
                {
                    var ed = Application.DocumentManager.MdiActiveDocument.Editor; 
                    ed.WriteMessage($"\nError with '{fileName}': {ex.Message}");
                }
            }
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of 'action' method to detach all xrefs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        public static void DetachAllXrefs(Database db)
        {
            using (var tr = db.TransactionManager.StartTransaction())
            {
                var blockTable = (BlockTable)tr.GetObject(db.BlockTableId, OpenMode.ForRead);
                foreach (ObjectId id  in blockTable)
                {
                    var btr = (BlockTableRecord)tr.GetObject(id, OpenMode.ForRead);
                    if (btr.IsFromExternalReference)
                    {
                        db.DetachXref(id);
                    }
                }
                tr.Commit();
            }
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("DETACHXREFS")]
        public static void DetachAllXrefsCmd()
        {
            var fileNames = 
                new System.IO.DirectoryInfo(@"F:\Project\Drawings")
                .GetFiles(" *.dwg")
                .Select(fi =&amp;gt; fi.FullName);
            BatchProcess(fileNames, DetachAllXrefs);
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 07:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11604802#M10727</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-12-08T07:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11606008#M10728</link>
      <description>&lt;P&gt;Thanks a million again!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 08:16:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11606008#M10728</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-08T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11606371#M10729</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Unfortunately it seems the xrefs are not dettached from the dwg (anymore?!). &lt;/FONT&gt;&lt;FONT&gt;Yesterday i used the code from your first reply and was able to successfully remove the xrefs from the document. &lt;/FONT&gt;&lt;FONT&gt;Today i ran the same code and used the same dwg (for test-purposes i did not save so xrefs are still in the document) but the xrefs are not removed anymore? &lt;/FONT&gt;&lt;FONT&gt;What could be the reason for this?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;It's the same for the code in your last reply which uses delegate, the code runs fine but no xrefs are removed. &lt;/FONT&gt;&lt;FONT&gt;At this point i realize it may better to supply a dwg. &lt;/FONT&gt;&lt;FONT&gt;If you don't mind i will send it in a private message for privacy-concerns (since it's an external company we work for)&lt;BR /&gt;&lt;BR /&gt;EDIT: Ok, so apparently i can't use attachments in private messages&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 11:48:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11606371#M10729</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-08T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11607000#M10730</link>
      <description>&lt;P&gt;Ok, here is an example Dwg. Yesterday i used the code from Gile's first reply and was able te remove the xrefs from the drawing. Today i tried again and it wouldn't detach the xrefs anymore. Any help with this would be very much appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 15:54:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11607000#M10730</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-08T15:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11614947#M10731</link>
      <description>&lt;P&gt;The attached drawing does not contain xref (DWG external reference).&lt;/P&gt;
&lt;P&gt;It contains unreferenced raster images (&lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_RasterImageDef" target="_blank" rel="noopener"&gt;RasterImageDef&lt;/A&gt;) which are not xrefs from the point of view of .NET.&lt;/P&gt;
&lt;P&gt;These objects are stored in the ACAD_IMAGE_DICT dictionary of the Named Objects Dictionary.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 17:35:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11614947#M10731</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-12-12T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11616897#M10732</link>
      <description>&lt;P&gt;To purge (i.e. delete all non-referenced) the RasterImageDef of a Database, you can use something like this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        public static void PurgeRasterImages(Database db)
        {
            using (var tr = db.TransactionManager.StartTransaction())
            {
                var NOD = (DBDictionary)tr.GetObject(db.NamedObjectsDictionaryId, OpenMode.ForRead);
                var imageDict = (DBDictionary)tr.GetObject(NOD.GetAt("ACAD_IMAGE_DICT"), OpenMode.ForRead);
                var imageIds = new ObjectIdCollection();
                foreach (var entry in imageDict)
                {
                    imageIds.Add(entry.Value);
                }
                db.Purge(imageIds);
                foreach (ObjectId id in imageIds)
                {
                    tr.GetObject(id, OpenMode.ForWrite).Erase();
                }
                tr.Commit();
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Dec 2022 12:23:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11616897#M10732</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-12-13T12:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Xref's with c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11620344#M10733</link>
      <description>&lt;P&gt;"&lt;FONT&gt;The attached drawing does not contain xref (DWG external reference).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;It contains unreferenced raster images&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Noted, thanks again! I ended up removing it by hand with a little help from Lisp but i will surely use this the next time!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:27:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/removing-xref-s-with-c/m-p/11620344#M10733</guid>
      <dc:creator>asdasdfsd2</dc:creator>
      <dc:date>2022-12-14T16:27:48Z</dc:date>
    </item>
  </channel>
</rss>

