sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Problem to Constraint sizes to a maximum value

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    2 Posts 1 Posters 966 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      gerard.degreve
      last edited by

      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; = 2
      

      Scaling 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

      1 Reply Last reply Reply Quote 0
      • G Offline
        gerard.degreve
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement