After its construction in 1639 , it held sessions of the Scottish Parliament until the Act of Union in 1707 , but since the 19th century it has been an integral part of the Scottish Law Courts .
It was constructed by the Scottish Parliment in 1802 .