How can I create a function in SolidWorks that takes a total length, divides it by a number, checks if the result is between 500–600 mm, and if not, keeps adjusting the divisor until the result falls within that range — then returns both the divisor used and the resulting spacing value (the number between 500–600 mm)?
I want to use it for creating a linear pattern where the user can just change the total length of the system and then the function/linear pattern automatically inserts og removes components and makes sure they have the spacing required (500mm-600mm)?
