FreeCADGui API/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "Moduł ten jest odpowiednikiem modułu FreeCAD. Zawiera wszystko co jest związane z interfejsem użytkownika i widokami 3D. Przykład:")
 
(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...")
Line 1: Line 1:
<languages/>
<languages/>
{{VeryImportantMessage|(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation], or generate the documentation yourself, see [[Source documentation|Source documentation]].}}
{{VeryImportantMessage|''(Październik 2019)'' Nie edytuj tych stron. Informacje 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]].}}


Moduł ten jest odpowiednikiem modułu FreeCAD. Zawiera wszystko co jest związane z interfejsem użytkownika i widokami 3D. Przykład:
Moduł ten jest odpowiednikiem modułu FreeCAD. Zawiera wszystko co jest związane z interfejsem użytkownika i widokami 3D. Przykład:

Revision as of 09:14, 23 May 2021

(Październik 2019) Nie edytuj tych stron. Informacje są niekompletne i nieaktualne. Najnowsze API można znaleźć w automatycznie generowana dokumentacja API, lub wygenerować dokumentację samodzielnie, śledząc dokument Dokumentacja źródłowa.

Moduł ten jest odpowiednikiem modułu FreeCAD. Zawiera wszystko co jest związane z interfejsem użytkownika i widokami 3D. Przykład:

import FreeCAD as App
import FreeCADGui as Gui

# get the 3D model document
doc = App.ActiveDocument    

# get the visual representation model document
gui_doc = Gui.ActiveDocument

gui_doc.activateWorkbench("myWorkbench")


activateWorkbench(string)

Description: Activates a workbench by name

Returns: nothing

activeDocument( )

Description:

Returns: the active document or None if no one exists

activeWorkbench( )

Description:

Returns: the active workbench object

addCommand(string, object)

Description: Adds a FreeCAD command. String is the name of the command and object is a classname defining the command

Returns:

addIcon(string, string or list)

Description: Adds an icon as file name or in XPM format to the system

Returns:

addIconPath(string)

Description: Add a new path to the system where to find icon files

Returns:

addPreferencePage(string,string)

Description: Adds a UI form to the preferences dialog. The first argument specifies the file name and the second specifies the group name

Returns:

addWorkbench(string, object)

Description: Adds a workbench under a defined name. The string is the workbench name and the object is a classname defining the workbench

Returns:

createDialog(string)

Description: Opens a UI file

Returns:

getDocument(string)

Description: Gets a document by its name

Returns: the document

getWorkbench(string)

Description: Gets a workbench by its name

Returns: the workbench

insert(string)

Description: Open a macro, Inventor or VRML file

Returns: the document

listWorkbenches( )

Description: Shows a list of all workbenches

Returns: a list

open(string)

Description: Opens a macro, Inventor or VRML file

Returns: the openend document

removeWorkbench(string)

Description: Removes a workbench by name

Returns:

runCommand(string)

Description: Runs a FreeCAD command by name

Returns:

updateGui( )

Description: Updates the main window and all its windows

Returns: