GithubHelp home page GithubHelp logo

freecad / freecad-library Goto Github PK

View Code? Open in Web Editor NEW
1.1K 1.1K 1.0K 5.25 GB

A library of Parts for FreeCAD. WARNING - This library is huge. It might take a long time to download and make the addons manager unresponsive for many minutes.

Python 1.05% C++ 1.21% HTML 97.74%

freecad-library's Introduction

FreeCAD-library

This repository contains a library of Parts to be used in FreeCAD. It is maintained by the community of users of FreeCAD and is not part of the FreeCAD project, although it is made with the aim to be used as a repository of parts by FreeCAD in the future.

Contributing to the library

If you made some interesting objects with FreeCAD, why not share them here? Others might find them useful. The procedure is simple:

  1. Create a github account for yourself
  2. Fork this repository using the "Fork" button on the top right corner of this page
  3. Follow the github instructions to clone your fork on your computer
  4. Make all the changes you need, create more folders if necessary, and place your files in them
  5. Upload (push) your changes to your fork on github (refer to the github help for instructions)
  6. When your fork has been updated, you can submit a pull request to have your changes merged into the official library. A member of the community will review your proposed additions and accept the merge.

Each Part should be correctly named, and placed into subdirectories by family or type. They should also be available in both .FcStd and .stp formats, and optionally in .stl format (because github lets you visualize them). They should also be as simple as possible, and parametric so users can easily change their dimensions. In the file properties of each .FcStd file, the author should also be mentioned, and the license information if available.

Note: Please DO NOT use accented characters in your file names, thanks!!!

If you are interested in contributing to this library on a more long-term basis, please ask for write access to this repository on this FreeCAD forum thread: http://forum.freecadweb.org/viewtopic.php?f=19&t=4205

License

All Parts in this repository are licensed under CC-BY 3.0 http://creativecommons.org/licenses/by/3.0/ Each Part is copyrighted by and should be attributed to its respective author(s). See commit details to find the authors of each Part.

If you are uploading parts to this repository, please make sure you are the author of the model, or otherwise that you have right to share it here under the CC-BY 3.0 license, and make sure the author is mentioned in the commit message.

Install

As the library is part of the FreeCAD addons, the easiest way to install and keep the library updated is through the addons installer, where you will find it there under the name 'parts_library'.

Warning: the library is huge in size (+/- 5 Gb) and therefore might take a very long time to download

There are currently two workarounds to this problem:

  1. You can download and install this library manually by following these steps:
  • In FreeCAD, find which is your user modules folder by entering or pasting App.getUserAppDataDir()+"Mod" and your usr macros folder by entering App.getUserMacroDir() in the Python console (found under menu View->Panels)
  • Download the library as a zip file using the green "clone or download" button in the top right corner of this page
  • Unzip the zip file you just downloaded. You will get a "FreeCAD-library" folder
  • Rename that folder from "FreeCAD-library" to "parts_library"
  • Move that renamed folder to the modules folder location that we got above
  • Inside the FreeCAD-library folder, you will find a PartsLibrary.FCMacro file. Copy that file to the macros folder that we got above
  • Restart FreeCAD. The parts library will be installed, and the addons manager will recognize it as installed. You can launch and use the library by executing the PartsLibrary macro from menu Macro -> Macros...
  1. The BIM addon has a Library tool that features an experimental "online" option. With that option enabled, the BIM Library tool is able to access and use this library online, without the need to install it.

The library is a simple container for FreeCAD (.fcstd) and STEP (.stp) files. You can download it anywhere and import its files in your FreeCAD projects. Inside the library, there is a FreeCAD macro (PartsLibrary.FCMacro) that you can place in your FreeCAD macros folder. That macro creates a browser window inside FreeCAD, from which you can easily add the parts by double-clicking them.

Usage

  1. Make sure FreeCAD was restarted after installing the PartsLibrary addon
  2. Launch the execute macro window (Macro menu => macros...)
  3. Execute the PartsLibrary.FCMacro
  4. If the macro asks for the folder for the Parts Library point it in to the right folder (under Windows11 it should be under C:\Users%username%\AppData\Roaming\FreeCAD\Mod\parts_library or %appdata%\FreeCAD\Mod\parts_library)
  5. The parts library should open on the right side, double click on a part to add it to your current model

Start the PartsLibrary.FCMacro from Sharing your models from the macro

The macro also allows a couple of other possibilities, such as adding new objects, and sharing your objects with others. To share, you will need the python-git package installed on your computer, and an online git repository you have permission to write to. The easiest way to obtain that is using the "fork" button on top of this github page.

Once you have made your fork, you will get an URL from it, that you can use in the macro's config dialog. After that, once you have saved your models to the library, you can push them to your online git repository, and, if you wish, make a pull request on this page to see your models integrated to the official library.

freecad-library's People

Contributors

5263 avatar almisuifre avatar altenife avatar andrewakinson avatar angellm avatar berserkdesign avatar darmsua avatar diegotrap avatar disenator avatar fran6t avatar francisco-rosa avatar gafeju avatar hasecilu avatar j-wiedemann avatar jcarolinares avatar martcram avatar martinproks avatar mloidl avatar mrfreez avatar nachotineo avatar nickless81 avatar nicoguaro avatar normandc avatar obijuan avatar pysimone avatar raduborzea avatar rcccort avatar renato-rebelo avatar viqbem avatar yorikvanhavre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freecad-library's Issues

`SMLogo.SVG` popup message at start

image

forum thread: https://forum.freecad.org/viewtopic.php?t=78649

OS: macOS 13.3
Word size of FreeCAD: 64-bit
Version: 0.21.0.31483 (Git)
Build type: Release
Branch: master
Hash: 588620fd9fd138892b1cd2466f5c87d441493174
Python 3.11.0, Qt 5.15.6, Coin 4.0.0, Vtk 9.2.2, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * freecad.gears 1.0.0
  * parts_library 0.2.63
  * A2plus 0.4.60n
  * BIM 2021.12.0
  * fasteners 0.4.56
  * Assembly4 0.50.2
  * Assembly3 0.12.0

Sliding 202 panes does not show in FreeCAD 0.15

I tried to open the piece to generate an STL from it, but it does not show. When I try opening the STEP it works.

System information

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

I also tried in my Laptop at home with no success.

library dimension: something wrong?

I'm trying to download the library as zip or using github clone.

The zip is about 4.4GB but decompressed is more over. Can't be more precise because it full my disk, but Mechanical Parts/Chains are about 15GB

In the readme i can read a dimensione of about 1GB. What happens?

Is there a way to download only a sub-part of the library?

Add a filter proxy to the model

Please allow user to filter the view with a proxy model so that we can reduce the tree.
By example, if search match a file, the parent folder would be visible, but if a folder match, all it's inner children should match as well.

Compressed (zipped) folder is empty

I have tried to download the parts library three times on two different computers and everytime when I try to extract the zip file I get the message the Windows "Cannot complete the Compressed (zipped) Folders Extraction Wizard" because

"The compressed (zipped) folder is empty.

Before you can extract files you must copy files to this compressed(zipped) folder"

The folder is showing as taking up 3.6GB on may hard drive. I'm a bit baffled by this. Is this a recent issue? Or is anyone else having this problem?

Can not run freecad on Debian Error libboost_filesystem.so.1.55.0 not found

Hi I try to run Freecad on Debian and I get this:
freecad: error while loading shared libraries: libboost_filesystem.so.1.55.0: cannot open shared object file: No such file or directory
I have installed libboost and I got libboost-filesystem1.62.0 haw can i fix this issue to run freecad again.
Reinstall freecad had no effect.

Thanks for help

438, 5, 'print "Library path ", LIBRARYPATH, "not found."\n'))

