Search found 10 matches

by Lethalo
Mon Oct 11, 2021 6:13 am
Forum: Forum français
Topic: Créer une commande avec des arguments
Replies: 1
Views: 851

Créer une commande avec des arguments

Bonjour !

Je me demandais si il était possible de créer une command (via la méthod addCommand) :

Code: Select all

Gui.addCommand('createComponent',createComponentCommand())
et d'y spécifier des paramètres qui pourront être utiliser lors de l'appel de runCommand.

Merci d'avance pour vos réponses :)
by Lethalo
Thu Sep 30, 2021 12:24 pm
Forum: Assembly
Topic: Assembly 4 workbench
Replies: 1338
Views: 867446

Re: Assembly 4 workbench

Hi Zolko, I'm trying to create a workbench for my internship and your work correspond with my needs. I have a few questions to ask. Is there a way to run commands from assembly4 without it's UI part ? (or directly from another workbench ?) Can I for example place a datum LCS without having to choose...
by Lethalo
Tue Sep 28, 2021 6:26 am
Forum: Python scripting and macros
Topic: Issue while trying to run FreeCADGui from a Python script
Replies: 0
Views: 1604

Issue while trying to run FreeCADGui from a Python script

Hi everyone, I'm trying to run FreeCAD from Python script. I'm getting an error with the code, which I found in the folder Tools/Embedded/PySide. Here is the code I'm trying to run : import sys from PySide2 import QtCore, QtGui, QtWidgets import FreeCAD, FreeCADGui class MainWindow(QtWidgets.QMainWi...
by Lethalo
Fri Sep 24, 2021 6:53 am
Forum: Forum français
Topic: Coder un Atelier en C++
Replies: 5
Views: 1638

Re: Coder un Atelier en C++

J'ai pu réaliser deux trois commandes basiques, après avoir correctement écrit mes CMakeLists, et effectivement je commence à avoir des doutes sur l'utilisation du c++. J'ai la forte impression que pour communiquer avec FreeCAD et son Gui, il faut impérativement passer par Python (dans les sources d...
by Lethalo
Mon Sep 13, 2021 2:45 pm
Forum: Forum français
Topic: Coder un Atelier en C++
Replies: 5
Views: 1638

Re: Coder un Atelier en C++

Je m'inspire de l'atelier Robot, car il n'est pas trop volumineux mais ne représente pas ce que je souhaite réaliser.
Il y a de l'assemblage (je compte reprendre ce qu'à fait Zolko sur l'assembly 4) et de la réutilisation d'objets paramétrables (variants App::Link sur la branch de realthunder)
by Lethalo
Mon Sep 13, 2021 1:35 pm
Forum: Developers corner
Topic: Up to date dev tutorials and documentation for FC 0.20?
Replies: 3
Views: 1421

Re: Up to date dev tutorials and documentation for FC 0.20?

Maybe this list offers what you are looking for?: Scripting_and_macros Is there a similar place or a way to learn how to create a complete cpp workbench ? I used the fcbt python tool to create a blank cpp workbench, I try to learn by looking at the robot workbench but it's huge and I'm kinda lost :?
by Lethalo
Mon Sep 13, 2021 1:09 pm
Forum: Forum français
Topic: Coder un Atelier en C++
Replies: 5
Views: 1638

Coder un Atelier en C++

Bonjour, J'ai besoin dans le cadre de mon stage de créer un atelier, j'ai déjà pu en réaliser un en python en créant quelques outils basiques. Je viens de me lancer dans la programmation de cet atelier en C++ et là premier soucis je remarque qu'il manque de documentation sur le développement en C++ ...
by Lethalo
Mon Sep 13, 2021 9:23 am
Forum: Developers corner
Topic: Branding & (UI) Configuration to the installation
Replies: 0
Views: 2009

Branding & (UI) Configuration to the installation

I'm looking for a way to deeply customize FreeCAD to the installation, for branding purpose. I believe I could try through code or maybe with .cfg files but I'm not sure which of these way would fit the most. To give you an idea, I would like to : - move every UI elements - hide toolbars - change co...
by Lethalo
Fri Sep 10, 2021 6:22 am
Forum: Assembly
Topic: Assembly 4 workbench
Replies: 1338
Views: 867446

Re: Assembly 4 workbench

totalcad wrote: Thu Sep 09, 2021 6:42 pm If I understood correctly - you need the "Import the selected Datum" function.
Yes, thanks that was the feature I was looking for :)
by Lethalo
Thu Sep 09, 2021 11:37 am
Forum: Assembly
Topic: Assembly 4 workbench
Replies: 1338
Views: 867446

Re: Assembly 4 workbench

Hi Zolko, I'm trying to create parametric models and then reuse them as parts for others models To give you an idea, I might want to have a beam model with a parameter defining it's length. And then create new models with beams of different size. I'm curently using the branch of realthunder because ...