<?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: In a circular reference drawing (A&amp;gt;B&amp;gt;C&amp;gt;A) how to find the link between C and A which makes the three drawing circular? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13830733#M85821</link>
    <description>&lt;P&gt;I am suspecting that in your case, the drawing file is not opened in AutoCAD, coming from my observation when I open the drawing file in ACAD it shows a warning that the drawing has circular reference and do you still want to proceed, on proceeding I believe it resolves the circular links and then open the file, thus, I get the isCircularReference api&amp;nbsp; as&amp;nbsp; false.&amp;nbsp;&lt;BR /&gt;Nevertheless, I was able to get the filename so i managed to make my use case work, thanks a lot for all the help, much appreciated. I will definitely update if I stumble on some alternative that works.&lt;BR /&gt;Bets Regards!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Sep 2025 07:10:38 GMT</pubDate>
    <dc:creator>Nikita_RAUTELA</dc:creator>
    <dc:date>2025-09-30T07:10:38Z</dc:date>
    <item>
      <title>In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801062#M85716</link>
      <description>&lt;P&gt;I have 3 drawings A, B and C. I have nested the drawings as A&amp;gt;B, B&amp;gt;C, C&amp;gt;A, which makes the three in circular relation. when I open A, the structure is like A(root)&amp;gt;B&amp;gt;C(leaf), when I open C its like C&amp;gt;A&amp;gt;B, and similarly for B.&lt;BR /&gt;According to my understanding when a drawing having circular dependencies is opened, say A,&amp;nbsp; the circular reference is broken as a dialog pops up to continue opening the drawing(if ok, then the circular link is broken)A&amp;gt;B&amp;gt;C(*&amp;gt;A). I iterate from Root graphNode to the leaf but as soon as I reach the leaf the count for the out referencing is 0, which is not true as leaf is parent to the root(making it circular)(C&amp;gt;A).&amp;nbsp;&lt;BR /&gt;How can I get the link from C&amp;gt;A as the link between C and A is still maintained in other drawings(C&amp;gt;A&amp;gt;B)?&lt;BR /&gt;Is there any object that is the single source of truth for a drawing and that holds the information of wherever the drawing is referenced?&lt;/P&gt;&lt;P&gt;Currently I am&amp;nbsp;using AcDbXrefGraphNode::out() method to get the outgoing references for the active drawing but unfortunately it does not include the circular reference.&amp;nbsp;&lt;BR /&gt;I tried the following too, but I am not sure if I am doing it correctly:&lt;/P&gt;&lt;P&gt;1. get the XREFBlockID from the active document using&amp;nbsp;xrefBlockId()&lt;/P&gt;&lt;P&gt;2. Use the blocID in&amp;nbsp;acdbOpenObject() to get&amp;nbsp;AcDbBlockTableRecord, further I can get the BlockTable.I am not sure if this is the right method and what to do next.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nikita_RAUTELA_0-1757336720091.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1568488iAFD981E463B52F1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nikita_RAUTELA_0-1757336720091.png" alt="Nikita_RAUTELA_0-1757336720091.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here BAS1, BAS2, BAS3 can be considered as A,B,C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a relevant AutoCAD API that can give me the indication that the drawing is circular.&lt;/P&gt;&lt;P&gt;More specifically my expectation is that I get the link between [the leaf] Drawing1 and [the root] Drawing2 , the circular link.&lt;BR /&gt;is there any property that conveys that the drawing had a circular link originally?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:15:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801062#M85716</guid>
      <dc:creator>Nikita_RAUTELA</dc:creator>
      <dc:date>2025-09-09T12:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801105#M85717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989493"&gt;@Nikita_RAUTELA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as much as i understand (hope so)...&lt;/P&gt;
