SolidWorks API issue

Below is code generated by SolidWorks as I was clicking on Cut-List_Item folders (2 of them) and changing PartNo for weldment parts. When tried to run exact macro code that was generated, without changing even dot of a macro I got this error message. I am trying to access Cut-List-Item and PartNo inside it to change value. Is it possible to be done in one line as SolidWorks generated (however definitely it is not possible to be done in a way SW did below, as I checked and did not find CustomPropertyManager to be anyhow associated with FeatureManager) or I have to go thru creation of all bunch of access variables to do it.

Thanks.

SolidworksApi macros