We actually have a lisp routine that does this for us but what you could do is this:
Name the Motor Circuit something like plcio_some_motor_circuit.dwg.
The "plcio" is important in that the program see's this as a full PLC unit and inserts it.
Then add it into the spreadsheet like you would a plc module.
Once it is inserted, explode the block (as most motor circuits are nested blocks),
run the retag on the inserted components then run the wire numbering.
Our program inserts in this manner, see below:
(command "_.Explode" "last")
(c:wd_retag_update_noprompts 1 nil)
This works real well for us. Good luck.