Do the following to display the net names in your .bde file:
Generate .bde file using CodeToGraphics.
Open .bde file.
Select Diagram | Show hidden items from the main menu.
The names of all the nets should be displayed.