9 Replies Latest reply on Jul 15, 2016 9:16 AM by Jim Steinmeyer

    Add Custom Properties and Combine Values

    JOHN GEORGE

      I am trying to combine values of custom properties in a macro and doesn't work.

      Can someone please help me to solve the problem?

      Here is part of the code:

       

      retval = swModel.DeleteCustomInfo2("", "Thick") 'Remove existing properties
      retval = swModel.DeleteCustomInfo2("", "Width")
      retval = swModel.DeleteCustomInfo2("", "Length")
      retval = swModel.DeleteCustomInfo2("", "Stocksize")
      retval = swModel.AddCustomInfo3("", "Thick", swCustomInfoText, Thick)
      retval = swModel.AddCustomInfo3("", "Width", swCustomInfoText, Width)
      retval = swModel.AddCustomInfo3("", "Length", swCustomInfoText, Length)
      retval = swModel.AddCustomInfo3("", "Stocksize", swCustomInfoText, Thick & " x " & Width & " x " & Length) 'Add combined values
      

       

      This is the result

       

      custom properties.png

      I am missing the values in Stocksize