Weldment - Invalid Path?
Weldment - Invalid Path?
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
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
Don't restore everything.
Uncheck and only restore one category.
See which one cause problem.
Go to full postUncheck and only restore one category.
See which one cause problem.
- AlexLachance
- Posts: 2174
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2353
- x 2008
Re: Weldment - Invalid Path?
I know you looked in the registry but try a Registry reset:
https://www.javelin-tech.com/blog/2019/ ... -registry/
https://www.javelin-tech.com/blog/2019/ ... -registry/
Re: Weldment - Invalid Path?
Good idea.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/
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
- Frederick_Law
- Posts: 1944
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1634
- x 1466
Re: Weldment - Invalid Path?
Don't restore everything.
Uncheck and only restore one category.
See which one cause problem.
Uncheck and only restore one category.
See which one cause problem.
Re: Weldment - Invalid Path?
Yep. It was the System Options settings that were causing the problem.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.
Thanks!
- Frederick_Law
- Posts: 1944
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1634
- x 1466
Re: Weldment - Invalid Path?
Now, compare the setting files and see what's different.
Notepad++ can do that with Plugin:
https://notepad-plus-plus.org/downloads/
Notepad++ can do that with Plugin:
https://notepad-plus-plus.org/downloads/
Re: Weldment - Invalid Path?
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...
Re: Weldment - Invalid Path?
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...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...
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.
- Frederick_Law
- Posts: 1944
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1634
- x 1466
Re: Weldment - Invalid Path?
Do not export on first start of SW after install.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...
SW won't write to registry until it close.
That export will be mostly empty.
Re: Weldment - Invalid Path?
Wow. That's a great bit of info. Thanks @Frederick_LawFrederick_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.
Re: Weldment - Invalid Path?
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...