Do you have an example of the file name and variable you want to get. Otherwise, use the MyCadTools Integration tool. You can get the filename that you can manipulate simply with some condition.
I suggest that you open a ticket at the hotline because you will be able to exchange in person with our teams. In addition, they will be able to take control remotely in order to better understand and respond to your request.
Then you can give your answer on the forum as soon as the solution has been found. This can help other users.