I'd like to know How to get a node of between two devices dynamically in ocean script.
It is due to set the node for outputting as graph.
I don't understand what you're asking - what does "How to get a node of between two devices dynamically" mean? Or "It is due to set the node for outputting as graph"?
I'd like to get the node name between device A and device B which are connected by a line. The two devices are always existing in our test bench, but the node name is sometimes changed like as net01 --> net11 after modifying. Although, I know the best way is set a name to the node, I'd like to know other approach.
In ADE Explorer you can change on Results->Printing/Plotting options that the Terminal Selection Type under Probing is set to "both" and then when you use Outputs->To Be Plotted->Select on Schematic and click on the pin of one of the instances, it will then plot both the current though that pin and the voltage on the pin too (so on the connecting net). Unfortunately this doesn't then work if you export it as an OCEAN script (it probably should - it would be worth contacting customer support about this since it sounds as if this is what you want).
Other than that, I think your only option would be to look at the connectivity in the database, or you could add (via Outputs->Save All, adding what=nodes, where=file - rawfile doesn't work - you can then generate an OCEAN script to figure out the settings for that) and this will produce an ASCII file in the netlist directory called input.info.nodes with the mapping for each device to the nodes to which it is connected. However, you'd have to parse that somehow too.
So by far the easiest solution is just to name the net!
Thanks for some ideas. I understood what I have to set a name the net.