Use parameters in patters or markdivision

Hi, below short background ( you can skip it and just read the last question)
I want to create a dynamic draw that uses parameters. It is a draw of the standard element which can take any dimensions. I want to give the designer possibility to draw this element by inserting 4-5 parameter values. On that drawing, I need points on the line. The count of these points depends. If the user will increase the width of the draw, then I need more points, because the space between each point cannot be more than e.g. 100mm. Wanted to use a pattern, but... I cannot use dimensional constraints to define the pattern position and probably cannot insert a parametric value in the properties of the pattern (see picture, just the tests, but showing what I need), can I?

Mark Division would be perfect, but there is no history of the commands in which I can later change the number of segments via parameter. Is there?

Is there any possibility to define the parametric count of the points on the line?