Search found 602 matches

by eivindkvedalen
Sat Sep 15, 2018 10:18 am
Forum: Developers corner
Topic: C++ print contents of a string list
Replies: 11
Views: 2107

Re: C++ print contents of a string list

that is smart too, but since my C++ is not that good and quite often I run into type problems I prefer to explicit give the types to understand whats happening. Well, if you want to avoid auto, naming the type there as for (std::string v : vec) also works. My main point was to use a range-for loop,...
by eivindkvedalen
Fri Sep 14, 2018 6:57 am
Forum: Developers corner
Topic: C++ print contents of a string list
Replies: 11
Views: 2107

Re: C++ print contents of a string list

I have some very basic C++ problem ... :( See commit https://github.com/berndhahnebach/FreeCAD_bhb/commit/af406db I'm not able to print the contents of a string list with an iterator directly. bernd Something like: for(auto v : vec ) { list.push_back(QString::fromStdString(v)); Base::Console().Mess...
by eivindkvedalen
Thu Aug 02, 2018 8:38 pm
Forum: Open discussion
Topic: Making hole feature configurable
Replies: 6
Views: 2016

Re: Making hole feature configurable

chrisb wrote: Thu Aug 02, 2018 5:24 pm
eivindkvedalen wrote:Eivind
This is your baby - and it's a nice one! - what do you think?
If we can tabulate each and every entry, that would be nice, and I don't mind changing the code (either myself, or someone else). This could be as easy as just using a text file.

Eivind
by eivindkvedalen
Sat Jul 28, 2018 11:38 pm
Forum: Help on using FreeCAD
Topic: Linear pattern feature gives me an error
Replies: 10
Views: 3345

Re: Linear pattern feature gives me an error

Ok now at home and I can post my sample drawing where the error occurs. I hope someone can help as this drives me nuts :x :x :x I've looked into this now, and it seems that some internal state either in the Hole feature or the LinearPattern feature is messed up at some point in your sample file. If...
by eivindkvedalen
Sun Jul 15, 2018 11:45 pm
Forum: Open discussion
Topic: Improvement Suggestion for f(x) Button in Sketcher Constraints Input Window
Replies: 6
Views: 1032

Re: Improvement Suggestion for f(x) Button in Sketcher Constraints Input Window

Which one should be taken if both fields contain a value? If the upper input field is disabled as soon as an expression is entered, then the upper field could show the calculated value while the expression field shows the formula. The expression, if defined, will always override the entered value. ...
by eivindkvedalen
Sun Jul 15, 2018 4:33 pm
Forum: Part Design module development
Topic: [Issue #3541] Hole feature does not work correct if sketch is not parallel to main planes
Replies: 11
Views: 3923

Re: Hole feature does not work correct if sketch is not parallel to main planes

babaroga wrote: Sat Jul 14, 2018 11:58 am Should I file a Bug on tracker?
Yes, please file a bug report, so we don't forget about this. Please also refer to this thread in the report.

Eivind
by eivindkvedalen
Sun Jul 15, 2018 4:32 pm
Forum: Part Design module development
Topic: [Issue #3541] Hole feature does not work correct if sketch is not parallel to main planes
Replies: 11
Views: 3923

Re: Hole feature does not work correct if sketch is not parallel to main planes

Had a quick glance through the code. It looks like the problem might be somewhere here: https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/PartDesign/App/FeatureHole.cpp#L980 /* Compute xDir normal to zDir */ if (std::abs(zDir.Z() - zDir.X()) > Precision::Confusion()) xDir = gp_Vec(zDir.Z(), 0,...
by eivindkvedalen
Sat Jun 30, 2018 8:54 am
Forum: Developers corner
Topic: 0003518: Expressions (fx) not updated
Replies: 6
Views: 1147

Re: 0003518: Expressions (fx) not updated

Hello everyone, I have submitted an on FreeCAD bug tracker a week ago: https://www.freecadweb.org/tracker/view.php?id=3518 Issue description: When I try to merge a parametric object in a new document, its expressions are not updated. For eg. suppose we have a parametric object which has an expressi...
by eivindkvedalen
Sun Jun 10, 2018 8:33 am
Forum: Open discussion
Topic: Spreadsheet problem
Replies: 7
Views: 1839

Re: Spreadsheet problem

Hi, When I try to remove the empty row in Param spreadsheet, I get the following error: Exception (Fri Jun 8 12:29:30 2018): Invalid column specification Unhandled Base::Exception caught in GUIApplication::notify. The error message is: Invalid column specification This is clearly a bug. Simplified ...
by eivindkvedalen
Fri May 25, 2018 2:49 pm
Forum: Material
Topic: how to handle materials
Replies: 8
Views: 3875

Re: how to handle materials

At the moment we gone have 105 materials in FreeCAD. The could easily extended to more than 1000. In 95 % I need less than 10 materials. There is no need to have over 1000 for me. But in the 5 % I would like to have access to over 1000 materials. The problem is how to handle them? In FreeCAD FEM we...