Custom elements

The DSL element keyword can be used to define elements that sit outside of the C4 model. For example, perhaps a software system named A controls a hardware system named B.

workspace {

    model {
        a = softwareSystem "A"
        b = element "B" "Hardware System"

        a -> b "Sends control signals to"
    }

    views {
        systemContext a "Diagram1" {
            include *
            autoLayout lr
        }
    }
    
}