 In 1913 the castle was purchased by the state.Between the world wars, it housed government offices; after World War II it was (somewhat redundantly) nationalized.In 1952, the building was renovated according to plans drawn up by the architect Jože Plečnik.