BendTableFile wrong returned?

I want to add type of bend dye to the bend note on the flat pattern. I need to find the data in the sheet metal gauges table.

The bend table found is not the one I have selected for the bend ?

Debug.Print " BendTableFile = " & swCustBend.BendTableFile

Chose you one bendtabel for the SM bend and run the eksample - the returned BendTableFile is not the right one.

http://help.solidworks.com/2018/English/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IBendsFeatureData.html

(Dim swModel As ModelDoc2 is missing in the SW eksample.)

BR Niels

SolidworksApi/macros