A dipswitch is an input port. It already was(still is) possible to change an artwork element state based on the value of an input port.
You'll need to add a dummy mask if you don't want the element to act as a clickable 'button'. And if the dipswitch is more than 1bit, you need to use inputraw="1".
See ccmk5 for example, where I use a language selection input port that also changes the the labels in the artwork.