AnsweredAssumed Answered

Add Custom Properties and Combine Values

Question asked by JOHN GEORGE on Jul 13, 2016
Latest reply on Jul 15, 2016 by Jim Steinmeyer

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

Outcomes