I have a message : <type 'exceptions.IndentationError'>: ('expected an indented block', ('/home/lolo/.FreeCAD/Macro/PartsLibrary.FCMacro', 438, 5, 'print "Library path ", LIBRARYPATH, "not found."\n'))

PartsLibrary.FCMacro.tar.gz

The file is ./freecad/Macro I launch freecad but when I select the macro and select launch I have that message : <type 'exceptions.IndentationError'>: ('expected an indented block', ('/home/lolo/.FreeCAD/Macro/PartsLibrary.FCMacro', 438, 5, 'print "Library path ", LIBRARYPATH, "not found."\n'))

I am running on a Vaio portable with linuxmint 18.2 cinamon 3.4.4 core linux 4.10.0-28 64bit system freecad is the stable version installed with ppa:freecad-maintainers/freecad-stable V16

Issue with compatibility

It seems the most part (or all of them) are incompatible with assembly4 or any othe plugin for assembly. I got a dirty workarround for example the arduino mega where I converted every volume into a part. But seriously this library is worthless if nobody is able to use them in proper assembly. I understand that the community is unsure about which assembly toolbox is the best one, but we need some common ground to have a library which is working in any case. Sure I can build my own library but this doesn't help anybody.

Can we have a plan how to Contribute to this Repo? I am willing to contribute, but we first should discuss any workflows how the parts should be generated and loaded.

I literally rebuilded most of the parts I needed already and it is time consuming and frustrating progress. I really want to support open source CAD. I come from a Catia Background and used traceparts recently. I understand everybody who has not that strong open source mind as me who never like to touch FreeCAD.

It's not possible to undo part addition

When you add a library part to a document and then attempt to undo the addition, you end up undoing some earlier operation. It would be nice if undo could be supported (if not, perhaps the next best thing would be to display something like "Undo not supported for part import" or something like that in the Report view and not do anything else).

OS: Ubuntu 20.04.3 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.24436 (Git)
Build type: Debug
Branch: master
Hash: bf527ba5ed9cbde0813e702c2f3793fb55f5be7c
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
Locale: English/United States (en_US)

FreeCAD parts library is corrupted

Hi, devs!

I downloaded the zip file, but I get this message upon extraction of the file.

image

I also can't get the parts library installed using the addon manager. I let it run for over two hours, but FreeCAD just seemed to hang. For comparison, I downloaded the zip file here in github for about 30 minutes.

Part Library browser cannot access hidden directory below "~/.local"

  • installed part library using addon manager
  • called macro as instructed
  • can browse file tree, but not access part library location
  • opening part library in addon manager, I find the installation path:
    /home/username/.local/share/FreeCAD/Mod/parts_library
    but cannot open this location, since directory names starting with a dot are hidden in standard GUI
  • don't know how the file browser of the GUI is configured, but I can't find a location to enter/show hidden directories
  • workaround: create a non hidden symbolic link, e.g.
    _local_share_FreeCAD -> /home/username/.local/share/FreeCAD

system details:

OS: Debian GNU/Linux 10 (buster) (LXDE/LXDE)
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.21.2)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.10.13, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.6, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * fasteners 0.5.12
  * slic3r-tools
  * Pyramids-and-Polyhedrons
  * A2plus 0.4.63
  * Assembly3 0.12.2
  * Assembly4 0.50.7
  * FeedsAndSpeeds 0.5.0
  * dodo 1.0.0
  * frame 0.1.1
  * freecad.gears 1.2.0
  * Manipulator 1.5.7
  * MOOC 2022.4.21
  * Help 1.0.3
  * ose-piping
  * QuickMeasure 2022.10.28
  * sheetmetal 0.4.2
  * ThreadProfile 1.89.0
  * SteelColumn
  * Estimate 0.1.2
  * DynamicData 2.60.0
  * parts_library

Windows 10: problem during addons installation and unpacking file FreeCAD-library-master.zip.

