Vendor Parts Workbench

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: McMaster-Carr Workbench

Post by chrisb »

As it is no longer bound to this company, Step Fetcher sounds good. Perhaps even more descriptive "Third Party Step Fetcher" or "Step Catalog".
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
LHC
Posts: 321
Joined: Thu Sep 17, 2020 4:21 pm
Location: Canadian Coffee Shop

Re: McMaster-Carr Workbench

Post by LHC »

How about Step-Download ?
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: McMaster-Carr Workbench

Post by Roy_043 »

Fetch-it.
drmacro
Veteran
Posts: 8983
Joined: Sun Mar 02, 2014 4:35 pm

Re: McMaster-Carr Workbench

Post by drmacro »

I just tried again today with 0.20 and got the following:

Code: Select all

12:32:28  Debug: README not found at https://github.com/alexneufeld/FreeCAD_mcm_addon/tree/multivendor/blob/master/README.md
12:32:28  Debug: README not found at https://github.com/alexneufeld/FreeCAD_mcm_addon/tree/multivendor/blob/master/README.md
12:32:39  Traceback (most recent call last):
12:32:39    File "/home/mac/freecad-build/Mod/AddonManager/addonmanager_workers.py", line 770, in run
12:32:39      repo = git.Repo.clone_from(self.repos[idx][1], clonedir)
12:32:39    File "/home/mac/.local/lib/python3.7/site-packages/git/repo/base.py", line 1121, in clone_from
12:32:39      return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
12:32:39    File "/home/mac/.local/lib/python3.7/site-packages/git/repo/base.py", line 1059, in _clone
12:32:39      finalize_process(proc, stderr=stderr)
12:32:39    File "/home/mac/.local/lib/python3.7/site-packages/git/util.py", line 385, in finalize_process
12:32:39      proc.wait(**kwargs)
12:32:39    File "/home/mac/.local/lib/python3.7/site-packages/git/cmd.py", line 446, in wait
12:32:39      raise GitCommandError(remove_password_if_present(self.args), status, errstr)
12:32:39  git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://github.com/alexneufeld/FreeCAD_mcm_addon/tree/multivendor /home/mac/.FreeCAD//Mod/multivendor
  stderr: 'Cloning into '/home/mac/.FreeCAD//Mod/multivendor'...
fatal: repository 'https://github.com/alexneufeld/FreeCAD_mcm_addon/tree/multivendor/' not found
For the record, the following does work when added to the Configure dialogue in Addon manager:

Code: Select all

https://github.com/alexneufeld/FreeCAD_mcm_addon.git
But, when attempting to select the workbench after restart:

Code: Select all

12:44:28  No module named 'PySide2.QtUiTools'
12:44:28  Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/FreeCAD_mcm_addon/freecad/mcm_addon/init_gui.py", line 17, in Initialize
    from freecad.mcm_addon import mcmtools
  File "/home/mac/.FreeCAD/Mod/FreeCAD_mcm_addon/freecad/mcm_addon/mcmtools.py", line 1, in <module>
    from PySide import QtGui, QtUiTools, QtCore
  File "/home/mac/freecad-build/Ext/PySide/QtUiTools.py", line 1, in <module>
    from PySide2.QtUiTools import *

Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
alex_55
Posts: 63
Joined: Mon May 11, 2020 1:50 am

Re: McMaster-Carr Workbench

Post by alex_55 »

Thanks everyone for the rename suggestions. Will get the branches merged/tidied up this weekend maybe

----------------------------------------
drmacro wrote: Tue Sep 14, 2021 4:47 pm
But, when attempting to select the workbench after restart:

Code: Select all

12:44:28  No module named 'PySide2.QtUiTools'
12:44:28  Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/FreeCAD_mcm_addon/freecad/mcm_addon/init_gui.py", line 17, in Initialize
    from freecad.mcm_addon import mcmtools
  File "/home/mac/.FreeCAD/Mod/FreeCAD_mcm_addon/freecad/mcm_addon/mcmtools.py", line 1, in <module>
    from PySide import QtGui, QtUiTools, QtCore
  File "/home/mac/freecad-build/Ext/PySide/QtUiTools.py", line 1, in <module>
    from PySide2.QtUiTools import *

I was kind of expecting that someone would have issues with pyside. Still trying to wrap my head around the different versions that are involved in this addon. Can you try to explicitly install pyside2 on your system?

E.G.:

Code: Select all

pip install PySide2
User avatar
Anool
Posts: 12
Joined: Fri Feb 22, 2019 11:28 am
Location: Mumbai India
Contact:

Re: McMaster-Carr Workbench

Post by Anool »

Feature Request

If possible, please add these resources to the addon

https://www.traceparts.com/en
https://www.3dcontentcentral.com/
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: McMaster-Carr Workbench

Post by bleber »

Berger if tou can store diferents sites on a selection list
drmacro
Veteran
Posts: 8983
Joined: Sun Mar 02, 2014 4:35 pm

Re: McMaster-Carr Workbench

Post by drmacro »

alex_55 wrote: Tue Sep 14, 2021 5:49 pm ...

Code: Select all

pip install PySide2
Umm...sorry, last time I did that it took me 3 days to get my install working, let alone compiling.

I only use pip as an absolute last resort. ;)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: McMaster-Carr Workbench

Post by TheMarkster »

Just refer to PySide and it automatically uses PySide2. At least that's how I think it works.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: McMaster-Carr Workbench

Post by bernd »

alex_55 wrote: Sun Sep 12, 2021 8:32 pm Adapting to other websites is very easy. The addon doesn't actually know anything about the site it's pointed at. It just opens whatever URL you give it.
QtWebTools is almost suspiciously good at getting this exact job done. It handles download requests and creates the files for us. We even get a nice Qt signal when a file finishes downloading. The addon connects that signal to a function that can import step files into FreeCAD

I threw together a new branch that can autogenerate Gui commands for a list of website URLs: https://github.com/alexneufeld/FreeCAD_ ... ultivendor
thus it would work for example with this too https://www.3dfindit.com/ They have an own AddOn for FreeCAD available in the AddOn manager. Eventually since it nearly does the same both AddOns should be similar. https://forum.freecadweb.org/viewtopic.php?f=9&t=52616
Post Reply