Search found 2787 matches

by shoogen
Sat Jan 21, 2012 8:59 pm
Forum: Developers corner
Topic: Exception handling in python
Replies: 11
Views: 3078

Re: Exception handling in python

This corresponds then to the Exception class in Python. The Exception class is the base class to nearly all exceptions in python. I think this is a pretty bad design as i have to rely on string operations to make sure to pass any exception i do not want to handle. Have you considered to create a si...
by shoogen
Sat Jan 21, 2012 8:33 pm
Forum: Open discussion
Topic: SVG import
Replies: 30
Views: 8133

Re: SVG import

Importing of test8 now works up to a Draft.precision of 6 decimal places.
by shoogen
Sat Jan 21, 2012 4:36 pm
Forum: Open discussion
Topic: SVG import
Replies: 30
Views: 8133

Re: SVG import

I fixed a problem with test7 when there is only a singular solution and the a radix reaches -0. But there is still a problem with test8 path3757. a 14.142136,14.142136 0 1 1 -28.28427,0 14.142136,14.142136 0 1 1 28.28427,0 (having sweepflag and large-arc-flag set) large arc should not be set for an ...
by shoogen
Sat Jan 21, 2012 9:54 am
Forum: Developers corner
Topic: Exception handling in python
Replies: 11
Views: 3078

Exception handling in python

I learned that one should only catch exceptions with he/she intends to handle. Otherwise there is high danger to loose for example a 'KeyboardInterrupt'. The usual way in python to do that is to specify the Exception Class in the except statement. except (NameError, AttributeError): So what do I hav...
by shoogen
Fri Jan 20, 2012 9:17 pm
Forum: Open discussion
Topic: SVG import
Replies: 30
Views: 8133

Re: SVG import

The ellipse related features (rounded rectangle and elliptical arcs in path) are completed and ready for testing.
https://github.com/5263/free-cad/raw/sv ... portSVG.py
by shoogen
Thu Jan 19, 2012 1:55 pm
Forum: Users Showcase
Topic: furniture
Replies: 10
Views: 7944

Re: Show your FreeCAD projects here!

FeaturePython::onChanged (Shape2DView001): (9, 'Bad file descriptor') FeaturePython::onChanged (Shape2DView001): (9, 'Bad file descriptor') I am pretty confident that a lot of those Bad file descriptors arise from python not having a STDOUT opened. Like using importSVG.import(...) works from the CL...
by shoogen
Tue Jan 17, 2012 4:19 pm
Forum: Open discussion
Topic: SVG import
Replies: 30
Views: 8133

Re: SVG import

wmayer wrote:

Code: Select all

e=Part.Ellipse()
...
a=Part.Arc(e,0,2)
The range [0,2] gives the domain where the arc should be defined.
Thank You!
but souldn't that be [0,2*pi]

And did not quite understand what you mean with geometry here. I need an 'edge' for every elliptical arc so buildup are 'wire'
by shoogen
Tue Jan 17, 2012 3:33 pm
Forum: Open discussion
Topic: SVG import
Replies: 30
Views: 8133

Re: SVG import

I got it

Code: Select all

Part.show(Part.Arc(Part.Ellipse(),1.5,4.5).toShape())
by shoogen
Tue Jan 17, 2012 12:49 pm
Forum: Help on using FreeCAD
Topic: FreedCAD 0.12: Part WB Box H/L/W
Replies: 19
Views: 3511

Re: FreedCAD 0.12: Part WB Box H/L/W

Or maybe look at the 'data' tab in the 'combo view'
by shoogen
Tue Jan 17, 2012 7:03 am
Forum: Developers corner
Topic: Git
Replies: 138
Views: 31292

Re: Git

Once you rebase, the link between the repos for the feature branch gets broke and you will have to setup the tracking branch again. I tried to rebase. To me it meant that my commits were duplicated. When it comes to preparing a merge into master I found it much more usefull do 'squash' at the same ...