sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Logic Function HELP!!

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 6.5k 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.
    • RichardR Offline
      Richard
      last edited by

      I'm trying to do a logical function but with NO luck, and after help.

      Trying to get this!

      If a dimension (lenZ) of the component is greater than 300 then return 360,
      if it is less than 300 but greater than 270 then return 300,
      if it is less than 270 but greater than 240 then return 270,
      if it is less than 240 then return 240!!!!

      The old bloke just aint getting this stuff!

      [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

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

        if using in the context of lenz attribute and assuming using cm, then value compare current("lenz")*2.54

        lenz = if(current("lenz")*2.54<=240,240,if(current("lenz")*2.54<=270,270,if(current("lenz")*2.54<=300,300,360)))

        if calculating a nearest_size attribute without forcing the lenz to snap to the result, then use

        size = if(lenz<=240,240,if(lenz<=270,270,if(lenz<=300,300,360)))


        using a logical.skp

        1 Reply Last reply Reply Quote 0
        • RichardR Offline
          Richard
          last edited by

          @pcmoor said:

          if using in the context of lenz attribute and assuming using cm, then value compare current("lenz")*2.54

          lenz = if(current("lenz")*2.54<=240,240,if(current("lenz")*2.54<=270,270,if(current("lenz")*2.54<=300,300,360)))

          if calculating a nearest_size attribute without forcing the lenz to snap to the result, then use

          size = if(lenz<=240,240,if(lenz<=270,270,if(lenz<=300,300,360)))

          Sometimes, I think I'm smart, and then someone proves to me I'm not so!

          Sorry about the delayed response mate, I just got to try that and bang, works a treat!!!!!!!!

          You are a modern day superhero!!!!!!

          [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

          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