FreeCAD API/pl: Difference between revisions
(Created page with "{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w [https://www.freecadweb.org/a...") |
(Created page with "Jest to główny ''(root)'' moduł programu FreeCAD. Może być również wywołany przez "App" z interpretera FreeCAD. Zawiera wszystko, co jest potrzebne do manipulowania do...") |
||
Line 2: | Line 2: | ||
{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w [https://www.freecadweb.org/api automatycznie generowana dokumentacja API], lub wygenerować dokumentację samodzielnie, śledząc dokument [[Source documentation/pl|Dokumentacja źródłowa]].}} |
{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w [https://www.freecadweb.org/api automatycznie generowana dokumentacja API], lub wygenerować dokumentację samodzielnie, śledząc dokument [[Source documentation/pl|Dokumentacja źródłowa]].}} |
||
Jest to główny ''(root)'' moduł programu FreeCAD. Może być również wywołany przez "App" z interpretera FreeCAD. Zawiera wszystko, co jest potrzebne do manipulowania dokumentami i ich zawartością ''(obiektami)''. |
|||
Example: |
Example: |
Revision as of 18:49, 24 August 2021
Jest to główny (root) moduł programu FreeCAD. Może być również wywołany przez "App" z interpretera FreeCAD. Zawiera wszystko, co jest potrzebne do manipulowania dokumentami i ich zawartością (obiektami).
Example:
import FreeCAD
print FreeCAD.listDocuments()
mydoc = FreeCAD.activeDocument()
Description: Prints a dictionary containing all the FreeCAD configuration environment.
Returns:
Description: Returns the value of the given key. If no key is given, the complete configuration is returned
Returns: A string.
Description: Set the given key (first string) to the given value (second string).
Returns:
Description: Return the active document or None if there is no active document.
Returns: A FreeCAD Document.
Description: Adds a new export file type to FreeCAD. The first string must be formatted like this example: "Word Document (*.doc)". The second string is the name of a python script/module containing an export() function.
Returns:
Description: Adds a new import file type to FreeCAD, works the same way as addExportType, the handling python module must contain an open() and/or an import() function.
Returns:
Description: Returns a document or raise an exception if there is no document with the given name.
Returns:
Description: Returns the name of the module that can export the specified filetype.
Returns: A string.
Description: Returns the name of the module that can import the specified filetype.
Returns: A string.
Description: Returns a dictionary of names and object pointers of all documents.
Returns: A dictionary of names and object pointers.
Description: Creates and returns a new document with a given name. The document name must be unique, which is checked automatically. If no name is supplied, the document will be named "Untitled". If hidden=True is passed, then FreeCAD in GUI mode won't display the document and won't show a tab for the document; this allows performing automatic operations on a temporary document (or create a document and save it) without disrupting the user interface.
Returns: The newly created document.
Description: Creates and returns a document and load a project file into the document. The string argument must point to an existing file. If the file doesn't exist or the file cannot be loaded an I/O exception is thrown. In this case the created document is kept, but will be empty. If hidden=True is passed, then FreeCAD in GUI mode won't display the document and won't show a tab for the document; this allows performing automatic operations on a document and close it without disrupting the user interface.
Returns: The opened FreeCAD Document.
- Jak zacząć
- Instalacja: Pobieranie programu, Windows, Linux, Mac, Dodatkowych komponentów, Docker, AppImage, Ubuntu Snap
- Podstawy: Informacje na temat FreeCAD, Interfejs użytkownika, Profil nawigacji myszką, Metody wyboru, Nazwa obiektu, Edytor ustawień, Środowiska pracy, Struktura dokumentu, Właściwości, Pomóż w rozwoju FreeCAD, Dotacje
- Pomoc: Poradniki, Wideo poradniki
- Środowiska pracy: Strona Startowa, Architektura, Assembly, CAM, Rysunek Roboczy, MES, Inspekcja, Siatka, OpenSCAD, Część, Projekt Części, Punkty, Inżynieria Wsteczna, Robot, Szkicownik, Arkusz Kalkulacyjny, Powierzchnia 3D, Rysunek Techniczny, Test Framework