How to install additional workbenches/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "W systemie Windows, podczas aktualizacji już zainstalowanego środowiska pracy, system zachowuje stare pliki {{Filename|.py}} jako {{Filename|.pyc}}. Ponieważ może to prowadzić do problemów, zaleca się odinstalowanie środowiska pracy, ponowne uruchomienie FreeCAD i zainstalowanie nowej wersji środowiska pracy.")
(Created page with "==Instalacja w środowisku Linux==")
Line 57: Line 57:
<div class="mw-collapsible mw-collapsed toccolours">
<div class="mw-collapsible mw-collapsed toccolours">


<span id="Installing_on_Linux"></span>
==Installing on Linux ==
==Instalacja w środowisku Linux==


How to install additional workbenches and addons on Linux
How to install additional workbenches and addons on Linux

Revision as of 17:59, 7 July 2023

Ćwiczenie
Temat
Programowanie
Poziom trudności
Średniozaawansowany
Czas wykonania
15 minut
Autorzy
r-frank
Wersja FreeCAD
Wszystkie
Pliki z przykładami
brak
Zobacz również
-

Opis

Zaawansowani użytkownicy rozszerzyli FreeCAD o różne niestandardowe zewnętrzne środowiska pracy, które nie są zintegrowane z podstawowym kodem źródłowym, ale są łatwe do zainstalowania na istniejącej dystrybucji FreeCAD. Tutaj omówimy metody instalacji dla różnych systemów operacyjnych.

Uwaga: Począwszy od wersji 0.17, FreeCAD posiada Menadżer dodatków w menu Przybory → Menadżer dodatków, który umożliwia instalację zarówno makrodefinicji, jak i środowisk pracy. Poniższe instrukcje są wymagane tylko wtedy, gdy chcesz zainstalować środowisko pracy samodzielnie. Może to być konieczne, jeśli z jakiegoś powodu Menedżer dodatków nie działa, ale masz dostęp do środowiska roboczego pobranego jako pakiet .zip.

Instalacja w środowisku Windows

Jak zainstalować dodatkowe środowiska pracy i dodatki w systemie Windows

Przestarzałe

Uwaga: Używanie addons-installer nie jest już zalecane. Zalecanym sposobem jest instalacja przez Menadżera dodatków we wszystkich systemach.

Użyj addons-installer z Github.

Podczas Google Summer of Code 2016 student Mandeep Singh rozpoczął pracę nad ulepszoną wersją (dostępne tutaj), ale ta wersja wymaga dalszych prac, zanim będzie mogła zostać w pełni zintegrowana z FreeCAD.

Instalacja samodzielna

Uwaga: Ta metoda jest możliwa, ale nie jest konieczna po wprowadzeniu Menadżera dodatków. Niemniej jednak, informacje tutaj zawarte mogą być nadal przydatne dla niektórych.

  • Pobierz środowisko pracy z GitHub, klikając przycisk Klonuj lub Pobierz na stronie GitHub (prawy górny róg) i wybierając "Pobierz ZIP".
  • Rozpakuj pobrane archiwum na lokalnym dysku twardym.
  • W programie FreeCAD zlokalizuj ścieżkę makra, wybierając Edycja → Preferencje → Python → Makropolecenia i poszukaj pozycji Ścieżka do plików makrodefinicji.
  • Domyślna ścieżka makrodefinicji to %APPDATA%\FreeCAD, którą zwykle jest C:\Users\\'username\Appdata\Roaming\FreeCAD.
  • W katalogu makr utwórz (jeśli jeszcze nie istnieje) folder o nazwie "Mod".
  • W folderze Mod utwórz folder z nazwą środowiska pracy, na przykład "Curves".
  • Teraz przenieś rozpakowane pliki i podfoldery środowiska pracy do właśnie utworzonego folderu środowiska pracy.
  • Po ponownym uruchomieniu FreeCAD powinieneś mieć teraz wpis w okienku wyboru środowiska pracy.

Dodatkowe zalecenia dotyczące aktualizacji środowisk pracy

W systemie Windows, podczas aktualizacji już zainstalowanego środowiska pracy, system zachowuje stare pliki Template:Filename jako Template:Filename. Ponieważ może to prowadzić do problemów, zaleca się odinstalowanie środowiska pracy, ponowne uruchomienie FreeCAD i zainstalowanie nowej wersji środowiska pracy.


Instalacja w środowisku Linux

How to install additional workbenches and addons on Linux

Using git

Adding the community-ppa within the ppa-manager.
Installing the workbenches via Synaptic Packet Manager.

$ sudo apt-get install git python-numpy python-pyside
$ mkdir ~/.FreeCAD/Mod
$ cd ~/.FreeCAD/Mod
$ git clone  https://github.com/tomate44/CurvesWB.git

In FreeCAD you will now have a new workbench-entry called "CurvesWB". Once installed, use git to upgrade to the latest version:

$ cd ~/.FreeCAD/Mod/CurvesWB
$ git pull
$ rm *.pyc

Manual Installation

Note: This method is possible but not necessary with the introduction of the Addon Manager. Nevertheless, the information here may still be useful to some.

  • Download the workbench from github by clicking on the button Clone or Download on the github page (upper right corner) and choosing "Download ZIP"
  • Unpack the downloaded archive on your local hard disk
  • Within FreeCAD, locate the macro path by choosing Edit → Preferences → General → Macro and look for the ”Macro path”
  • By default, the macro directory is the (hidden) ./.FreeCAD/ directory in your home-directory
  • Within the macro-directory create (if not already present) a folder called “Mod
  • Within the Mod/ folder, create a folder with the name of the workbench, for example “Curves”
  • Now move the unpacked files and sub-folders of the workbench to the just created workbench-folder
  • After restart of FreeCAD you should now have an entry in the workbench selector


Installing on Mac

How to install additional workbenches and addons on macOS

Manual Installation

Note: This method is possible but not necessary with the introduction of the Addon Manager. Nevertheless, the information here may still be useful to some.

For the sake of this example, say you've chosen the Curves Workbench as the external workbench you want to install:

  • Choose and download the git repository of your chosen external workbench as a ZIP file
  • There are two possible locations for your Addon workbench 'Mods':
  1. All Users: /Applications/FreeCAD.app/Contents/Resources/Mod
  2. Current user only: /Users/myusername/Library/Application Support/FreeCAD/Mod
  • If you use Finder to navigate manually to the All Users location in Applications you will need to
    • go to /Applications" and select FreeCAD.app
    • right-mouse-click and select "Show Package Contents", a new window will appear with a folder named "Contents"
    • single-click on the folder "Contents" then on "Resources" and double-click to open the folder "Mod"
  • Once you are in whichever "Mod" folder you want to use, create a New Folder named "Curves"
  • Unzip downloaded repository in the folder "Mod/Curves"

General troubleshooting

  • Don't use special characters (for example German umlauts) in your windows user name, otherwise FreeCAD will not recognize files and folders in the macro path.
  • If you have already set up a user name with special characters either create a new user name or point the macro path to a directory not using special characters.
  • Go to Tools → Customize → Workbenches and make sure the workbench is not set to invisible.
  • With 32-bit systems and FreeCAD 0.16.6706, after attempts to install, the additional Workbenches may not be available. In this case