How to read filename from solidworks assembly?

Hello @dzhhhgit,

Welcome to the forum !

You can try the function A3DAsmProductOccurrenceGetOriginalFilePathName to retrieve the file path.

Thanks,
Tino