Search found 279 matches

Go to advanced search

by JMG
Sat Oct 24, 2020 7:31 pm
Forum: Python scripting and macros
Topic: How to dumpContent/restoreContent of part
Replies: 0
Views: 154

How to dumpContent/restoreContent of part

Hi! Is there a way to restore a Part object and its children using the dumpContent / restoreContent methods? As example, open the attached test.fcstd file and try: part_bin = FreeCAD.ActiveDocument.Part.dumpContent() new_doc = FreeCAD.newDocument() new_part = new_doc.addObject('App::Part','RESTORED_...
by JMG
Fri Jun 21, 2019 9:08 am
Forum: Help on using FreeCAD
Topic: [Solved] Bug or Feature: Mising right click "go to selection"
Replies: 2
Views: 266

Re: Bug or Feature: Mising right click "go to selection"

Created a macro to solve it:

Code: Select all

selection = FreeCAD.Gui.Selection.getSelection()[0]
FreeCAD.Gui.ActiveDocument.scrollToTreeItem( selection .ViewObject )
by JMG
Tue Jun 04, 2019 8:19 am
Forum: Help on using FreeCAD
Topic: [Solved] Bug or Feature: Mising right click "go to selection"
Replies: 2
Views: 266

[Solved] Bug or Feature: Mising right click "go to selection"

Hello, using: OS: Linux Mint 19.1 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.1. Build type: Release Python version: 3.6.7 Qt version: 5.9.5 Coin version: 4.0.0a OCC version: 7.3.0 Locale: Spanish/Spain (es_ES) I do right click over a part in a very large assembly and the only...
by JMG
Tue Jan 15, 2019 2:31 pm
Forum: Python scripting and macros
Topic: Depthmap of current scene
Replies: 4
Views: 469

Re: Depthmap of current scene

Thanks!
by JMG
Sun Jan 13, 2019 9:45 pm
Forum: Python scripting and macros
Topic: Depthmap of current scene
Replies: 4
Views: 469

Depthmap of current scene

Hello! Is there a way to render depth maps to a file (.png or alike) of the active 3D view? The functionality must be hidden somewhere as FreeCAD can render stereo images in several ways. I have checked the python API and found nothing, and I did have a look to the Inventor Mentor book, but nothing ...
by JMG
Tue Feb 20, 2018 8:31 pm
Forum: TechDraw
Topic: FreeCAD 0.17 Crash with automated drawing generator
Replies: 8
Views: 1615

Re: FreeCAD 0.17 Crash with automated drawing generator

FWIW, the crash happens after the macro completes I confirm that too. As an experiment, I have set the script to save the freecad document at each iteration. When it crashes, I re-open the document and run it from last iteration saved. This way I succesfully converted all the parts to drawings this...
by JMG
Tue Feb 20, 2018 8:26 am
Forum: TechDraw
Topic: FreeCAD 0.17 Crash with automated drawing generator
Replies: 8
Views: 1615

Re: FreeCAD 0.17 Crash with automated drawing generator

wandererfan wrote:
Tue Feb 20, 2018 1:46 am
Are you trying to run this from FreeCADCmd? I don't think that will work.
Nope, just plain FreeCAD, running from launch icon or terminal (freecad-daily) crash the same.
by JMG
Mon Feb 19, 2018 6:19 pm
Forum: TechDraw
Topic: FreeCAD 0.17 Crash with automated drawing generator
Replies: 8
Views: 1615

FreeCAD 0.17 Crash with automated drawing generator

Hi, I am working on an automated part to tech-draw drawing script and it crashes FreeCAD every time I run it. This is the python code: import time import FreeCADGui from operator import itemgetter import random base_name = "EDCPI_" drawing_revision = 'R0' author_name = "JMG" max_label = 50 current_l...
by JMG
Wed Feb 07, 2018 8:44 am
Forum: Open discussion
Topic: Specifically "Exploded Assembly" but more generally "FC-Active..?"
Replies: 6
Views: 909

Re: Specifically "Exploded Assembly" but more generally "FC-Active..?"

Hi everyone! I don't really know why the workbench is not in the add-ons manager (which, by the way, I've never used), but there was a issue about this some time ago and is still open, if someones points out ill correct it. The ea workbench is in active development, but slowly (check testing branch)...

Go to advanced search