Theory of Automation of Production Planning and of Tooling