Is there any way to check if files (made by an external company) are made on a legal license? or check on which licenses has been created file(parts and assemblies)?
There is no way I am aware of. There might be something embedded in the file. If there is, I believe you would have to send them to SolidWorks to get that detail.
Retrieving data ...