Power users hub/sv: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Dessa sidor är i ett tidigt utvecklingsstadie. Om du inte kan hitta den information du letar efter, eller har hittat användbar information på något ställe sim vi inte ha...") |
Renatorivo (talk | contribs) (Created page with "En av FreeCADs bästa egenskaper är att du kan skripta och utöka den extremt mycket utan att behöva kompilera något eller röra källkoden. All skriptning görs i [http://...") |
||
Line 6: | Line 6: | ||
Dessa sidor är i ett tidigt utvecklingsstadie. Om du inte kan hitta den information du letar efter, eller har hittat användbar information på något ställe sim vi inte har länkat till, var då snäll och lämna en kommentar på [[Talk:Power_users_hub/sv|pratsidan]], eller varför inte att du själv lägger till innehåll här! |
Dessa sidor är i ett tidigt utvecklingsstadie. Om du inte kan hitta den information du letar efter, eller har hittat användbar information på något ställe sim vi inte har länkat till, var då snäll och lämna en kommentar på [[Talk:Power_users_hub/sv|pratsidan]], eller varför inte att du själv lägger till innehåll här! |
||
En av FreeCADs bästa egenskaper är att du kan skripta och utöka den extremt mycket utan att behöva kompilera något eller röra källkoden. All skriptning görs i [http://sv.wikipedia.org/wiki/Python_(programspråk) python], ett mycket kraftfullt men enkelt programmeringsspråk. Med enkla pythonskript så har du total åtkomst till alla FreeCADs delar. Du kan till exempel: |
|||
* '''Skapa och ändra geometri''': Finns det något sorts specialobjekt som du behöver men som inte finns i FreeCADs standardinstallation? Du kan lätt skapa en ny objekttyp, antingen från scratch eller genom att förändra en existerande typ. |
|||
* '''Create and modify geometry''': There is a kind of special object you need but that's not present in the default FreeCAD installation? You can easily create a new object type, either from scratch or by adapting an existing type. |
|||
* '''Skapa anpassade verktyg och kommandon''': För tillfället så har FreeCAD redn en extensiv funktionalitet, men det finns ännu inte så många smidiga verktyg och kommandon för slutanvändaren än. Men det är redan lätt att skapa ditt eget verktygsset. |
|||
* '''Create custom tools and commands''': At the moment, FreeCAD already has extensive functionality, but there aren't many convenient tools and commands for the final user yet. But it is already easy to create your own sets of tools. |
|||
* '''Förändra gränssnittet''': FreeCADs användargränssnitt är för tillfället fortfarande mycket enkelt. Men allt finns där för dig för att utöka den för dina behov. Du kan till exempel, skapa verktygslådor att lägga dina egna verktyg i, Skapa specialpaneler för att interagera med dina verktyg, etc. |
|||
* '''Modify the interface''': The FreeCAD user interface is still very basic at this stage. But everything is there for you to extend it to your needs. You can, for example, create toolbars to put your own tools, create special panels for interacting with your tools, etc. |
|||
*'''Förändra scenrepresentationen''': FreeCAD har separata processer för uppbyggnad och beräkning av geometrin och visa den geometrin på din skärm. Du har full åtkomst till det sätt som sceninnehållet visas på skärmen, så därför kan du förändra den representationen, interagera med den , eller lägga till alla sorters specialbeteenden och skärmwidgetar, som information, dragare, ankare eller temporära föremål. |
|||
*'''Modify the scene representation''': FreeCAD has separate processes for building up and computing the geometry and displaying that geometry on your screen. You have full access to the way the scene contents are displayed on screen, therefore you can modify that representation, interact with it, or add all kinds of custom behaviours and screen widgets, like information, draggers, anchors or temporary entities. |
|||
== Customizing FreeCAD == |
== Customizing FreeCAD == |
Revision as of 17:17, 6 December 2013
Detta är platsen att komma till om du vill ha en djupare insikt i FreeCAD. Här kan du lära dig om hur du anpassar FreeCAD för dina behov.
Dessa sidor är i ett tidigt utvecklingsstadie. Om du inte kan hitta den information du letar efter, eller har hittat användbar information på något ställe sim vi inte har länkat till, var då snäll och lämna en kommentar på pratsidan, eller varför inte att du själv lägger till innehåll här!
En av FreeCADs bästa egenskaper är att du kan skripta och utöka den extremt mycket utan att behöva kompilera något eller röra källkoden. All skriptning görs i python, ett mycket kraftfullt men enkelt programmeringsspråk. Med enkla pythonskript så har du total åtkomst till alla FreeCADs delar. Du kan till exempel:
- Skapa och ändra geometri: Finns det något sorts specialobjekt som du behöver men som inte finns i FreeCADs standardinstallation? Du kan lätt skapa en ny objekttyp, antingen från scratch eller genom att förändra en existerande typ.
- Skapa anpassade verktyg och kommandon: För tillfället så har FreeCAD redn en extensiv funktionalitet, men det finns ännu inte så många smidiga verktyg och kommandon för slutanvändaren än. Men det är redan lätt att skapa ditt eget verktygsset.
- Förändra gränssnittet: FreeCADs användargränssnitt är för tillfället fortfarande mycket enkelt. Men allt finns där för dig för att utöka den för dina behov. Du kan till exempel, skapa verktygslådor att lägga dina egna verktyg i, Skapa specialpaneler för att interagera med dina verktyg, etc.
- Förändra scenrepresentationen: FreeCAD har separata processer för uppbyggnad och beräkning av geometrin och visa den geometrin på din skärm. Du har full åtkomst till det sätt som sceninnehållet visas på skärmen, så därför kan du förändra den representationen, interagera med den , eller lägga till alla sorters specialbeteenden och skärmwidgetar, som information, dragare, ankare eller temporära föremål.
Customizing FreeCAD
- Interface Customization: Starting with the beginning: Toolbars and shortcuts
- Working with Macros: Easily record often repeated tasks or Python code
Scripting in FreeCAD
General
- Introduction to python - See also other Python tutorials at the bottom of this page
- FreeCAD scripting tutorial - A general look at python scripting in FreeCAD
- FreeCAD Scripting Basics: Well, the basics...
- Gui Command : Adding custom commands to the GUI
- Using mixed Units in FreeCAD
Working with Meshes
- Mesh Scripting: How to interact with the Mesh Module
Working with Parts
- The Part Module: How Open CASCADE Technology tools and structure is used in FreeCAD
- Topological data scripting: How to interact with the Part Module
- PythonOCC: How to unleash the whole Open CASCADE power
- Mesh to Part: Converting between object types
Accessing the Coin scenegraph
- The Coin/Inventor scenegraph: How the FreeCAD scene representation works
- Pivy: How to access and modify the scenegraph
Controlling the Qt interface
- PyQt: How to access the interface, and modify its contents
- Using the FreeCAD GUI in another Qt application with PyQt
Working with parametric objects
- Scripted objects: How to make 100% Python-scripted objects in FreeCAD
- Drawing Module: Automating the 3D-to-2D process
Examples
- Code snippets : A collection of pieces of FreeCAD Python code, to serve as ingredients in your scripts...
- Line drawing function: How to build a simple tool to draw lines
- Dialog creation: How to construct dialogs with Qt designer, and use them in FreeCAD
- Embedding FreeCAD: How to import FreeCAD as a Python module in other applications
- The Draft Module adds basic 2d drawing functions to freecad. It is written entirely in Python, so it can be a good example if you want to write your own modules.
- FreeCAD vector math library : A couple of handy functions to manipulate FreeCAD vectors. This library is also included in the Draft module.
API Functions
The complete API description can be found here. Note that it can be incomplete, since we still didn't find a way to include it automatically on this wiki. For more accurate information, browse the modules directly from FreeCAD.
Advanced modification
- Start up and Configuration: Startup and command line options
- Install on Windows: Using the windows installer
- Compiling FreeCAD on Windows and Compiling FreeCAD on Unix
- Branding: Simple modifications you can do to the source code to change some aspects of FreeCAD
- Extra python modules : Extend the FreeCAD python interpreter with these powerful modules!
Python tutorials
These are good generic tutorials, not specific to FreeCAD, that might interest you if you are totally new to python.
Python
- Official python tutorial - A very complete tutorial for discovering python
- Non-programmer tutorial for python - an excellent wikibook
- Python for newbies - one big tutorial covering all the basics
PyQt - How to create and manage FreeCAD's Qt UI interface from python
- Basic PyQt tutorial : A simple and short linux-based tutorial that will explain how to work with PyQt and Qt Designer
- First programs in PyQt4 : A platform-agnostic tutorial showing the interns of python + qt
- programming Qt applications in python : A more in-depth tutorial covering all the process of working with qt and python.
Pivy - How to interact with FreeCAD's 3D scenes
- Basic Pivy tutorial : A very simple tutorial form the official Pivy site
- Introducing Pivy into studierstube : A document that is not really a tutorial, but that illustrates well how Pivy works
Community projects
On the Community portal, you can find other FreeCAD-based projects run by the FreeCAD users community. If you are starting a new FreeCAD project, be sure to list it there! We also have a page with things you can do if you would like to Help FreeCAD.