[SolidWorks] Error message when editing material

Hello

My colleagues and I have been getting the same error message for a long time every time we use the "Edit material" function to choose a material from our libraries (see attached file).

We don't know how to correct this error, since we already don't understand its meaning...

Thank you

 

 

 


erreur.png

It seems to me that this would mean that

You don't have a connection to the material library

To know where is the materials library?

See this link among others

https://www.my-cad.fr/personnaliser-materiau-solidworks/

@+ ;-)

1 Like

Hello

Which version of Solidworks?

Which Windows?

Is it still possible to access the materials after the message has been validated?

I suggest you check if all your material libraries listed in the Solidworks options (system options / File locations / Material databases) point to existing folders and if they correspond to those listed in the windows registry (search on the "Material Database Folders" key).

Kind regards

2 Likes

I actually forgot to specify that this error is not blocking, you just have to close it, and the materials window opens normally. All functions are operational.

We use SolidWorks 2016 SP3 on Windows 7 and 10 (same problem).

Attached is our configuration of the locations.

The first link, which cannot be removed in Solid, points to an existing folder that contains only a shader_mapping.dat file .

The 2nd link points to an existing folder on a server common to all our PCs. It is in this folder that we have created our own library of materials.

The 3rd link always comes back automatically, even after deletion. It points to an existing folder that contains only a Custom Materials.sldmat file

Regarding the Windows registry, my computer skills being limited, I can't answer.

Kind regards

 


config.png

Normally the first folder should contain the standard Solidworks databases:

For the second folder you should not put the path with a letter because if it is not the same on all PCs then it's dead, you should put something like \\server\Solidworks\materials.

The third folder is indeed a folder that comes back by itself (programData)

Kind regards

2 Likes

We get into the habit of deleting the 3 .sldmat libraries from the C disk folder every time we install a PC since we don't use them and it's impossible to ask SolidWorks not to point to this folder.

For the second file, I do not know how to write the address without indicating a letter. But the fact is that many file locations (materials, plans, nomenclatures, revision tables) have a link on this disk P, a letter that is dedicated to a specific server, some evening the company's pc. And we have no problem with all our other features. 

For the first point, it allows you to avoid cluttering up useless libraries if not used, so be it.

For the second point, it certainly works if each PC has the same drive letter for this server, it just forces you to connect the network drive identically on each PC and stick to it, it's a choice. To put the path without a letter, just navigate in Windows Explorer to the desired folder but go through "Network" and then recover the path by copying and pasting:

But all this doesn't solve your problem...

1 Like

Thanks for this tip, it will indeed be safer.

The problem nevertheless remains unsolved... Internally, we are running out of ideas.

Have you ever checked that it didn't come from your library file, to do this you just have to close Solidworks, rename your library file by putting .old after the extension, restart Solidworks, create an empty part, edit its material and see if you get the message.

I just did the manipulation, taking care to close and reopen Solid, the problem persists.

I even checked that it wasn't the accent in the file name that was the problem.

New manipulation this morning, with a strange result...

This morning I tried to put the 3 original SolidWorks .sldmat files back in their C:/ directory. For this, I have temporarily requested the administrator rights from my IT department. And against all odds: no more error messages!

To check, I delete these 3 files again to find myself in the initial state. The error message does not return... On the other hand, I still have this "Sustainaly Extras" library line in my Materials window (see screenshot attached) even though I just deleted this library from the C:// directory. I restart the PC just in case, same.

I ask that I be removed from the administrator rights of the C disk, sometimes this is the cause of the error massage. Of course not. I don't have the error message, and still this fake green library.

I don't understand the result. My directories and options are as they were yesterday, but the result is different. 

 

 


capture1.png

Hello

I'm not sure but I wouldn't be surprised if it comes from an inconsistency between the folders, libraries and the windows registry, hence my remark earlier in the posts. It seems to me that the "Sustainaly Extras" library is reserved for the Premium license and if it still appears in the list it must be present in the registry.

Kind regards

I don't know enough about computers to understand what the registry is.

I was just able to make this screen print after a few minutes of exploration. What am I supposed to find?


registre.png

The registry keys on the attached image are those of the favorite materials, this is not where you find the paths of the material libraries, you have to look for the "Material Database Folders" keys  by the registry search function.

WARNING : playing with the registry is dangerous for the stability of the system and programs so if you don't know anything about it, give it up or ask your IT department.

Kind regards

Search result as an attachment.

And far be it from me to go and touch computer functions that I do not master. Consulting the registry is within my reach and does not involve any risk.  Whatever happens, I don't change anything.

 


registre2.png

What I see on your image seems correct to me. As far as I know, it will not be possible for you to delete the "Sustainaly Extras" library line in your Materials window (this is the one that triggers the error message). Delivering the original .sldmat files created the "Sustainability Extras.sldmat" file in the "C:\ProgramData\SOLIDWORKS\SOLIDWORKS xxxx\Sustainability" folder and thus removed the error. On other PCs, I think you just have to put this file in this folder to remove the error message.

Kind regards

1 Like

Tested just now on another PC, it works: No more error message.

Worse, we'll get used to this empty Sustainability Extras that doesn't serve us any :)