sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    DC nested logical function

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    7 Posts 2 Posters 1.7k Views 2 Watching
    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.
    • D Offline
      dieter10
      last edited by

      Hello,

      This doesn't works in sketchup:
      IF( (length >=50)&&(with<=20),......)
      The problem:
      ()&&()
      How do I need to solve this?

      1 Reply Last reply Reply Quote 0
      • P Offline
        pcmoor
        last edited by

        there is no "&&" function but "AND"

        use =IF(and(leng >=50,with<=20),true,false)

        or can use nested
        =IF(leng >=50,if(with<=20,true,false),false)

        which returns 0 or 1

        true or false can replaced for any other outcome

        1 Reply Last reply Reply Quote 0
        • D Offline
          dieter10
          last edited by

          Thanks for the quick reply!
          And i have also some troubles with redrawing.
          Can i make something that if i press the apply button that it automaticly redraws ?

          1 Reply Last reply Reply Quote 0
          • P Offline
            pcmoor
            last edited by

            by using the "current" in a dummy variable you may achieve what you are after

            aX = current("x")

            can post the DC, or private message ?

            1 Reply Last reply Reply Quote 0
            • D Offline
              dieter10
              last edited by

              My model is nearly finished.
              Thanks for the reply's. Conclusion: you just need to think a moment how you're going to solve the problem and how you are going to create the formulas.
              In the .gif file, you can see how i can modify the model.
              But sometimes there is something that doesn't moves or ...
              Is that a bug in sketchup? I never had this problem whem i'm starting from the original model.


              DC.gif

              1 Reply Last reply Reply Quote 0
              • P Offline
                pcmoor
                last edited by

                You would need to post the DC, so one can check for the error, otherwise look for the red # when it fails, or maybe a redraw is required.........one can only guess

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dieter10
                  last edited by

                  Thanks for your reply pcmoor, i found 2 red #. The function of the subcomponent referred to a variable of another head component. And i forgot to define the x position of 2 pieces. Now it seems to work fine. I just need to add the position for the keys, because they are scaled with the door panel and i want them always off the same distance off the side.

                  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