Search found 15660 matches

by wmayer
Tue May 26, 2020 11:13 am
Forum: Developers corner
Topic: old code repositories
Replies: 13
Views: 458

Re: old code repositories

With https://www.journaldev.com/10618/svn-to-git-migration-complete-tutorial I found a good tutorial how to migrate a SVN repo to git. As said above the SVN repo is not accessible any more on Sourceforge but luckily Jürgen once made a backup of the files on the server and put them to the download se...
by wmayer
Tue May 26, 2020 8:41 am
Forum: Open discussion
Topic: How often does FreeCAD crash
Replies: 29
Views: 757

Re: How often does FreeCAD crash

And FreeCAD isn't in its "early states" of development. I'm not sure what gave you that idea. It has a history that traces back to around 2001, so almost 20 years. The old history is before 2006 when CVS was used. Then from 2006 to 2011 it used SVN, and the modern history so to speak is from 2011 t...
by wmayer
Tue May 26, 2020 8:24 am
Forum: Install / Compile
Topic: [Solved] Crash after compiling FreeCAD from master (R21225) - libcoin incompatibility
Replies: 12
Views: 301

Re: Crash after compiling FreeCAD from master (R21225)

I don't see how this crash should be related to PySide. The error message is about SoType which is clearly a Coin3d class. What happens IMO is that when starting FreeCAD the Coin3d type system is initialized, at a later point a different Coin3d version is pulled in and collides with static variables...
by wmayer
Tue May 26, 2020 7:58 am
Forum: Help on using FreeCAD
Topic: [ Fixed ] [ Ticket #4144 ] Sketcher: Point-point-point symmetry: order of points?
Replies: 17
Views: 664

Re: [ Ticket #4144 ] Sketcher: Point-point-point symmetry: order of points?

If I click the tool first the required order is: PtA-Center-PtB If I click the tool last the required order is: PtA-PtB-Center Why is the point order different? I told the guy who developed the possibility to make the selection after the symmetry tool is started that it's inconsistent to the way wh...
by wmayer
Tue May 26, 2020 6:19 am
Forum: Python scripting and macros
Topic: addCommand: How to address variables of instance?
Replies: 10
Views: 272

Re: addCommand: How to address variables of instance?

No, FreeCAD keeps a reference to the Python command object passed with FreeCADGui.addCommand. Internally a C++ wrapper is instantiated that is derived from the C++ class Gui::Command and this wrapper invokes the appropriate functions of the Python object... Yes, but does the wrapper call __init__ a...
by wmayer
Mon May 25, 2020 8:48 pm
Forum: Python scripting and macros
Topic: addCommand: How to address variables of instance?
Replies: 10
Views: 272

Re: addCommand: How to address variables of instance?

I don't know the internals of FreeCAD to be able to answer that exactly, but my empirical experience tells me every time you run a command, you essentially instantiate a new command "object", just like you would call the class in code. No, FreeCAD keeps a reference to the Python command object pass...
by wmayer
Mon May 25, 2020 8:28 pm
Forum: Developers corner
Topic: old code repositories
Replies: 13
Views: 458

Re: old code repositories

Lately I imported a SVN into git, which is not difficault. Thus the idea came in mind to create a new git repository which has the old FreeCAD SVN and on top the git commits. Just for historical reason to be able to browse and reference the development before 2011. Can you list the commands how to ...
by wmayer
Mon May 25, 2020 5:02 pm
Forum: Developers corner
Topic: old code repositories
Replies: 13
Views: 458

Re: old code repositories

For the CVS repo I figured out that you can still run this: cvs -z3 -d:pserver:anonymous@free-cad.cvs.sourceforge.net:/cvsroot/free-cad co -P . A backup of the CVS files of the server can be done with: rsync -av rsync://a.cvs.sourceforge.net/cvsroot/free-cad/\* cvs So, to create a git repo out of th...
by wmayer
Mon May 25, 2020 2:43 pm
Forum: Python scripting and macros
Topic: addCommand: How to address variables of instance?
Replies: 10
Views: 272

Re: addCommand: How to address variables of instance?

As far as I understand, there should now be an instance available. How can I address "flag_something"? Tried different approaches but to no avail. This is a very simple example how you can do it: import __main__ class MyCommand: def __init__(self): print ("Create command") self.flag_something = Tru...