Algorithms to implement dimensions to CAD entities