I am working on Layout XL. When I select the a net on layout then it will automatically route. For example in layoutXL 3 devices has "net1" connection. If I select "net1" then "net1" routing will be automatically done for those 3 devices. Is there any command for this directly or need to write code for this. Please suggest me on this.
In IC615 you can turn on the Navigator (Window->Assistants->Navigator), find the net you want to route, and then do Right Mouse->Route with default lookup or Route with WA Overrides (this is any settings in the wire editor).
Alternatively you can start routing from one of the connection points using the wire editor ( Create->Wiring->Wire) and then do Right Mouse -> Finish Entire Net.
If you have more than one net selected in the navigator, you can do that too, but in that case it will use the appropriate number of Layout GXL tokens (as it's effectively using the full router then).