Possible Network bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on C3D development project where I have code to access Network object. Surely it is simple enough to simply call
CivilDocument.GetNetworkIds()
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.
If I save the drawing. close and then open it again, there would only be one network, as expected.
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.
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?