Search found 4321 matches

by vocx
Sat Jul 11, 2020 5:54 am
Forum: Install / Compile
Topic: Unknown command 'PartDesign_Sprocket'
Replies: 2
Views: 80

Re: Unknown command 'PartDesign_Sprocket'

... Unknown command 'PartDesign_Sprocket' What happens when you run this command? Gui.runCommand("PartDesign_Sprocket") This is a command defined in Python , so you should have the appropriate files in the installation directory. Mod/PartDesign/SprocketFeature.py If you don't have this file, then i...
by vocx
Sat Jul 11, 2020 5:46 am
Forum: Python scripting and macros
Topic: what is the correct way to import .FCStd part into assembly
Replies: 4
Views: 115

Re: what is the correct way to import .FCStd part into assembly

... The only reason I went that way was to try and simulate the GUI actions. As I said, A2plus doesn't have a proper scripting interface, so everything has to be done as a simulated GUI action. For example, in the Draft Workbench, if you want to create a line, you can run this code. This will launc...
by vocx
Fri Jul 10, 2020 10:24 pm
Forum: UX/UI Design
Topic: Icons for Mesh Design WB
Replies: 35
Views: 1887

Re: Icons for Mesh Design WB

Can I do this directly in Github web, in the FreeCAD fork of my GitHub account? I had to delete the local installation in my laptop time go. You can modify the existing Command.cpp and Mesh.qrc, but you need to upload the actual SVG icons. I'm not sure if you can do this from the web interface. It'...
by vocx
Fri Jul 10, 2020 10:11 pm
Forum: Developers corner
Topic: Command icon path
Replies: 1
Views: 60

Re: Command icon path

...I don't know where to locate the pixmap for those commands. Thanks for your help FreeCAD doesn't look for a specific directory for icons. It only knows about the top level directories. You need to concatenate the full path of the icon or resource file. >>> App.getUserAppDataDir() '/home/vocx/.Fr...
by vocx
Fri Jul 10, 2020 3:40 pm
Forum: UX/UI Design
Topic: Icons for Mesh Design WB
Replies: 35
Views: 1887

Re: Icons for Mesh Design WB

...I don't know how to link these icons to their respective commands for MeshWB. Can someone illustrate me? All the commands must be in Mesh/Gui/Commands.cpp. The icon name is the field sPixmap . If this field doesn't exist you should add it. https://github.com/FreeCAD/FreeCAD/blob/45b96ca3516c8a0b...
by vocx
Fri Jul 10, 2020 3:25 pm
Forum: TechDraw
Topic: Is there a way of copying dimensions from sketch to TechDraw?
Replies: 10
Views: 334

Re: Is there a way of copying dimensions from sketch to TechDraw?

clarification needed: @vocx: do you mean that currently HLR is used even on the 2D geometry and @wandererfan meant that it would be possible to not use HLR for 2D in the future ? Yes, exactly. As Wandererfan says, this could be improved, it just hasn't been done yet. In my previous post I mentioned...
by vocx
Fri Jul 10, 2020 5:29 am
Forum: TechDraw
Topic: Is there a way of copying dimensions from sketch to TechDraw?
Replies: 10
Views: 334

Re: Is there a way of copying dimensions from sketch to TechDraw?

reox wrote:
Fri Jul 10, 2020 4:53 am
TD actually keeping the edge names but uses 0-indexing?
Maybe Wandererfan just starts the names from 0 as all arrays in C++ and Python start from 0. But that doesn't matter as currently the sketch goes through the HLR so the names are relatively arbitrary.
by vocx
Fri Jul 10, 2020 5:23 am
Forum: Python scripting and macros
Topic: what is the correct way to import .FCStd part into assembly
Replies: 4
Views: 115

Re: what is the correct way to import .FCStd part into assembly

... Gui.activateWorkbench("A2plusWorkbench") If you are using A2plus you better do this from the graphical user interface. A2plus's author hasn't provided functions and methods to perform most operations from the Python console . Everything is done through buttons and graphical interfaces; ideally ...
by vocx
Thu Jul 09, 2020 6:18 pm
Forum: TechDraw
Topic: Is there a way of copying dimensions from sketch to TechDraw?
Replies: 10
Views: 334

Re: Is there a way of copying dimensions from sketch to TechDraw?

... Is it possible that Edge names are kept, but TechDraw uses zero indexing and Sketcher indexes from one? Wandererfan has explained this many times in the past; essentially TechDraw uses OpenCASCADE's hidden line algorithm (HLR) to get the edges from the 3D object. The collection of edges that yo...
by vocx
Thu Jul 09, 2020 3:23 am
Forum: Help on using FreeCAD
Topic: Rotating a pad
Replies: 6
Views: 221

Re: Rotating a pad

... What I'm trying to do is to create a sketch and make a pad from it. Then I create another sketch and attach it to the previous one, using the external geometry button. I can also create a pad from this sketch. ... You can attach a sketch to the face of a previous pad; this was common in the old...