DYNAMIC COMPONENT -odds of component

hello,
if i have door with hinges
and number of hinges depend on height of this door
how to make this hinges component hide/show by the height door
the odds of hinges now is (2 hinges or 3 hinges or 4 hinges or 5 hinges)
and how can control in its height by fixed equation depend on the final number of hinges

thanks

edit hinges on door swing second level

1 Like

number of hinges = ceiling(height of door/max space)+1

1 Like