cut-list property link to part property

hello i need a macro that create a link between part property and cut-list property. i found a workaround that manually link the part property to cutlist property:- -create a global variable , this in value select measure and measure the length of bounding box for example -create a property and link it to the global variable this was manual technique to get the bonding box length in part properties , is their is a way to keep the link always exist between part and body properties?

SolidworksApi macros