AnsweredAssumed Answered

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

Question asked by Jonathan Charbonneau on Feb 10, 2016
Latest reply on Feb 11, 2016 by 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.

 

Thanks!

 

John

Outcomes