The method I use is edit the xml files inside the yourprojectname/BaseXML folder. KP.xml is the device table; Incnl.xnl is input channel.
If you are familiar with xml, you can write a script to generate a complete xml file.
Or you can make 1 example in the configuration database first, then use a script or text editor to duplicate the lines and replace the content. then copy the lines your generated back to the xml file.
<KP>
<KPNum>10</KPNum>
<Name>Example</Name>
<KPTypeID>214</KPTypeID>
<Address>1</Address>
<CallNum>127.0.0.1</CallNum>
<CommLineNum>1</CommLineNum>
<Descr />
</KP>