Weldment - Invalid Path?

m2shell
Posts: 134
Joined: Mon Jun 28, 2021 2:07 pm
Answers: 0
Location: Brooklyn NY
x 121
x 56

Weldment - Invalid Path?

Unread post by m2shell »

This problem just appeared out of nowhere.
When I go to insert a weldment feature, I get an error "Invalid Path".
My Weldment Profile path is set correctly in File Locations
But it looks like it is trying to access a location called "\\\C:\Program Files\SolidWorks Corp\...(etc)"

Why would it be looking in such a strange location?

I even checked the file location in registry, but it looks fine.

Off subscription so can't try VAR.

Already tried a repair. Should i just re-install?

SW2022sp5
Screenshot 2023-04-27 131500.png
Screenshot 2023-04-27 131341.png
Screenshot 2023-04-27 131410.png
by Frederick_Law » Thu Apr 27, 2023 1:58 pm
Don't restore everything.
Uncheck and only restore one category.
See which one cause problem.
Go to full post
User avatar
AlexLachance
Posts: 2174
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2353
x 2008

Re: Weldment - Invalid Path?

Unread post by AlexLachance »

I know you looked in the registry but try a Registry reset:
https://www.javelin-tech.com/blog/2019/ ... -registry/
m2shell
Posts: 134
Joined: Mon Jun 28, 2021 2:07 pm
Answers: 0
Location: Brooklyn NY
x 121
x 56

Re: Weldment - Invalid Path?

Unread post by m2shell »

AlexLachance wrote: Thu Apr 27, 2023 1:39 pm I know you looked in the registry but try a Registry reset:
https://www.javelin-tech.com/blog/2019/ ... -registry/
Good idea.

I tried, and I was able to insert Weldment without an error.
THEN
I restored my customizations via the "Restore Settings" command. And the error re-appeared.
I then Re-Restored to an older setting backup and the problem went away.
So it looks like I have some corruption in the most recent customization backup.... wow
User avatar
Frederick_Law
Posts: 1944
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1634
x 1466

Re: Weldment - Invalid Path?

Unread post by Frederick_Law »

Don't restore everything.
Uncheck and only restore one category.
See which one cause problem.
m2shell
Posts: 134
Joined: Mon Jun 28, 2021 2:07 pm
Answers: 0
Location: Brooklyn NY
x 121
x 56

Re: Weldment - Invalid Path?

Unread post by m2shell »

Frederick_Law wrote: Thu Apr 27, 2023 1:58 pm Don't restore everything.
Uncheck and only restore one category.
See which one cause problem.
Yep. It was the System Options settings that were causing the problem.

Thanks!
User avatar
Frederick_Law
Posts: 1944
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1634
x 1466

Re: Weldment - Invalid Path?

Unread post by Frederick_Law »

Now, compare the setting files and see what's different.

Notepad++ can do that with Plugin:
https://notepad-plus-plus.org/downloads/
User avatar
mp3-250
Posts: 630
Joined: Tue Sep 28, 2021 4:09 am
Answers: 20
Location: Japan
x 695
x 346

Re: Weldment - Invalid Path?

Unread post by mp3-250 »

solidworks has the bad habit to export sldreg as an invalid registry file to begin with... I had a very bad experience deploying system options with a sldreg. solidworks FIXES the sldreg after some consistency check but exports garbage like SOME paths without escaping the slashes resulting in invalid paths...
m2shell
Posts: 134
Joined: Mon Jun 28, 2021 2:07 pm
Answers: 0
Location: Brooklyn NY
x 121
x 56

Re: Weldment - Invalid Path?

Unread post by m2shell »

mp3-250 wrote: Fri Apr 28, 2023 4:47 am solidworks has the bad habit to export sldreg as an invalid registry file to begin with... I had a very bad experience deploying system options with a sldreg. solidworks FIXES the sldreg after some consistency check but exports garbage like SOME paths without escaping the slashes resulting in invalid paths...
I haven't yet done the comparison with Notepad++ that @Frederick_Law recommended. But I think it all started last week when I was creating some new macro buttons and experienced some "irregularities" during the process...

Now that I think of It has SW yet fixed the behavior that you can't delete a macro in the "Keyboard Shortcut" menu once you've put it there? I still have some bespoke macros defined there from 6-7 years ago that have no context anymore.
User avatar
Frederick_Law
Posts: 1944
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1634
x 1466

Re: Weldment - Invalid Path?

Unread post by Frederick_Law »

mp3-250 wrote: Fri Apr 28, 2023 4:47 am solidworks has the bad habit to export sldreg as an invalid registry file to begin with... I had a very bad experience deploying system options with a sldreg. solidworks FIXES the sldreg after some consistency check but exports garbage like SOME paths without escaping the slashes resulting in invalid paths...
Do not export on first start of SW after install.
SW won't write to registry until it close.
That export will be mostly empty.
m2shell
Posts: 134
Joined: Mon Jun 28, 2021 2:07 pm
Answers: 0
Location: Brooklyn NY
x 121
x 56

Re: Weldment - Invalid Path?

Unread post by m2shell »

Frederick_Law wrote: Fri Apr 28, 2023 4:24 pm Do not export on first start of SW after install.
SW won't write to registry until it close.
That export will be mostly empty.
Wow. That's a great bit of info. Thanks @Frederick_Law
User avatar
mp3-250
Posts: 630
Joined: Tue Sep 28, 2021 4:09 am
Answers: 20
Location: Japan
x 695
x 346

Re: Weldment - Invalid Path?

Unread post by mp3-250 »

m2shell wrote: Fri Apr 28, 2023 5:00 pm Wow. That's a great bit of info. Thanks @Frederick_Law
This is a nice finding and I will keep it in mind.thank you for sharing @Frederick_Law
Unfortuanatelly I had a bad experience well after the first startup, in fact I imported and exported again the SLDREG file "to clean it up" with SW checks and be sure I was using a proper registry file before deploying to our clients.
Solidworks fails to write a proper REG4 format and implodes if you apply that registry file outside Solidworks.

I was wrong.
see viewtopic.php?t=2586

Imagine a *working* administrative tool that allow you to setup *all* options inside SW, PDM, EDRAWINGS, SIMULATION inside a coherent envroinment...
Post Reply