Win10, FreeCAD 0.16, parts-library:

Small problems with parts-library

  1. Macro "addons_installer.FCMacro" hangs during installation parts-library. Hangs well during the removal of parts-library too. That's why the folder "C: \ Users \ xxx \ AppData \ Roaming \ FreeCAD \ Mod" contains incomplete data.
  2. When I used file FreeCAD-library-master.zip. WinRAR interrupts unpacking the zip file on the wrong file names.

Cause:

  • colon character in the file name in the Win10 unacceptable, such as "FreeCAD-library-master \ Mechanical Parts \ 4-wire thread \ Captura de pantalla de 2016-12-31 13:12:02.png" (4 pieces)
  • Illegal characters in "FreeCAD-library-master \ Mechanical Parts \ Sigma profiles \ ." files Ayarxxx180.stp, Profilxxx45x45.fcstd.

Please correct it.
mbi33

Qt5 compatibility issue

Hi, I'm running into the following error using this on Arch Linux's FreeCAD-Qt5 build:

Traceback (most recent call last):
  File "/home/kurt/.FreeCAD/Macro/PartsLibrary.FCMacro", line 449, in <module>
    m.addDockWidget(QtCore.Qt.RightDockWidgetArea,ExpDockWidget(LIBRARYPATH))
  File "/home/kurt/.FreeCAD/Macro/PartsLibrary.FCMacro", line 215, in __init__
    self.retranslateUi()
  File "/home/kurt/.FreeCAD/Macro/PartsLibrary.FCMacro", line 220, in retranslateUi
    self.setWindowTitle(QtGui.QApplication.translate("PartsLibrary", "Parts Library", None, QtGui.QApplication.UnicodeUTF8))
<type 'exceptions.AttributeError'>: type object 'PySide2.QtWidgets.QApplication' has no attribute 'UnicodeUTF8'

Version info:

Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11528 (Git)
Build type: Release
Branch: master
Hash: d31be3117de386b4f6cd3444e0b330db56dc6ba2
Python version: 2.7.13
Qt version: 5.9.1
Coin version: 3.1.3
OCC version: 7.1.0

Spreadsheet references are not updated when parts are added and spreadsheet names are changed

There are parts in the library that contain spreadsheets. For example, each sprocket part in the directory https://github.com/FreeCAD/FreeCAD-library/tree/master/Mechanical%20Parts/Chains/Sprocket/ISO%20606/Simplex%20%201%C2%BDx1 contains a spreadsheet named "Data" that contains parameters for the part.

When I add the first sprocket to my empty document, all is well. When I add another sprocket, the system automatically renames second sprocket's "Data" spreadsheet to "Data001". However, references to spreadsheet cells are not renamed -- they are not <<Data001>>.Wt, they are <<Data>>.Wt. In other words, the second sprocket uses the parameters of the one that was added first.

OS: Ubuntu 20.04.3 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.24436 (Git)
Build type: Debug
Branch: master
Hash: bf527ba5ed9cbde0813e702c2f3793fb55f5be7c
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
Locale: English/United States (en_US)

freecad library preview show only some model

I opened mechanical parts/bearings, clicked 608ZZ_Ball_Bearing.fcstd, and it showed a preview. Then I clicked 623ZZ_Ball_Bearing.fcstd and it didn't show any preview. I've only tested it on the bearings library. Some libraries show previews and others don't.

What could be wrong? Are there things I should tweaks?

Unable to checkout working tree on Windows

When cloning the repo on windows, I get the following error:

POST git-upload-pack (151 bytes)
remote: Total 9299 (delta 0), reused 0 (delta 0), pack-reused 9299        
unable to create file Mechanical Parts/4-wire thread/Captura de pantalla de 2016-12-31 13:12:02.png: Invalid argument
unable to create file Mechanical Parts/4-wire thread/Captura de pantalla de 2016-12-31 14:13:15.png: Invalid argument
unable to create file Mechanical Parts/4-wire thread/Captura de pantalla de 2016-12-31 14:14:07.png: Invalid argument
unable to create file Mechanical Parts/4-wire thread/Captura de pantalla de 2016-12-31 14:18:17.png: Invalid argument
unable to checkout working tree
Clone succeeded, but checkout failed.

