2 Replies Latest reply on Feb 11, 2016 7:22 AM by Jonathan Charbonneau

    Using if statement to determine if the part is sheet metal or not?

    Jonathan Charbonneau

      Hello, I am editing a coworker's macro and in it are properties used in the drawings.  There is one for the thickness of the sheet metal.


      If the part is not sheet metal, I want the script to print blank and not something like :Thickness@" & strName


      Here is the whole line for the thickness:


      AddProperty "Thickness", swCustomInfoText, """Thickness@" & strName & """"


      I basically want to put this in an if else statement.  If the value of the thickness is a number (integer or real), allow this property to be added to the drawing.  Else, go to the next line.