3 Replies Latest reply on Mar 18, 2016 1:35 PM by Deepak Gupta

    Macro Conditional variables

    Cad Admin

      I have a variable in a drawing DrwRev.  It reads the variable off of custom properties.  I need to check the property to different conditions to correct the users input error.  My company uses 2 digit revision levels and we have a lot of issues with people entering a single digit.


      I currently have an if statement


      if DrwRev < 10 Then DrwRev = "0" & DrwRev


      This covers 99% of my issue, however sometimes i have people enter "0" when it should be "00"


      And at the same time, if they entered 00 correctly...it changes the DrwRev to 000


      What is the best solution for the 0 00 issue? or am i going at this all wrong.