<?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: Possible Network bug? in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10586451#M6272</link>
    <description>I'm on vacation with no way to test/verify &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;  but when you have an Xref or a block of a drawing with Networks, the GetNetworkIds() finds the nested networks. So when you copy/paste there is likely a temporary block created which holds the second phantom network which C3D cleans up when closing the drawing.</description>
    <pubDate>Tue, 31 Aug 2021 05:24:31 GMT</pubDate>
    <dc:creator>Jeff_M</dc:creator>
    <dc:date>2021-08-31T05:24:31Z</dc:date>
    <item>
      <title>Possible Network bug?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10585265#M6271</link>
      <description>&lt;P&gt;I am working on C3D development project where I have code to access Network object. Surely it is simple enough to simply call&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CivilDocument.GetNetworkIds()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I have to repeatedly test my code on different drawings, sometimes I just copy drawing content with network included to another blank drawing to run my debugging/testing. I use Clipboard Copy/Paste to do it. Then I found, in the drawing where the drawing content is pasted, the GetNetworkIds() would return 2 network IDs in spite the copied drawing content only has one network in it. If the code opens the 2 DIFFERENT network ObjectIds as Netowrk objects, both has the same Name, and the same other properties. That is, the 2 are identical. Yes, the Prospector in Tool Space paletteSet only show one network exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I save the drawing. close and then open it again, there would only be one network, as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I assume it is somehow a bug with C3D. And with this bug, if running code related to network with a drawing that has network just copied from external drawing, this bug could be hit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that I know reopening the drawing would avoid this issue, I am curious to know whether anyone comes across this. Or maybe, with C3D network, one should never copy from one drawing to another?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 17:29:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10585265#M6271</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-08-30T17:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Network bug?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10586451#M6272</link>
      <description>I'm on vacation with no way to test/verify &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;  but when you have an Xref or a block of a drawing with Networks, the GetNetworkIds() finds the nested networks. So when you copy/paste there is likely a temporary block created which holds the second phantom network which C3D cleans up when closing the drawing.</description>
      <pubDate>Tue, 31 Aug 2021 05:24:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10586451#M6272</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-08-31T05:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Network bug?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10587588#M6273</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no block/Xref involved. After running this with a quite large drawing during code debugging, I also thought that, maybe, the copying brought into some "garbage". So, I started a blank drawing, drawing a simple polyline, convert it into a pipe (thus a Network is created). Then I copy this simple pipe into another blank drawing (so, no blockreference/Xref involved). Ran code with GetNetworkIds(), it returned 2 network IDs (i.e. 2 identical Network objects with different ObjectId). Closing and reopening the drawing would get rid of the duplicate.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 14:11:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10587588#M6273</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-08-31T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Network bug?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10589813#M6274</link>
      <description>&lt;P&gt;I can confirm I am seeing the same issue. I followed your steps and was able to reproduce the results. If I look at Project Explorer after pasting a pipe I also see a duplicated network that disappears after closing and opening the drawing. I also found the duplicated network in the profile view properties pipe networks tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This leads me to believe it is a Civil 3D bug and not just an API bug.&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="KyleL_0-1630483930548.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959703i7961D4E5168BF74E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleL_0-1630483930548.png" alt="KyleL_0-1630483930548.png" /&gt;&lt;/span&gt;&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="KyleL_1-1630484069779.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959704i123325697B31DA36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleL_1-1630484069779.png" alt="KyleL_1-1630484069779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 08:15:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/possible-network-bug/m-p/10589813#M6274</guid>
      <dc:creator>Kyle-L</dc:creator>
      <dc:date>2021-09-01T08:15:05Z</dc:date>
    </item>
  </channel>
</rss>

