Problem to Constraint sizes to a maximum value
-
Hello,
I'm trying to create a dynamic component whose length and width are limited to a maximum value, and whose thickness is fixed .
I used the following formulas
LenX; =SMALLEST(60, CURRENT ("LenX")) LenY; =SMALLEST(120, CURRENT ("LenY")) LenZ; = 2Scaling handles are limited to the X and Y axes.
When I resize the component by using the handles or by typing a numeric value, the result is completely erratic.
The component is always resized, and not at the size, and in different dimensions than those I imposed, even if I chose dimensions lower than allowable maximum size.
And finally, the component is always resized on both axes, while I can only act on one axis at a time.I also tried another formula, with the same result:
= IF (CURRENT ("LenX")> 60,60,CURRENT ("LenX"))I would be grateful if you could tell me why it does not work, or give me some tips to achieve the goal sought.
Thank you in advance
Gerard
-
Hello,
I think I found where the problem lies:
After testing many variations to my formulas, without success, I had the idea of changing the internal units of the component.
Being Belgian, I naturally use metric units, so my component was configured with "cm".So I converted all numeric values in inches and reconfigured the component to use same unit.
Miraculously, everything works now as expected
, even when using the component in a model configured in metric units.I think there's a bug in the function CURRENT("LenX/Y/Z") which should return a value expressed in inches, whatever the choice of internal units.
Well, I hope my experience will serve the other!
Thank you for your attention,
Gerard
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement