Saving a Drawing as the Name of the configuration name of the part in it.

I'm trying to export a drawing to pdf, and require the name of the exported drawing to be the same as the configuration name of the part in it.

I've managed to make it save to PDF, but can't change the file name to the configuration name.

Any help would be appreciated.

SolidworksApi/macros
Comments 2
LT
LT 2021-04-08

Thank You! That is exactly what I wanted. 

DG
DG 2021-04-08

For configuration name, you need to use swView.ReferencedConfiguration

Check the "Get Configurations Referenced in View Example (VBA)" example in the API help file.