# Scripts or File Location for device addresses, Automation

**URL:** <https://forum.inductiveautomation.com/t/scripts-or-file-location-for-device-addresses-automation/81200>\
**Category:** Ignition\
**Created:** [October 30, 2023, 8:38pm UTC](https://forum.inductiveautomation.com/t/scripts-or-file-location-for-device-addresses-automation/81200 "2023-10-30T20:38:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Wilson](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@Alexander\_Wilson](https://forum.inductiveautomation.com/u/Alexander_Wilson)\
**Post date:** [October 30, 2023, 8:38pm UTC](https://forum.inductiveautomation.com/t/scripts-or-file-location-for-device-addresses-automation/81200/1 "2023-10-30T20:38:02Z")

</div>

I am trying to find a way to automate the ability for a device's addresses to be set, I am unable to find a documented way to do it by either scripting or a file location that could contain the configuration of devices. I have been able to automate the import of known devices using the built in libraries, is there some way to include the addresses in the device props object?

Any advice on how to do this without entering the web ui would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [October 31, 2023, 1:16pm UTC](https://forum.inductiveautomation.com/t/scripts-or-file-location-for-device-addresses-automation/81200/2 "2023-10-31T13:16:58Z")

</div>

Here you go.  
[https://docs.inductiveautomation.com/display/DOC81/system.device.addDevice](https://docs.inductiveautomation.com/display/DOC81/system.device.addDevice)

---

<div class="post-metadata">

**Author:** ![Alexander\_Wilson](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@Alexander\_Wilson](https://forum.inductiveautomation.com/u/Alexander_Wilson)\
**Post date:** [October 31, 2023, 1:39pm UTC](https://forum.inductiveautomation.com/t/scripts-or-file-location-for-device-addresses-automation/81200/3 "2023-10-31T13:39:27Z")

</div>

I don't see a way to add the addresses (tags) for the devices on this link.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 31, 2023, 1:50pm UTC](https://forum.inductiveautomation.com/t/scripts-or-file-location-for-device-addresses-automation/81200/4 "2023-10-31T13:50:53Z")

</div>

Perhaps you are confusing Ignition devices with Ignition OPC tags?

Also, note that "Address mapping" on some non-browsable device types is purely optional, and not even recommended any more. You can always construct OPC Item paths without browsing for them.

(IA hasn't exposed any tools to populate address mappings programmatically, because their purpose is for GUI convenience. If you are constructing things programmatically, just programmatically instantiate OPC tags with appropriate OPC Item paths--no address mapping required or recommended.)
