LibraryFeature: How to set max limit for dimensions

Hi all,

I have the follwoing problem: I have a library feature where I need to define some limit for a sketch dimension... this dimension must be set from user during feature insertion... I would like to force the user to stay inside a specific range for that dimension... how can I do? The only idea I had, was to insert specific geometry conditions (using constraction sketch entities) that goes on error when the dimension is set to a value external to my defined range... but this is not so easy to realize... is there a easier way??

Thanks in advance,

Matteo

SolidworksParts And Features