This is due to the invalid ':' character appearing in the indicated filenames caused by merging in pull request 181 (commit 497628f) on 2016-12-31 18:47:33.

Windows users will be unable to checkout until the files have been renamed. Thanks in advance.

Add warning to installation instructions

Either freeCAD has hung, while adding library add-id, OR it takes quite a while (makes sense since its a library). As there is no other indication, can we add a message on the web page, where it explains how to load the library, that it will eat your precious time for tens of minutes. Likely dependant on ISP etc.

Chain Sprockets take up a lot of disk space

cc @pysimone

I cloned this repo for the first time in a while... and filled my hard drive.

Let's inspect the disk usage:

path size
root 33.0 GB
/.git 5.0 GB
/Mechanical Parts/Chains/Sprocket/ISO 606 26.0 GB

so one class of parts takes up >75% of the space, mostly occupied by stl files.

I don't have an easy solution to this problem, but I do think that there needs to be some optimization done to the folder in question.

At the very least, the README should be updated to give a more accurate description of the downloaded size. (maybe try to update it monthly with a +/-10% figure?)

Licence(s)

Hi,

i'm a beginner and starting to do some open (source) hardware projects with freecad.
Libraries like this make designing much faster and less tedious, but i want to give good credit to every person whose tools or parts i used to aid me.
So i'm concerned about the Licence of this Workbench. I could not find Licence information in this repo or the wiki neither about the code nor about the library of parts.
I think its important that this Workbench gets propper licences and some explanaition for the users of this workbench, so nobody accidentaly does not credit the work of others and nobody gets into legal trouble.

The People maintaining the BOLTS library made a nice writeup detailing the problems for the maintainers and the users which might aid this library too: https://www.bolts-library.org/en/docs/0.3/document/general/licensing.html

parts library doesnt work for me under windows

Downloaded the 0.21.2 version of FreeCAD
from the add-on menu I install the parts library.
It gets installed fine (after a while) but there are no instructions on how to use it.
Running the PartsLibrary.FCMacro it asks me for the parts library location.
I point it to the right folder:
C:\Users%username%\AppData\Roaming\FreeCAD\Mod\parts_library

But it doesn't show anything in the preview pane and I cannot navigate to the folder of the partslibrary beyond the *C:\Users%username%* part

I guess because the "AppData" folder is hidden?

THis is on Windows11

SK88_L75_NP size

This is the first time I do this, so if someone tells me this isn't the way, just tell me. "This" both means using FreeCAD as well as using the parts library.

I was working on a projects and noticed the heatsink I was using actually was in the parts library (Electronic Parts/Heatsinks/SK88_L75_NP). From the name, I would expect it is even exactly the same. But, when I add it to my project, the size is 99.99mm. The part I have is 88mm and from the name I would expect the FreeCAD part to have that size.

Does it make sense to report this, I should I just Clone and scale the part for my own purpose .

Cadquery,Freecad import Error?

I got following error when i import cadquery package, this package are installed but i got error bellow,

import freecad
import cadquery
Traceback (most recent call last):
File "/home/hp/.local/lib/python3.6/site-packages/cadquery/freecad_impl/init.py", line 151, in
import FreeCAD
ModuleNotFoundError: No module named 'FreeCAD'

During handling of the above exception, another exception occurred:

import FreeCAD
ImportError: dynamic module does not define module export function (PyInit_FreeCAD)

0.16 on developing: PartsLibrary.FCMacro does not work

Description : Nothing displays