&lt;P&gt;Try from the &lt;U&gt;External Reference palette&lt;/U&gt; to use&amp;nbsp; &lt;STRONG&gt;Tree View (F4)&amp;nbsp;&lt;/STRONG&gt; option. (Upper right)&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 13:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801105#M85717</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2025-09-08T13:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801153#M85718</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989493"&gt;@Nikita_RAUTELA&lt;/a&gt;&amp;nbsp;Would this help you see your content relationships better? Activate it now. Show us the result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pendean_0-1757339220356.png" style="width: 857px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1568510iD1C34B69ED5DB237/image-dimensions/857x836?v=v2" width="857" height="836" role="button" title="pendean_0-1757339220356.png" alt="pendean_0-1757339220356.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 13:47:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801153#M85718</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2025-09-08T13:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801290#M85719</link>
      <description>&lt;P&gt;In your image you are setting the references up as overlays.&amp;nbsp; Therefore, you should not have any circular references.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCOD-RpSOipo%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCOD-RpSOipo&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FCOD-RpSOipo%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="113" scrolling="no" title="ACAD Xref attach vs overlay" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 15:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13801290#M85719</guid>
      <dc:creator>J-Porter</dc:creator>
      <dc:date>2025-09-08T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802238#M85720</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37212"&gt;@pendean&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12924475"&gt;@J-Porter&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/508410"&gt;@imadHabash&lt;/a&gt;&amp;nbsp;thanks for the suggestions the result is as follows (but my expectation is not with the UI):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nikita_RAUTELA_0-1757397253847.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1568772i0633E2A4DE12892D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nikita_RAUTELA_0-1757397253847.png" alt="Nikita_RAUTELA_0-1757397253847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am developing a program to travel through all the attached references. I am looking for a relevant AutoCAD API that can give me the indication that the drawing is circular.&lt;/P&gt;&lt;P&gt;More specifically my expectation is that I get the link between [the leaf] Drawing1 and [the root] Drawing2 , the circular link.&lt;BR /&gt;is there any property that conveys that the drawing had a circular link originally?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 06:01:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802238#M85720</guid>
      <dc:creator>Nikita_RAUTELA</dc:creator>
      <dc:date>2025-09-09T06:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802632#M85721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989493"&gt;@Nikita_RAUTELA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I am developing a program to travel through all the attached references. I am looking for a relevant AutoCAD API that can give me the indication that the drawing is circular.&lt;/P&gt;&lt;P&gt;More specifically my expectation is that I get the link between [the leaf] Drawing1 and [the root] Drawing2 , the circular link.&lt;BR /&gt;is there any property that conveys that the drawing had a circular link originally?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You've not posted any code (in the .NET forum) for the program you're developing, so it's going to be hard for someone to offer advice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a starting point, consider iterating each XREF using&amp;nbsp;&lt;SPAN&gt;ReadDwgFile() with&amp;nbsp;FileOpenMode.OpenForReadAndAllShare, and checking those for an XREF that matches your active document.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 09:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802632#M85721</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-09-09T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802887#M85722</link>
      <description>&lt;P&gt;Currently I am&amp;nbsp;using AcDbXrefGraphNode::out() method to get the outgoing references for the active drawing but unfortunately it does not include the circular reference.&amp;nbsp;&lt;BR /&gt;I tried the following too, but I am not sure if I am doing it correctly:&lt;/P&gt;&lt;P&gt;1. get the XREFBlockID from the active document using&amp;nbsp;xrefBlockId()&lt;/P&gt;&lt;P&gt;2. Use the blocID in&amp;nbsp;acdbOpenObject() to get&amp;nbsp;AcDbBlockTableRecord, further I can get the BlockTable.&lt;/P&gt;&lt;P&gt;I am not sure if this is the right method and what to do next.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am coding in native(c++) I am not sure if I can set&amp;nbsp;&lt;SPAN&gt;FileOpenMode, but I will explore this as well&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:19:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802887#M85722</guid>
      <dc:creator>Nikita_RAUTELA</dc:creator>
      <dc:date>2025-09-09T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802916#M85723</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989493"&gt;@Nikita_RAUTELA&lt;/a&gt;&amp;nbsp;As noted by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12924475"&gt;@J-Porter&lt;/a&gt;&amp;nbsp;I suspect your core issue is most likely having chosen this type of XREF (which you need to change as that option hides XREFs)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pendean_0-1757420749270.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1569025i951E3A0B6C53022D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pendean_0-1757420749270.png" alt="pendean_0-1757420749270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13802916#M85723</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2025-09-09T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13803022#M85726</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;"I am looking for a relevant AutoCAD API that can give me the indication that the drawing is circular."&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Natively, there is nothing I can think of except the warning you get when you are about to create a circular xref.&amp;nbsp; And there are even ways to get around that warning.&amp;nbsp; Outside of that, you don't notice a circular xref until it's too late.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish there was a way to manage control through the reference manager:&amp;nbsp;&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/civil-3d-ideas/update-request-to-the-reference-manager/idc-p/13724670#M13899" target="_blank"&gt;https://forums.autodesk.com/t5/civil-3d-ideas/update-request-to-the-reference-manager/idc-p/13724670#M13899&lt;/A&gt;&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>Tue, 09 Sep 2025 13:03:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13803022#M85726</guid>
      <dc:creator>J-Porter</dc:creator>
      <dc:date>2025-09-09T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13803044#M85727</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989493"&gt;@Nikita_RAUTELA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Currently I am&amp;nbsp;using AcDbXrefGraphNode::out() method to get the outgoing references for the active drawing but unfortunately it does not include the circular reference.&amp;nbsp;&lt;BR /&gt;I tried the following too, but I am not sure if I am doing it correctly:&lt;/P&gt;&lt;P&gt;1. get the XREFBlockID from the active document using&amp;nbsp;xrefBlockId()&lt;/P&gt;&lt;P&gt;2. Use the blocID in&amp;nbsp;acdbOpenObject() to get&amp;nbsp;AcDbBlockTableRecord, further I can get the BlockTable.&lt;/P&gt;&lt;P&gt;I am not sure if this is the right method and what to do next.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am coding in native(c++) I am not sure if I can set&amp;nbsp;&lt;SPAN&gt;FileOpenMode, but I will explore this as well&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I understand that you're attempting to identify this within the active document scope - but that is insufficient (even in ARX) - as an XREF in the active document is effectively a copy of the source drawing (and mostly behaves as a block reference).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An XREF does give you access to its source drawing, which can be opened as a side database - I work in Civil 3D, so I'm relegated to .NET - regardless, you'll need to open the XREFs as side database using&amp;nbsp;&lt;SPAN&gt;AcDbDatabase::readDwgFile() (C++), then query that side DB for it's XREFs, filtering for any that match active document's path, to solve your circular reference query.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that makes more sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Edit] - Oh! Don't forget to resolve any relative paths.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 13:32:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13803044#M85727</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-09-09T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13814040#M85761</link>
      <description>&lt;P&gt;When I perform&amp;nbsp;readDwgFile for the leaf drawing, I am able to get the xRefGraph and eventually its xRefGraphNode(the one I was looking for), but there is an issue while doing this, the status of the xrefNode is unresolved and it does not contain its DB. I tried to access the DB by further getting the BlockID from the xrefGraphNode but the DB there is that of the parent I suppose because the filename in it is that of the leaf drawing only.&lt;BR /&gt;Although, I can get the name of the Top Drawing from the leaf, this is still insufficient in my case, as path is not fetchable.&lt;BR /&gt;Am I doing something wrong or are the xref opened via readDwgFile's DB always in unresolved state?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 11:15:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13814040#M85761</guid>
      <dc:creator>Nikita_RAUTELA</dc:creator>
      <dc:date>2025-09-17T11:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13820995#M85774</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989493"&gt;@Nikita_RAUTELA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;When I perform&amp;nbsp;readDwgFile for the leaf drawing, I am able to get the xRefGraph and eventually its xRefGraphNode(the one I was looking for), but there is an issue while doing this, the status of the xrefNode is unresolved and it does not contain its DB. I tried to access the DB by further getting the BlockID from the xrefGraphNode but the DB there is that of the parent I suppose because the filename in it is that of the leaf drawing only.&lt;BR /&gt;Although, I can get the name of the Top Drawing from the leaf, this is still insufficient in my case, as path is not fetchable.&lt;BR /&gt;Am I doing something wrong or are the xref opened via readDwgFile's DB always in unresolved state?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You've not posted any code, so difficult for someone to see where you're stuck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you store HostApplicationServices.WorkingDatabase, then try {} setting side database current before calling&amp;nbsp;ResolveXrefs() &amp;amp; GetHostDwgXrefGraph(), and finally {} set old database current again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Never needed to use XrefGraph before, so I'm sure there's a way, but in some test code it was pretty easy to iterate side database's BlockTable to confirm status&amp;nbsp;BlockTableRecord.IsFromExternalReference &amp;amp;&amp;amp; !BlockTableRecord.IsFromOverlayReference (since an XREF as attachment is the only real circular reference). The code I have detects the nested circular reference in both B and C - which is technically correct, since they all XREF another as attachment and changing one of them from attachment to overlay would resolve - but will take more work to isolate the culprit to only being C.dwg (with A.dwg open in the editor, that is).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                            using (Database sideDb = new Database(false, true))
                            {
                                sideDb.ReadDwgFile(path, FileOpenMode.OpenForReadAndAllShare, false, "");
                                sideDb.CloseInput(true);

                                using (Transaction tr = sideDb.TransactionManager.StartTransaction())
                                {
                                    BlockTable bt = (BlockTable)tr.GetObject(sideDb.BlockTableId, OpenMode.ForRead);
                                    foreach (ObjectId btrId in bt) // &amp;lt;-- replace with linq
                                    {
                                        BlockTableRecord btr = (BlockTableRecord)tr.GetObject(btrId, OpenMode.ForRead);

                                        if (!btr.IsFromExternalReference || btr.IsFromOverlayReference) continue;

                                        ed.WriteMessage($"\n; xref: {btr.PathName}");
                                        if (PathsEqual(btr.PathName.ToUpper(), dwg.ToUpper())) // &amp;lt;-- Normalize paths
                                            ed.WriteMessage($"\n; circular xref found in: {path}");
                                    }
                                    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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 17:14:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13820995#M85774</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-09-22T17:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: In a circular reference drawing (A&gt;B&gt;C&gt;A) how to find the link between C and A which makes the three drawing circular?</title>
      <link>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13830733#M85821</link>
      <description>&lt;P&gt;I am suspecting that in your case, the drawing file is not opened in AutoCAD, coming from my observation when I open the drawing file in ACAD it shows a warning that the drawing has circular reference and do you still want to proceed, on proceeding I believe it resolves the circular links and then open the file, thus, I get the isCircularReference api&amp;nbsp; as&amp;nbsp; false.&amp;nbsp;&lt;BR /&gt;Nevertheless, I was able to get the filename so i managed to make my use case work, thanks a lot for all the help, much appreciated. I will definitely update if I stumble on some alternative that works.&lt;BR /&gt;Bets Regards!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 07:10:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/in-a-circular-reference-drawing-a-gt-b-gt-c-gt-a-how-to-find-the/m-p/13830733#M85821</guid>
      <dc:creator>Nikita_RAUTELA</dc:creator>
      <dc:date>2025-09-30T07:10:38Z</dc:date>
    </item>
  </channel>
</rss>

