Search found 29 matches

by thuswm
Fri Oct 05, 2012 10:00 pm
Forum: Developers corner
Topic: Adding GUI Command through python
Replies: 3
Views: 1426

Re: Adding GUI Command through python

I see. I don't want to reimplement everything in python so I guess I will add to the C++ code. An option is to experiment on a completely new workbench. I found the following thread very informative: http://forum.freecadweb.org/viewtopic.php?f=13&t=2979 However, there are a few things that I don...
by thuswm
Sat Sep 29, 2012 5:09 pm
Forum: Developers corner
Topic: Adding GUI Command through python
Replies: 3
Views: 1426

Adding GUI Command through python

I am trying to follow the instructions on how to extend FreeCAD with my own commands. http://sourceforge.net/apps/mediawiki/free-cad/index.php?title=Module_Creation I have basically copied the code given on this page (the one for creating a command) and just added: def Activated(self): print "t...
by thuswm
Sun Aug 26, 2012 4:21 pm
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

shoogen and Jürgen, I have no trouble understanding the mathematics. The point (1 to 6) are just basic linear algebra. The problem I had is that when I looked at the documentation of the Placement object I saw this: http://free-cad.sourceforge.net/SrcDocu/d7/d32/classApp_1_1Placement.html Not a lot ...
by thuswm
Sat Aug 25, 2012 9:03 pm
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

Once again my coordinate system is not a transformation...but let's leave that.

Let's do it the other way around. Could someone explain the Placement object so that I understand what it does and in what circumstances it is used. A piece of sample code would be good.
by thuswm
Sat Aug 25, 2012 3:00 pm
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

I have tried to understand the Placement object but I must confess that I didn't succeed. From the name I can only conclude that it is an object that basically handles transformation (i.e. translation and rotation) information. I have some grounds for my assumption if I look in the FreeCAD code. How...
by thuswm
Fri Aug 24, 2012 6:47 am
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

My branch is now available on github. The url for pulling and cloning is: https://github.com/thuswm/FreeCAD.git The url to the github page is: https://github.com/thuswm/FreeCAD In order to clean up the commit log I have applyed the patch (uploaded onto Mantis) to the latest master of FreeCAD and com...
by thuswm
Tue Aug 21, 2012 8:54 pm
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

Just to clarify. You say that the preferred way is to use github? Or did I understand this wrong? Putting it on gitorious is still better no not using git ;) Is there another reason for preferring github over gitorious besides the fact that many FreeCAD developers already use github? I am new to the...
by thuswm
Tue Aug 21, 2012 8:31 pm
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

I would be happy to test it :) but I haven't :shock: because 1) I don't understand what this is for or how I should use it to test it. :oops: 2) Also because I don't know how to add a patch file and honestly it is probably too inefficient way to handle code that you will presumably be updating repe...
by thuswm
Sat Aug 11, 2012 9:19 am
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

Will this be a suitable icon? I made it by basically copying the axis in the model view in FreeCAD set to axometric view. Which I guess means its really symbolic of the global axis system, so perhaps I should add something or change it in some way to differentiate it, so that it is clearly a local ...
by thuswm
Thu Aug 09, 2012 8:44 pm
Forum: Open discussion
Topic: Local coordinate systems
Replies: 33
Views: 6351

Re: Local coordinate systems

Well...it is done! My first patch is uploaded! :-D I found a quite simple way of producing my patch. Since I have all my work in a development branch and never tampered with the local master I just had to write: git diff master > patchfile.patch (this is done with the development branch checked out)...