Adding Logic to equations...

Discussion in 'SolidWorks' started by J.Rathakrishnan, Nov 2, 2004.

  1. J.Rathakrishnan, Nov 2, 2004
    #1
  2. pdf

    Yup, IIF is definitely useful. However, I have a nasty problem in
    SW2005 : I can't reuse a variable defined by an IIF in another
    equation.
    For example these equations define a gear profile used in watches:
    "m"=0.090 ' module
    "Z"=10 ' N teeth, normally retrieved from pattern parameter
    "D@NIHS"="m"*"Z" ' primitive diameter
    "ha"=IIF("Z"<7,1.6,IIF("Z"<8,1.65,IIF("Z"<9,1.7,IIF("Z"<10,1.725,
    IIF("Z"<11,1.75,1.8)))))
    "hf"=IIF("Z"<8,0.82,IIF("Z"<11,0.76,0.72))
    "Da@NIHS"="m"*("Z"+2*"ha") ' This equation fails, although ha is ok
    "Df@NIHS"="m"*("Z"-2*0.72) ' Works if hf is replaced by its value
    ha is evaluated correctly, but can't be reused in another equation
    (Da@NIHS).
    I submitted this to support... did anyone find a workaround ?
    Philippe Guglielmetti - www.e-systems.ch
     
    Philippe Guglielmetti, Nov 2, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.