• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

DC nested logical function

Scheduled Pinned Locked Moved Dynamic Components
sketchup
7 Posts 2 Posters 1.6k 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.
  • D Offline
    dieter10
    last edited by 12 Nov 2014, 21:48

    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 12 Nov 2014, 22:21

      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 12 Nov 2014, 22:24

        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 12 Nov 2014, 22:52

          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 23 Nov 2014, 22:16

            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 24 Nov 2014, 04:43

              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 24 Nov 2014, 20:35

                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