Steps To Reproduce :

  • I import my fork locally (OK)
  • I slipped into the .FreeCAD Library.FCMacro Share file (OK)
  • I opened FreeCAD then I launched the macro (OK)
  • A dialog (non-modal) open (OK)
  • I select my local path that is well within the database (OK)

- And he goes nothing!

Additional Information :
Some error messages in the report view :

python-git not found. Git-related functions are disabled
Your library is not a valid Git repository. Please clone it with git first.

Some messages in the python console :

Python 2.7.6 (default, Jun 22 2015, 18:01:27)
[GCC 4.8.2] on linux2
Type 'help', 'copyright', 'credits' or 'license' for more information.


freecad

3D rotations of .STEP file

I would like to get the rotation on the X,Y,Z axis and the position of a .STEP object on FreeCAD, and also get screenshots in every position of the object with Python Scripts of FreeCAD.

I saw that we can do it manually (I'm a real beginner on FreeCAD), but it's not what I want.

So I tried this, but it's doesn't seems to be the good solution :

>>> for i in range(360):
...     for j in range(360):
...         for k in range(360):
...             FreedCAD.getDocument("mySTEP").getObject("Part_Feature").Placement = App.Placement(App.Vector(0,0,0),App.Rotation(App.Vector(i,j,k),1))

As I said, I want to get screenshots of the object in all its rotations on X,Y and Z and also its position.

Is anyone can help me please?

Thank you

name should be changed

name should be changed from
micro usb b female smd connector
to
mini usb b female smd connector

directions for linking to other repositories

looking for the best way to go about linking parts from a current repository that my projects live in, to a fork of the FreeCAD-library, so people can pr from there. the most simple way is to manually copy/paste the parts but the former should be possible with submodules or file linking.

Library doen't start. 'PySide.QtCore.QCoreApplication.translate' called with wrong argument types

Installed thru Addon Manager. Entered Macro -> Macros... -> PartsLibrary.FSMacro, then Execute and got this:

python-git not found. Git-related functions will be disabled
Traceback (most recent call last):
  File "/home/rafaelrs/.FreeCAD/Macro/PartsLibrary.FCMacro", line 465, in <module>
    m.addDockWidget(QtCore.Qt.RightDockWidgetArea,ExpDockWidget(LIBRARYPATH))
  File "/home/rafaelrs/.FreeCAD/Macro/PartsLibrary.FCMacro", line 231, in __init__
    self.retranslateUi()
  File "/home/rafaelrs/.FreeCAD/Macro/PartsLibrary.FCMacro", line 236, in retranslateUi
    self.setWindowTitle(translate("PartsLibrary", "Parts Library"))
  File "/home/rafaelrs/.FreeCAD/Macro/PartsLibrary.FCMacro", line 104, in translate
    return QtGui.QApplication.translate(context, text, None, utf8_decode & _encoding)
<class 'TypeError'>: 'PySide.QtCore.QCoreApplication.translate' called with wrong argument types:
  PySide.QtCore.QCoreApplication.translate(str, str, NoneType, int)
Supported signatures:
  PySide.QtCore.QCoreApplication.translate(unicode, unicode, unicode = None, PySide.QtCore.QCoreApplication.Encoding = CodecForTr)
  PySide.QtCore.QCoreApplication.translate(unicode, unicode, unicode, PySide.QtCore.QCoreApplication.Encoding, int)

I am using Fedora 29 with following:

$ uname -r
5.2.11-100.fc29.x86_64
$ rpm -qa | grep -i freecad
freecad-data-0.18.3-1.fc29.noarch
freecad-0.18.3-1.fc29.x86_64
$ pip3 list
Package             Version       
------------------- --------------
appdirs             1.4.3         
argcomplete         1.9.5         
argh                0.26.1        
asn1crypto          0.24.0        
Beaker              1.10.0        
beautifulsoup4      4.6.3         
binwalk             2.1.1         
blivet              3.1.2         
blivet-gui          2.1.11        
cairocffi           0.9.0         
CairoSVG            1.0.20        
cffi                1.11.5        
chardet             3.0.4         
configobj           5.0.6         
coverage            4.5.1         
cryptography        2.3           
cssselect           0.9.2         
cssutils            1.0.2         
cupshelpers         1.0           
cycler              0.10.0        
decorator           4.3.0         
deepdiff            3.3.0         
distro              1.3.0         
docutils            0.14          
entrypoints         0.2.3         
fros                1.1           
future              0.16.0        
gajim               1.1.3         
gpg                 1.12.0        
html5lib            1.0.1         
humanize            0.5.1         
idna                2.7           
iniparse            0.4           
initial-setup       0.3.62        
iotop               0.6           
IPy                 0.81          
isc                 2.0           
javapackages        5.3.0         
jsonpickle          0.9.4         
kerberos            1.3.0         
keyring             13.2.1        
kiwisolver          1.1.0         
langtable           0.0.41        
libvirt-python      4.7.0         
lorax               devel         
lxml                4.2.5         
Mako                1.0.12.dev0   
MarkupSafe          1.0           
matplotlib          2.2.4         
meson               0.51.1        
nagstamon           3.2.1.fedora29
nbxmpp              0.6.10        
notify2             0.3.1         
ntplib              0.3.3         
numpy               1.15.1        
olefile             0.46          
ordered-set         2.0.2         
Paste               2.0.3         
perf                0.1           
pid                 2.2.3         
Pillow              5.3.0         
pip                 18.1          
Pivy                0.6.5a0       
ply                 3.9           
precis-i18n         1.0.0         
Printrun            2.0.0rc5      
productmd           1.21          
psutil              5.4.3         
pwquality           1.4.0         
pyasn1              0.3.7         
pycairo             1.17.1        
pycollada           0.4           
pycparser           2.14          
pycrypto            2.6.1         
pycups              1.9.72        
pycurl              7.43.0.2      
pydbus              0.6.0         
pyglet              1.3.2         
PyGObject           3.30.5        
pyinotify           0.9.6         
PyIscsi             1.0           
pykickstart         3.16          
pyOpenSSL           19.0.0        
pyparsing           2.2.0         
pyparted            3.11.0        
PyQt5               5.11.3        
PyQt5-sip           4.19.13       
pyserial            3.1.1         
PySide              1.2.4         
PySocks             1.6.8         
pystray             0.14.3        
python-augeas       0.5.0         
python-dateutil     2.7.5         
python-dmidecode    3.12.2        
python-git          2018.2.1      
python-gnupg        0.3.8         
python-linux-procfs 0.6.1         
python-meh          0.47          
python-xlib         0.23          
python3-lxc         3.0.4         
python3-simplepam   0.1.5         
pytoml              0.1.18        
pytz                2018.5        
pyudev              0.21.0        
PyXB                1.2.6         
pyxdg               0.26          
PyYAML              5.1           
registries          0.1           
requests            2.20.0        
requests-file       1.4.3         
requests-ftp        0.3.1         
requests-kerberos   0.12.0        
rpm                 4.14.2.1      
rpmconf             1.0.19        
schedutils          0.6           
SecretStorage       2.3.1         
Send2Trash          1.5.0         
sepolicy            1.1           
setools             4.1.1         
setroubleshoot      1.1           
setuptools          40.8.0        
sh                  1.12.14       
simplejson          3.16.0        
simpleline          1.4           
sip                 4.19.13       
six                 1.11.0        
slip                0.6.4         
slip.dbus           0.6.4         
sos                 3.7           
SSSDConfig          2.2.0         
systemd-python      234           
tabulate            0.8.3         
Tempita             0.5.1         
torbrowser-launcher 0.3.1         
urllib3             1.24.3        
webencodings        0.5.1         
wrapt               1.10.11       
wxPython            4.0.1         
youtube-dl          2019.7.30

FreeCAD 0.17 with Win 10 - FreeCAD-library - PartsLibraryFC.Macro connection crashes app & gives Errors.

System:
Windows 10 upgrades from 7
64 bit O/S

I'm new to this, more like a beginner-beginner. Upon downloading FreeCAD to my Pc, I wanted to download the library parts too. Yes' I wanted everything in 1 go, but when I used the installer from the addon Manager, it took forever to download. Eventually, I clicked the install/update button and a message said it's already installed on my Pc. When I restarted FreeCAD, the main window never loaded or showed at all so I had to uninstall everything and start again.

I figured this was from a bug or something, and I had to uninstall all files, re-install FreeCAD and start over again. This has happened many, many times, I lost count after 10. Eventually, finding the issue had to do with the parts_library in the Addon Manager. I even tried downloading via GitHub.com and there was no difference.

I've tried following the awkward instructions and they're quite difficult to understand for a non computer person, but these were the messages I was receiving on Freecad Python once I figured how to view these messages:

python-git not found. Git-related functions will be disabled
Traceback (most recent call last):
File "C:/Program Files/FreeCAD 0.17/macro/FreeCAD-library/PartsLibrary.FCMacro", line 468, in
m.addDockWidget(QtCore.Qt.RightDockWidgetArea,ExpDockWidget(LIBRARYPATH))
File "C:/Program Files/FreeCAD 0.17/macro/FreeCAD-library/PartsLibrary.FCMacro", line 234, in init
self.retranslateUi()
File "C:/Program Files/FreeCAD 0.17/macro/FreeCAD-library/PartsLibrary.FCMacro", line 239, in retranslateUi
self.setWindowTitle(translate("PartsLibrary", "Parts Library"))
File "C:/Program Files/FreeCAD 0.17/macro/FreeCAD-library/PartsLibrary.FCMacro", line 96, in translate
if sys.version_info.major >= 3:
<type 'exceptions.NameError'>: global name 'sys' is not defined

Am I missing something or does this program only work for linux instead of Windows, or are there errors within the program that needs fixing to work, if it is capable of working? Or am I only able to upload them directly to FreeCAD without a working panel?

Cheers.......

Bug in option panel

The library path field is not updated by the dialog and a error is raised when you click OK.
Here is the fix, PartsLibrary.FCMacro lines 416 to 433:

    def changepath(self):
        librarypath = FreeCAD.ParamGet('User parameter:Plugins/parts_library').GetString('destination','')
        np = QtGui.QFileDialog.getExistingDirectory(self,"Location of your existing Parts library",librarypath)
        if np:
            self.lineEdit_3.setText(np)

    def accept(self):
        if repo:
            cw = repo.remote().config_writer
            if self.lineEdit.text():
                cw.set("url", str(self.lineEdit.text()))
            if self.lineEdit_2.text():
                cw.set("pushurl", str(self.lineEdit_2.text()))
            if hasattr(cw,"release"):
                cw.release()
        if self.lineEdit_3.text():
            FreeCAD.ParamGet('User parameter:Plugins/parts_library').SetString('destination',self.lineEdit_3.text())
        QtGui.QDialog.accept(self)

Sol Expert

Are we sure we want to have the "Sol Expert" folder in this repository? It doesn't appear to me to be close to any standard.

If we really want it, all spaces should be removed from the names and all files should be in English.

Broken Part in FreeCad 0.17

Hi, 'm looking at using the library of parts to model a Raspberry Pi. I have been playing around with various things and came across the parts library. The first part I picked was TQFP-144-IPC-MD.fcstd .... but I can't get it to draw in FreeCAD 0.17

The item loads, but upon recalculation it complains about a while bunch of constraints and wants to use the Automatic Sketch fixing tool, which eventually just breaks everything. I can import the STEP file, but the FCStd file appears broken.

Please advise if/how this can be resolved (I am a relative FreeCAD beginner, so don't know what to try next).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.