AnsweredAssumed Answered

Dimension Text that is based on the value of the dimension

Question asked by Lucas Gingery on Dec 1, 2014
Latest reply on Dec 2, 2014 by Santosh Pawar

Is it possible to set up a macro that will insert Dimension Text that is based on the value of the dimension?  I am looking to select the thickness dimension in a drawing, then run a macro that will add a note to the thickness dimension according to my companies drafting standards.  The note will need to vary depending on what the thickness is.  The basic structure will be as shown below, I am just not sure how to call up the THICKNESS dimension.

 

If THICKNESS = .1345 then

     boolstatus = Part.EditDimensionProperties2(0, 0, 0, "", "", False, 2, 2, True, 12, 12, "10 GA. (", ")  STOCK", True, "", "", False)

ELSEIF THICKNESS = .1875 then

     boolstatus = Part.EditDimensionProperties2(0, 0, 0, "", "", False, 2, 2, True, 12, 12, "", " STOCK", True, "", "", False)

ELSEIF THICKNESS = .25 then

     boolstatus = Part.EditDimensionProperties2(0, 0, 0, "", "", False, 4, 2, True, 12, 12, "", " STOCK", True, "", "", False)

END IF

Outcomes