3 Replies Latest reply on May 24, 2016 12:42 PM by Scott Britson

    Equation Issue

    Scott Britson

      I'm having an issue with my suppressed equations feature on this model.  For some reason, when the D1@Sketch1 is at 12 or 24, it does not work correctly.  But all the rest of the dimension work.  I'm still working in SW 2014, so if someone could verify that this works in the current version or has a solution, I would appreciate it.  Thanks.

        • Re: Equation Issue
          Arthur McRae

          I've downloaded you file, I'm observing the same problem in sw2016.  Trying to find you a work around.

          • Re: Equation Issue
            Arthur McRae

            So for some reason this works.  It wouldn't accept the 12 or 24 till I ran the value through an "int()" function

            "CONTROL"= int ( "D1@Sketch1" )

            "TOGGLE" = IIF ( "CONTROL" LIKE 14 OR "CONTROL" LIKE 18 OR "CONTROL" LIKE 22 OR "CONTROL" LIKE 26 OR "CONTROL" LIKE 30 OR "CONTROL" LIKE 34 OR "CONTROL" LIKE 38 , 1 , IIF ( "CONTROL" LIKE 1ft OR "CONTROL" LIKE 16 OR "CONTROL" LIKE 20 OR "CONTROL" LIKE 24 OR "CONTROL" LIKE 28 OR "CONTROL" LIKE 32 OR "CONTROL" LIKE 36 OR "CONTROL" LIKE 40 , 2 , 0 ) )

            "D1@LPattern1"= ( ( "D2@Base-Flange1" / 2 ) - 2.25 ) / 1.92

            "D1@LPattern2"= ( ( "D1@Sketch1" / 2 ) - 2 ) / 2

            "D7@Edge-Flange1"= "D7@Sketch1" - .015625

            "D6@Sketch1"=("D2@Sketch1"+.09375)/2

            "D4@Sketch1"="D6@Sketch1"-.125

            "D2@Sketch26"= "D4@Sketch1"

            "D4@Sketch34"= "D4@Sketch1" - .25

            "Cut-Extrude9" = IIF ( "TOGGLE" = 1 , "suppressed" , "unsuppressed" )

            "LPattern3" = IIF ( "TOGGLE" = 1 , "suppressed" , "unsuppressed" )

            "Mirror10" = IIF ( "TOGGLE" = 1 , "suppressed" , "unsuppressed" )

            "Mirror11" = IIF ( "TOGGLE" = 1 , "suppressed" , "unsuppressed" )

            "Cut-Extrude6" = IIF ( "TOGGLE" = 2 , "suppressed" , "unsuppressed" )

            "LPattern2" = IIF ( "TOGGLE" = 2 , "suppressed" , "unsuppressed" )

            "Mirror8" = IIF ( "TOGGLE" = 2 , "suppressed" , "unsuppressed" )

            "Mirror9" = IIF ( "TOGGLE" = 2 , "suppressed" , "unsuppressed" )

            "D1@LPattern3"= ( ( ( "D1@Sketch1" / 2 ) - 2 ) / 2 ) + 1

             

            Attached the txt equation file.