Configuration Proprty by API

Hello Everyone,

How to change "part number displayed in Bill of Material" option to CONFIGUATION NAME from Documant name in Configuration property?

Please Refer the image...

Thanks

SolidworksApi macros