When I was in college last year i encounter this program which was made from:
this is like a calculator that process the input you specify and it will reflect on the drawing like this
and if you input the data and click apply the drawing will change
SolidworksGeneral