2 Replies Latest reply on Jan 31, 2012 5:15 PM by Charley McGowan

    Condition operator syntax

    Charley McGowan

      So we have legacy part numbers that follow this format 12-12345-12.filename*

       

      These part numbers can be associated with .sldprt or .docx or any file format really, anything referring to the same part. We're just trying to move the legacy parts into the new PDM and make sure they enter the correct workflow.

       

      I'm looking to set conditions so that they enter a legacy category, which would then put them in their approprate workflow, and so I set a condition with the filepath to look like this based on the operators:

      legacy conditions.png

      Now as I understand it, an underscore is a single character. Can you not do a condition like __-_____-__%.doc% to allow word documents following our old legacy part number format?

       

      It won't ever satisfy the condition, even though I know that single character counts are correct ( being 2-5-2%.% if that makse sense) 

       

      When I set it to a less strict setting (%.doc%) then I can check in the files... but I don't understand why the __-_____-__%.% won't work?

        • Re: Condition operator syntax
          Jim Sculley

          Charley McGowan wrote:

           

          So we have legacy part numbers that follow this format 12-12345-12.filename*

           

          These part numbers can be associated with .sldprt or .docx or any file format really, anything referring to the same part. We're just trying to move the legacy parts into the new PDM and make sure they enter the correct workflow.

           

          I'm looking to set conditions so that they enter a legacy category, which would then put them in their approprate workflow, and so I set a condition with the filepath to look like this based on the operators:

          legacy conditions.png

          Now as I understand it, an underscore is a single character. Can you not do a condition like __-_____-__%.doc% to allow word documents following our old legacy part number format?

           

          It won't ever satisfy the condition, even though I know that single character counts are correct ( being 2-5-2%.% if that makse sense) 

           

          When I set it to a less strict setting (%.doc%) then I can check in the files... but I don't understand why the __-_____-__%.% won't work?

          You need a leading % or some other text to indicated where the file is.  The file path it is trying to match is the full file path relative to ther vault root.  Somethig like this should work:

           

          %\__-_____-__%.doc%

           

          Jim S.