Commit Graph

6002 Commits

Author SHA1 Message Date
Yorik van Havre
e98347960d Draft: x,y and z fields are now auto-masked when second point is horizontal or vertical 2015-12-26 20:19:52 -02:00
Yorik van Havre
026dc8678c Merge pull request #73 from wood-galaxy/arch-wall-negative-offset
Arch/Wall : allow negative value to Offset property
2015-12-26 17:57:57 -02:00
Yorik van Havre
08b79eb4dd Draft: fixed focus on first field when starting a draft command 2015-12-26 13:45:09 -02:00
Yorik van Havre
93ccc88f74 Draft: fixed non-focused taskview fields 2015-12-25 20:05:55 -02:00
wmayer
d8088c5db0 + improve whitespaces 2015-12-25 10:56:03 +01:00
wmayer
51c7a8eecc + improve whitespaces 2015-12-25 10:37:52 +01:00
wmayer
632eaeadeb + fixes #0002372: Application terminates on attempt to change external geometry from a sketch
+ fixes #0002373: When Measuring in the distance between two external geometry Freecad crashes
2015-12-25 09:47:25 +01:00
Mateusz Skowroński
9aa3cfb4f9 Add missing QMimeData.h includes.
This change is Qt4/Qt5 neutral.
2015-12-24 13:36:46 +01:00
Mateusz Skowroński
c2a31fe04b qVariantValue() is obsolete in Qt4. Replace it with equivalent QVariant::value<T>(value).
This change is Qt4/Qt5 neutral.
2015-12-24 12:49:26 +01:00
Mateusz Skowroński
62ccb845bc QFileDialog::selectFilter() is obsolete in Qt4. Replace it with selectNameFilter().
This change is Qt4/Qt5 neutral.
2015-12-24 12:49:08 +01:00
Mateusz Skowroński
5be2986146 QFileDialog::filters() is obsolete in Qt4. Replace it with nameFilters().
This change is Qt4/Qt5 neutral.
2015-12-24 12:48:49 +01:00
Jonathan Wiedemann
3c0927650d Arch/Wall : allow negative value to Offset property 2015-12-24 03:04:37 +01:00
Yorik van Havre
3bbddc8675 Drawing: Added python feature to ViewProviderDrawingView - fixes #2276 2015-12-23 17:03:46 -02:00
Yorik van Havre
aac4205d1d Draft: small fix in trimex snap mode 2015-12-23 15:19:03 -02:00
wmayer
ff806af026 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-23 15:44:38 +01:00
wmayer
4f2291f420 + implement property editor item for FEM mesh 2015-12-23 15:44:11 +01:00
wmayer
b55defa4f3 + add missing comma in property item 2015-12-23 15:43:29 +01:00
Jonathan Wiedemann
7913e608be Arch : Add Align property to StructuralSystem 2015-12-23 12:35:01 -02:00
Yorik van Havre
a1f82e443e Draft: small fix in Arch Axes SVG output 2015-12-23 12:13:29 -02:00
Yorik van Havre
94dd07297d Draft: Fixed display of Arch axes on Drawing views 2015-12-23 11:55:34 -02:00
Yorik van Havre
474c114e66 Arch: fixed projection of Drawing views of arch sectionplanes - fixes #2233 2015-12-23 11:32:36 -02:00
Yorik van Havre
38d90ab4c2 Draft: Fixed arc bug in DXF export - fixes #2208 2015-12-22 11:54:55 -02:00
Mateusz Skowroński
99ca18f541 QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:47 +01:00
Mateusz Skowroński
e6379ea636 QFileDialg::selectedFilter() is obsolete in Qt4. Replace it with selectedNameFilter().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:46 +01:00
Mateusz Skowroński
d3d01db9e2 QFileDialg::setFilters() is obsolete in Qt4. Replace it with setNameFilters().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:45 +01:00
Mateusz Skowroński
4d85f0e40b QWidget::setShown() is obsolete in Qt4. Replace it with setVisible().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:45 +01:00
Mateusz Skowroński
f7b8135ded Add missing forward declaration of QPrinter to MDIView.h.
This change is Qt4/Qt5 neutral.
2015-12-22 05:44:52 +01:00
wmayer
7c359b7b30 + handle exceptions when restoring dynamic properties 2015-12-21 18:24:12 +01:00
Yorik van Havre
eca0e54bf3 Arch: small encoding bugfix 2015-12-21 12:37:57 -02:00
Yorik van Havre
aad6ef004d Arch: improvements to Axis - fixes #2138
* Fixed small bugs
* More options to position the bubble (start, end or both)
* Properties for text size and font
2015-12-21 12:21:31 -02:00
Eivind Kvedalen
fca2e2671a PropertyConstraintList: Use correct indices when checking the constraint type. 2015-12-21 14:11:14 +01:00
Eivind Kvedalen
df660dc280 PropertyExpressionEngine/DocumentObject: Track object deletes and update dependencies accordingly. 2015-12-21 14:11:13 +01:00
Eivind Kvedalen
7b25d454b5 PropertyExpressionEngine::slotObjectRenamed(...): return immediately if the property's owner is not part of an object (e.g on the undo stack). 2015-12-21 14:11:13 +01:00
Eivind Kvedalen
9c7b9ed2c0 PropertyExpressionEngine::slotObjectRenamed(...): only change the object if it is absolutely necessary,
or else the object will in most cases be touched, leading to unnecessary recomputes.
2015-12-21 14:11:12 +01:00
Eivind Kvedalen
65a610d1cb Expression/ObjectIdentifier: changed return type of renameDocumentObject and renameDocument,
to be able to signal that a rename actually took place.
2015-12-21 14:11:12 +01:00
Eivind Kvedalen
83d221e161 DocumentObject: Don't emit signal if Label hasn't actually changed. 2015-12-21 14:11:11 +01:00
Yorik van Havre
19fd2c3195 Arch: set the Lenght property of walls automatically when based on baselines 2015-12-20 12:41:25 -02:00
Yorik van Havre
5fa85ad31b Draft: disabled moving siblings when moving an object 2015-12-19 22:32:56 -02:00
Yorik van Havre
d6920a07c3 Arch: Walls now adopt the current working plane orientation on creation - fixes #2175 2015-12-19 12:53:20 -02:00
wwmayer
eb5ec62ccb Merge pull request #71 from ianrrees/20151216-3dconnexion-mac
Fixed paths for 3Dconnexion headers on Mac
2015-12-19 14:19:58 +01:00
wmayer
0b0d258afd + make method cancelObservation() not pure virtual 2015-12-19 11:31:59 +01:00
Ian Rees
bdc519743c Fixed paths for 3Dconnexion headers on Mac 2015-12-19 15:08:54 +13:00
Yorik van Havre
5b750aabe3 Arch: Creating windows no longer removes external refs from base sketches - fixes #2326 2015-12-18 22:11:53 -02:00
wmayer
73a716c82f Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-18 22:48:53 +01:00
Eivind Kvedalen
823b5205bb NumberExpression: Added std::setprecision to keep precision of number in double to string conversion. 2015-12-18 22:05:32 +01:00
Eivind Kvedalen
6f39eed25e PropertyPlacement: Fixed setting of angle (missing deg to radian conversion). 2015-12-18 22:05:31 +01:00
Eivind Kvedalen
7760c6ac18 ObjectIdentifier: Added std::setprecision to keep precision of double to string conversion. 2015-12-18 22:05:31 +01:00
Eivind Kvedalen
db2f868bbe Sketcher: Fixed setPathValue to convert angles to radians before they are stored in the Constraint object. This mimics the setDatum implementation. 2015-12-18 22:05:30 +01:00
Yorik van Havre
dab7ef4262 Draft: workaround for exporting DXF with R14+ templates - fixes 2177
- Adapted Drawing algos to export R14+ compatible DXF code
- Added option in DXF prefs to disable groups (not supported in R14+ templates)
2015-12-18 10:47:14 -02:00
Yorik van Havre
45292eb9ee Arch: IFC bugfix + added pref option to use DAE triangulation options 2015-12-18 10:39:40 -02:00
Yorik van Havre
cfba4a3d5c Changed default shortcuts for 10 first workbenches from CTRL+number to ALT+CTRL+number 2015-12-18 10:39:27 -02:00
wmayer
24c60199cc + improve getting proper group name from Python module path name 2015-12-17 18:56:40 +01:00
wmayer
5ac4a6fa91 + improve getting proper group name from Python module name 2015-12-17 10:41:01 +01:00
DeepSOIC
4057de6346 OpenSCAD: fix replaceChild
was broken because it failed trying to set a read-only
"ExpressionEngine" property
2015-12-17 03:34:16 +03:00
wmayer
61e1a5ca2f + use Python's inspect module to get calling instance of addCommand 2015-12-16 23:07:24 +01:00
wmayer
f958dadb69 + improve autoload mechanism to get commands of custom toolbars 2015-12-16 21:19:12 +01:00
DeepSOIC
4f2992db54 API: improve built-in docu for copyObject and moveObject 2015-12-16 20:45:54 +03:00
DeepSOIC
dd8027a839 API: fix document.copyObject not working when with dependencies
copyObject failed with an error when attempting to copy an object with
dependencies from one document to another.

http://forum.freecadweb.org/viewtopic.php?f=22&t=13533&p=108288#p108288
2015-12-16 20:45:53 +03:00
Yorik van Havre
43e0083c72 Draft: Added editmode to facebinders - fixes #2165 2015-12-16 15:30:43 -02:00
wmayer
9a3211c343 + extend Inventor builder to support material nodes 2015-12-16 16:09:31 +01:00
Jonathan Wiedemann
2669aa6206 Allow negative value in Draft's pref : Ext Line size 2015-12-16 13:03:46 +01:00
Yorik van Havre
e71787d37a Draft: fixed bug in wire offsets - fixes #1975 2015-12-15 11:11:57 -02:00
Yorik van Havre
472e6b777a Draft: shape2Dview now projects along the current view direction - fixes #2367 2015-12-14 19:32:35 -02:00
wmayer
acf3b34711 + implement PropertyExpressionEngine::getPyObject 2015-12-13 22:40:07 +01:00
wmayer
f7a2ffc457 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-13 19:19:58 +01:00
wmayer
1a8c643d50 + make properties of FEM result object read-only for property editor 2015-12-13 19:19:38 +01:00
Yorik van Havre
c850d622b7 Draft: Added properties to subdivide rectangles into columns and rows - fixes #2340 2015-12-13 12:32:43 -02:00
Yorik van Havre
c66be818b9 Path: added .gcode extension to available gode file formats 2015-12-13 12:31:53 -02:00
wmayer
f26844e1bc + allow to clear installed firewall 2015-12-13 14:36:41 +01:00
wmayer
f46393efe7 Report 'None' for successfully executed commands in server, implement a simple firewall to block commands 2015-12-13 14:24:15 +01:00
wmayer
33c9c02aeb + limit display role of property list items to 10 elements 2015-12-13 12:01:16 +01:00
wmayer
e305f079d0 + when using FreeCAD GUI as Python module handle attempt to re-create main window 2015-12-12 20:14:37 +01:00
Yorik van Havre
97311dfd0a Merge remote-tracking branch 'sgrogan/Idf-fix' 2015-12-12 13:00:36 -02:00
Yorik van Havre
5949d79bed Merge pull request #69 from timthelion/patch-1
Application.cpp English editing
2015-12-12 12:43:06 -02:00
Yorik van Havre
18346619ae Draft: Changing text or arrows of a Dimension now marks it to be recomputed 2015-12-12 12:31:36 -02:00
Timothy Hobbs
7da3c663c6 Application.cpp English editing
Edit English in comments and warning messages
2015-12-12 01:22:14 +01:00
Yorik van Havre
3dcc557e65 Draft: more consistent behaviour for Clones when trying to edit them - fixes #2198 2015-12-11 11:08:30 -02:00
Bernd Hahnebach
0f7a13a8a8 FEM: fix loading frequency in solver control command 2015-12-11 13:32:23 +01:00
sgrogan
4d4d292cf0 Make Idflibs consistent for installed and uninstalled builds 2015-12-10 16:37:25 -05:00
Yorik van Havre
be9920a132 Arch: obj exporter now skips bad objects instead of stopping 2015-12-10 15:46:09 -02:00
wmayer
36ac2e7032 Fix element A41 in 4x4 Matrix class 2015-12-10 17:35:54 +01:00
Yorik van Havre
b7a9bf9505 Merge pull request #68 from l3iggs/patch-1
fixes #0002358
2015-12-10 13:23:11 -02:00
Yorik van Havre
d65c96099e Draft: Lines and Wires now have a Subdivisions property - fixes #1593 2015-12-10 13:20:48 -02:00
l3iggs
4901553a2d fix for 0002358
This strips off any trailing '-' text reported by openscad when asking it for its version.
2015-12-10 14:50:01 +00:00
wmayer
dde207c360 + fix: -Wunused-variable 2015-12-09 16:52:47 +01:00
wmayer
7e261db1a2 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-09 15:09:57 +01:00
Yorik van Havre
b876489b46 Arch: small fix in Structure - fixes #2186 2015-12-09 11:30:51 -02:00
Stefan Tröger
dcad131357 Expressions: Fix property editor behavior
- change responsibility of python code emition
- Correct python code handling for expressions
- handle constraints expressions handling
2015-12-09 14:08:50 +01:00
Stefan Tröger
580a4e15d1 Expressions: port int spinbox for property editor 2015-12-09 14:08:49 +01:00
Stefan Tröger
4203a6f35b Expressions: Integrate into the property editor
- basic infrastructure for handling of expressions
- port the unit properties editor to support expressions
- port placement editor to support expressions
- expressions for double spinbox
- expressions in sketch constraints
2015-12-09 14:08:48 +01:00
Abdullah Tahiri
501fa80e4d Sketcher: Fix Sketch Mirror functionality
=========================================

The problem:
Mirror stopped working.

How to reproduce:
Select a sketch, and apply "Mirror Sketch" from the menu.

Why?
With the introduction of expressions, mirror sketch stopped working. The reason is that mirror functionality did use the "clone" function to make copies of constraints
and then modify their values. After expessions introduction, which introduces a unique tag per constraint, this copy was regarded as a "rename" of the original constraint
as they shared the unique tag.

Fix?
New function "copy()" for a constraint, that copies all the content but the tag.
2015-12-09 13:32:12 +01:00
wmayer
118d2eb531 + fix typo in FEM 2015-12-09 13:19:13 +01:00
wmayer
69a6970975 + fix crash when undoing creation of spreadsheet 2015-12-09 13:18:58 +01:00
Eivind Kvedalen
ae6b934207 Spreadsheet: Fixed PropertySheet::Paste(); undo did not work correctly. 2015-12-09 12:15:15 +01:00
Eivind Kvedalen
aef7bbdf62 Spreadsheet: AggregateFunctionExpression missed its own implementation of copy().
This causes a crash during undo if this class is used.
2015-12-09 12:15:15 +01:00
Eivind Kvedalen
4d0af95caf App: Replaced freecad_dynamic_cast by static_cast. In this case we know the type, and don't check for 0. 2015-12-09 12:15:14 +01:00
Eivind Kvedalen
71605e63ef Spreadsheet: Fixed issue #2352, removal of rows and columns. 2015-12-09 12:15:13 +01:00
Eivind Kvedalen
4b5ae54e88 App: Removed VariableExpression::setName(), and replace call by setPath(); it's use caused a crash (#2352). 2015-12-09 12:15:12 +01:00
Yorik van Havre
c67b2bed45 Draft: Fixed offset of arcs - fixes #1993 2015-12-08 12:01:28 -02:00
wmayer
c0ee5fbae3 + add restart method to timer 2015-12-07 17:31:05 +01:00
Yorik van Havre
a97992a537 Arch: added button to edit text position in Arch Spaces edit mode - fixes #2339 2015-12-07 12:30:20 -02:00
Yorik van Havre
1da0ec65c3 Draft: added radial & diameter dim support to DXF import - fixes #2162 2015-12-05 16:50:30 -02:00
Yorik van Havre
2e91633da9 Draft: Added mirror tool (more graphical version of Part Mirror) - fixes #2215 2015-12-05 14:19:35 -02:00
Yorik van Havre
cf3e69de08 Arch: removed global state of ifcfile 2015-12-05 13:49:02 -02:00
Bernd Hahnebach
6d2877444c Arch: ifc: fix import of archobj walls if structobj import is activated 2015-12-05 13:46:34 -02:00
wmayer
93b53f1662 + add several surface reconstruction methods from pcl to Reen module 2015-12-05 16:19:18 +01:00
Yorik van Havre
fd191b802e Draft: Fixed grid jump in edimode - fixes #2104 2015-12-03 22:59:50 -02:00
Bernd Hahnebach
9e114a8b59 FEM: make cccFrdReader flake8 compatible 2015-12-03 18:50:06 -02:00
fandaL
cf22522290 FEM: frd mesh import rearrange repeating if 2015-12-03 18:50:06 -02:00
fandaL
98cd075a84 FEM: frd import mesh - added HEX20, PENTA6, PENTA15 2015-12-03 18:50:06 -02:00
Bernd Hahnebach
32624cbe94 Arch: on ifc import do no longer decode unicode strings before encode them 2015-12-03 18:46:23 -02:00
Yorik van Havre
cf1c02271f Draft: more consistent offset result - fixes #2027 2015-12-03 18:25:32 -02:00
Yorik van Havre
3414ec8af1 Arch: IFC importer doesn't choke anymore on rebars 2015-12-02 21:51:27 -02:00
Yorik van Havre
7594bb6f31 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-12-02 21:31:28 -02:00
Yorik van Havre
047998de87 Draft: other bugfix in downgrade - fixes #2260 2015-12-02 21:31:23 -02:00
Yorik van Havre
d0dac0c658 Draft: fixed bug in downgrade - fixes #2261 2015-12-02 21:25:37 -02:00
wmayer
7eb7be3936 + add Poisson surface reconstruction 2015-12-02 23:36:26 +01:00
Yorik van Havre
1acf487040 Arch: Added more meshing options for Collada exporter - fixes #2341 2015-12-02 18:42:30 -02:00
Yorik van Havre
9f4c54d33a Draft: small bugfix 2015-12-01 22:14:59 -02:00
wmayer
2b2358e70b + fix warnings with Win32 build 2015-12-01 00:51:57 +01:00
wmayer
244054ff1f + reorder header to fix warnings with Win32 build 2015-11-30 20:38:19 +01:00
Yorik van Havre
fd802bad80 Arch: Allow to draw walls by entering length, width and height on the GUI - fixes #2000 2015-11-30 15:40:52 -02:00
Yorik van Havre
a557cd4cc5 Draft: fixed buggy global copy mode 2015-11-30 15:39:43 -02:00
Bernd Hahnebach
c78f57a78a FEM: fix node order of seg3 in ViewProwiderFemMesh 2015-11-30 11:21:51 -02:00
Bernd Hahnebach
d8af8693b4 FEM: fix node order of seg3 (B32) in writeAbaqus 2015-11-30 11:21:51 -02:00
Yorik van Havre
8bc013140e Draft: Fixed arrows at endpoints of wires - fixes #2066 2015-11-29 12:47:06 -02:00
wmayer
76c238fc98 + fixes #0001860: Can not open a FreeCAD project in FreeCAD by double-clicking the project file on Macintosh 2015-11-29 15:36:47 +01:00
Bernd Hahnebach
b2080f945a FEM: fix not closing taskd of _CommandSolverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
ea2a0d12c2 FEM: do not allow to add multiple soler with gui 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
ce3284624f FEM: make selection of quick analysis consistent with solverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
f3a1ef31db FEM: raise exception if multiple solver or mesh are in an analysis, they are not yet supported 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
592e26fc41 FEM: replace Calculix with CalculiX in strings 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
a25c4ac7da FEM: delete FemExample since there is no example inside 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
fb7153d5fe FEM: delete not used import FemGui 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
9d2d92336e FEM: rename modul MechanicalAnalysis to FemAnalysis 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
03d1d32e38 FEM: rename command MechanicalJobControl to SolverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
882db04b3c FEM: activate CommandMechanicalJobControl with_Solver selected 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
181262b39d FEM: rename TaskPanelJobControl to TaskPanelFemSolverCalculix 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
39c3662da8 FEM: include calculix solver objekt if new analysis is created 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
42913ca0cf FEM: fix test frame work 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
6865e35fd9 FEM: add CalculiX solver object 2015-11-28 20:04:22 -02:00
Author qingfengxia
80cf664ec8 FEM: new solver object implementation of the object 2015-11-28 20:04:22 -02:00
Author qingfengxia
3918d9fbe5 FEM: new solver object icon 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
006bf802f4 FEM: fix some line endings 2015-11-28 20:04:22 -02:00
Yorik van Havre
9d0f4ba46e Arch: Added editmode to Section Planes - fixes #2098 2015-11-28 14:51:40 -02:00
wmayer
6111f55a89 + correctly handle toggle selection in BRep shape nodes 2015-11-28 16:21:20 +01:00
Abdullah Tahiri
19c840e1ab Sketch: Solver: Extended Advanced Solver configuration
========================================================

This is an advanced setting just for allowing increased choices to power users that have problems with a given sketch and want to
test different flavours of DogLeg algorithm.

This commit does not change the default behaviour of FreeCAD. It is only intended to give more options to power users.

The advanced solver configuration is extended to support three different Gauss-newton steps for DogLeg:

FullPivLU => h_gn = Jx.fullPivLu().solve(-fx);
LeastNormFullPivLU => h_gn = Jx.adjoint()*(Jx*Jx.adjoint()).fullPivLu().solve(-fx);
LeastNormLdlt => h_gn = Jx.adjoint()*(Jx*Jx.adjoint()).ldlt().solve(-fx);

This setting is applied only to DogLeg. It is applied to DogLeg as normal or redundant solver, if DogLeg is the selected solver.

Selecting a solver different from DogLeg for both normal and redundant disables the setting.

We have been told:
https://forum.kde.org/viewtopic.php?f=74&t=129439#p346104

that our default Gauss-Newton step in DogLeg may not be adequate in general (we generally deal with underconstraint systems
unless we have a fully constraint sketch, and even then it is many times overconstraint at least for redundant solving).

We have been told that maybe these LeastNorm options are more suitable for us (performance set aside). This enables you as power
user to test if it works fine with FreeCAD.
2015-11-28 13:08:31 +01:00
Abdullah Tahiri
aa6908b144 Sketch: Solver Defaults: Sketch size multiplier OFF
===================================================

This commit sets the sketch size multiplier OFF by default (so the number of iterations DogLeg/BGFS/LM is not sketch size dependent).

In complicated sketches having a high number of parameters, with sketch multiplier on, the number of iterations is extremely high (100 parameters*100 iterations => 10000 iterations).

The idea of disabling this comes from tests performed by DeepSOIC and from my own experience using the Sketcher. In general
sketch multiplier makes FreeCAD unresposive (very high amount of iterations, not a real freeze) in big sketches so that users
end up killing the application. This is preventing the users from taking appropriate action, Developers from getting the information of the failure and
users angry.

The idea is that even for complicated sketchs N iterations (100 by default) should be enough to converge, if it is ever going to converge. Experience will tell us
if we have to increase this number in the range [100-300]. 100 iterations in complicated dossiers is in my experience generally under 30 seconds.

N.B.: This commit does not change the defaults stored in your computer, so if you have the sketcher multiplier on, the advanced solver dialog will still enforce this local setting. You
may disable it or click the "defaults" button to disable the sketcher multiplier.
2015-11-28 13:08:24 +01:00
Eivind Kvedalen
87c6af3547 Spreadsheet: Removed setPosition() function. 2015-11-28 12:56:28 +01:00
Eivind Kvedalen
b7480210fd Spreadsheet: Issue #2301: Handle enter/return and tab keys the same as e.g OpenOffice and Excel. 2015-11-28 12:56:27 +01:00
Eivind Kvedalen
2e5175c7be Spreadsheet: Fixed typo. 2015-11-28 12:56:26 +01:00
Eivind Kvedalen
45a2207f81 Spreadsheet: Improve python code when the Delete key is pressed. 2015-11-28 12:56:25 +01:00
Pablo Gil
8b745b3751 Adds the ViewFitSelection to the main toolbar (improves usability) 2015-11-27 10:59:15 +01:00
wmayer
559194edab + do view fit only on file import if document was empty 2015-11-26 20:24:00 +01:00
wmayer
898e0fb359 + make API of InventorBuilder more flexible and add new methods 2015-11-26 15:27:40 +01:00
Yorik van Havre
e0f3bb00b8 Relocated the WB switcher to its original location 2015-11-26 09:11:39 -02:00
Yorik van Havre
3d6869bf68 Added automatic Ctrl+Number shortcuts for the 10 first woekbenches 2015-11-26 09:11:39 -02:00
Yorik van Havre
7c5e8d58cb Split workbench selector and placed it left 2015-11-26 09:11:39 -02:00
wmayer
b3e0e8272f Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-25 21:02:17 +01:00
wmayer
6a6a2d5669 + fix whitespaces 2015-11-25 21:02:00 +01:00
Abdullah Tahiri
7c1c56a550 Sketcher: Solver Debug functionality: Ability to export a subsystem
===================================================================

It allows to export the c++ code to create a subsystem with the same information as the one solved using LM/DL/BGFS.

In this commit the functionality is disabled (for production).

To enable the functionality uncomment this line in planegcs/Constraints.h:
//#define _GCS_EXTRACT_SOLVER_SUBSYSTEM_

When enabled, upon solving with LM/DL/BGFS, the c++ code to generate the subsystem is added to a subsystem.txt that is created in the FreeCAD
execution directory.

Note that the file is created in append mode, so it will append all normal/redundant solvings until the file is deleted.

The resulting code can be directly pasted into a project similar to:
https://github.com/abdullahtahiriyo/Eigen_LUPiv_Convergence

Such a project only has libeigen as external dependency.
2015-11-25 20:39:04 +01:00
Yorik van Havre
14a771bf05 Arch: small fix in Arch git dialog 2015-11-25 13:17:54 -02:00
Yorik van Havre
a5852dd8f2 Material: Fixed the material editor dialog, thanks to rockn 2015-11-24 22:57:50 -02:00
wmayer
a029d90a98 FEM: Rename Display Modes 2015-11-23 18:17:10 +01:00
Abdullah Tahiri
ad1210f4bb Sketcher: Advanced solver dialog bug fix LM-tau
================================================

Due to a typo the code was setting LM-tau to 1E-80 by default instead of the intended 1E-3.
2015-11-21 22:48:02 +01:00
wmayer
bb1add4739 + Add export macro to Enumeration class 2015-11-21 22:46:42 +01:00
wmayer
2362239edf + Add Python example of embedding FreeCAD 2015-11-20 22:35:26 +01:00
Bernd Hahnebach
8ebf64ac3f FEM: add nodes of quad8, hexa20, penta6, penta15, pyra5, pyra13 to ViewProvider nodes are displayed 2015-11-19 19:01:23 +01:00
Bernd Hahnebach
758f3ec77e FEM: FemMesh VP throw exception instead of assert(0) 2015-11-19 19:01:07 +01:00
Bernd Hahnebach
2f5706262d FEM: add SMESH supported volumes to Python API of FemMesh 2015-11-19 19:00:52 +01:00
wmayer
c8e241c9f3 + PLate surface approximation 2015-11-19 18:52:19 +01:00
wmayer
13e2b24ddf + add Python binding to Plate surface 2015-11-19 15:27:35 +01:00
Przemo Firszt
fe522bc66b FEM, Tests: Fix line end problem in compare_inp_files
Add new function to force unix line ends and use it in compare_inp_files
and compare_stats.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-19 10:26:24 +01:00
DeepSOIC
ed8eab273d API: Update docu strings of methods of BSplineCurve
Mainly exposing argument types and meanings, but also updating a few
descriptions by copy-paste-editing documentation of corresponding
OpenCASCADE.
2015-11-19 02:53:48 +03:00
Przemo Firszt
c9cfc369d6 FEM: Use exisitng mesh property as link to mesh in result objects
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:22:02 +00:00
Przemo Firszt
3788670038 FEM: Tidy up long lines and spacing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:21:27 +00:00
wmayer
3268acf9a2 + set object name to tool buttons with popup menu 2015-11-17 18:39:23 +01:00
wmayer
267f66539a Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-17 12:22:30 +01:00
wmayer
c159a8ddc2 + fix inconsistencies in using DynamicProperty class 2015-11-17 12:22:07 +01:00
wmayer
a839a13b59 + fix build failure with gcc 2015-11-16 23:21:47 +01:00
wmayer
78e9319587 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-16 22:48:00 +01:00
wmayer
1225a7ac06 + support of adding/removing dynamic properties in property editor 2015-11-16 22:47:29 +01:00
Bernd Hahnebach
d37ac54c8e FEM: fix mixed line endings in VP FemMesh 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
49b002beaf FEM: Mesh VP fix FreeCAD crash if not supported face is added to VP 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
eec2b56629 FEM: add some documentation to FemTools 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
01d3b3ecad FEM: substitute some camel style variable names in frdReader 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
d14e79eafa FEM: use proper command to create a Mechanical Anaylsis with all properties 2015-11-16 19:19:01 -02:00
fandaL
36ffb450f1 FEM: frd import mesh 2015-11-16 19:18:11 -02:00
Przemo Firszt
dee8809454 FEM, Tests: Force unix line ends for comparing calculation stats
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-16 19:15:44 -02:00
Yorik van Havre
58b41b9550 Arch: Fixed flipped Space names 2015-11-16 16:11:32 -02:00
wmayer
ba21766096 + property editor handles case when dynamic property is removed 2015-11-16 15:24:36 +01:00
wmayer
4f4d747968 + fix undefined behaviour in determining grid length for planar meshes 2015-11-16 11:59:41 +01:00
Przemo Firszt
629a89218d FEM: Fix Von Mises calculation formula and update FEM test results
Reported-by: fandaL
Fixed-by: fandaL
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:37 +01:00
Przemo Firszt
b0fbd60835 FEM: Use format to avoid error is the message is not pure string
Traceback (most recent call last):
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
229, in test_new_analysis
    ret = self.compare_stats(fea, static_expected_values)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
147, in compare_stats
    fcc_print(sf_content)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
55, in fcc_print
    FreeCAD.Console.PrintMessage(message + '\n')
TypeError: can only concatenate list (not "str") to list

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:36 +01:00
wmayer
7848d08121 + properly handle case of degenerated bounding box when creating mesh grid 2015-11-14 14:08:01 +01:00
wmayer
821cd696c5 + do not set edit mode for spreadsheet 2015-11-14 02:18:29 +01:00
wmayer
53d323b5e0 + make isReadOnly & isHidden of PropertyContainer non-virtual 2015-11-14 02:07:57 +01:00
Eivind Kvedalen
081bc6b107 QuantitySpinBox: Make sure Python code is emitted also when expressions are not used.
In that case, the property should be set directly.
2015-11-13 20:26:13 +01:00
DeepSOIC
61a3997ef2 API: update distToShape built-in docu
It was way too short, and incorrect
2015-11-13 18:13:20 +03:00
wmayer
48027e1586 + fix memory leaks 2015-11-13 16:06:43 +01:00
wmayer
45af17e39c + Code cleanup:
+ do not include header of itself
+ do not include unneeded header files
+ removed unneeded forward declarations
+ do not translate C string to get a QString
+ break too long lines
+ replace tabs with spaces
+ use virtual keyword on destructors
2015-11-13 15:47:03 +01:00
wmayer
bf0d8d68bb + Add selected sketches to one Face, implement specialized view provider for Face 2015-11-13 13:38:24 +01:00
wmayer
6944658bd4 + Add parametric feature to create face from sketches 2015-11-12 19:44:24 +01:00
Bernd Hahnebach
74270c23d2 FEM: allow to make a mesh from shape without an analysis 2015-11-12 13:39:51 +01:00
Bernd Hahnebach
78ac00180f FEM: fromShape not needed modul loading deleted 2015-11-12 13:37:11 +01:00
Przemo Firszt
391cdf816d FEM: Update except catch to python3
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:41:12 +00:00
Przemo Firszt
1e8e0877f3 FEM: Windows workaround to avoid blinking terminal window
Reported-by: wmayer
Tested-by: wamyer, sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:21:21 +00:00
Przemo Firszt
f74e016f30 FEM: Fix unexpected error with ccx_* unset if Popoen fails
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:20:34 +00:00
Przemo Firszt
e90ed4bf65 FEM: Cheange margins in TaskPanelMechanicalAnalysis for Analysis Type
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 21:47:36 +00:00
Mateusz Skowroński
f3860faaef Fix file encoding. Go from ISO8859-1 to UTF-8. 2015-11-11 18:54:42 +01:00
wmayer
4af7d95a6d + support of linear b-spline/bezier curves and planar b-spline/bezier surfaces to get direction 2015-11-11 18:27:26 +01:00
Bernd Hahnebach
e22431ea77 FEM: use ConsolePrints instead off print in beamsection and shellthickness 2015-11-11 09:14:50 +01:00
Bernd Hahnebach
c6989acd55 FEM: use new selection observer class for material reference shape selection 2015-11-11 09:14:50 +01:00
Bernd Hahnebach
ba394818a3 FEM: separate selection observer class from _TaskPanel shellthickness and beamsection 2015-11-11 09:14:49 +01:00
wmayer
dc20525edc + don't switch tab when creating new web page 2015-11-10 17:32:55 +01:00
wmayer
7546a39b12 + Allow to open link in new web view 2015-11-10 16:40:04 +01:00
Eivind Kvedalen
be5e79601a PartDesign: Fixed similar issue compared to #2302 with unit handling when using an expression for the chamfer size. 2015-11-09 21:37:24 +01:00
Eivind Kvedalen
acd0f6a79e PartDesign: Fixed issue #2302 with unit handling when using an expression for the fillet radius. 2015-11-09 21:37:08 +01:00
wmayer
dff58e5df3 + fix documentation of task dialog 2015-11-09 19:22:19 +01:00
wmayer
d3280a0b82 + when trying to close a document then do it even if a task dialog is open 2015-11-09 19:21:56 +01:00
Bernd Hahnebach
9d856fbd7a FEM: use addItem to add list items in shellthickness, beamsection and multimat ref shape list 2015-11-08 13:44:37 +01:00
Bernd Hahnebach
5e234486b2 FEM: rename uis of python task panels to TaskPanelName 2015-11-08 09:32:01 +01:00
Bernd Hahnebach
5e001f3e15 FEM: delet unused import FreeCAD 2015-11-07 20:04:10 +01:00
Bernd Hahnebach
062895c626 FEM: sort modules in CMakefiles 2015-11-07 18:36:28 +01:00
Bernd Hahnebach
c542a88e5e FEM: move CalculiX test files to test_files/ccx directory 2015-11-07 17:23:31 +01:00
Bernd Hahnebach
737fa891f8 FEM: make Init.py flake8 compatiple 2015-11-07 16:41:31 +01:00
Bernd Hahnebach
b1e67a7e0a FEM: use unix linefeeds in Init.py 2015-11-07 16:41:22 +01:00
Bernd Hahnebach
d10d18bd4d FEM: rename ObjectsTaskPanel into TaskPanelObjects 2015-11-07 16:41:11 +01:00
Bernd Hahnebach
7847c6fcac FEM: print console message if a task dialog is open already for beamsection and shellthickness 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
ea6e65f9f8 FEM: add author to material files 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
81cf730791 FEM: unused imports deleted 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
05a20ecc77 FEM: split MechanicalMaterial into separate modules 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
49c12c5e3d FEM: use ConsolePrints instead of prints for MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
746bad9f18 FEM: shape typte test in selection of multiple material reference shapes 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
3ef7d3ce3a FEM: put prints in brackets in MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb690eca62 FEM: multiple materials, support for solids 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
0c55f927f5 FEM: add getNodesBySolid()
Conflicts:
	src/Mod/Fem/App/FemMesh.cpp
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
52ad0bcc9d FEM: selection of Faces and Edges as References for multiple MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb0a48c849 FEM: add Reference selection to Mechanicalmaterial ui 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
8cb6ed7d6a FEM: multiple materials for shell and beam meshes 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
f02ba31d02 FEM: add spaces to FemTools license 2015-11-07 13:24:45 -02:00
wmayer
94a62e015c + allow to set u/v dirs for B-Spline fit 2015-11-06 16:43:58 +01:00
wmayer
9bb0e7f75e + fix build failure on Linux 2015-11-06 14:56:19 +01:00
wmayer
0bb6dc4cf1 + add task dialog to perform B-Spline fit 2015-11-06 14:30:26 +01:00
wmayer
d6bbc0ad0f + add helper classes to store names of doument and object and not a pointer 2015-11-06 14:28:03 +01:00
wmayer
8645d56acf + get initial plane fit from B-Spline fit if required 2015-11-06 00:27:33 +01:00
wmayer
25fd2adb03 + fixes #0002329: remove the 2 now obsolete Pivy versions distributed with FreeCAD source code 2015-11-05 21:26:05 +01:00
wmayer
e8048a4968 + fix build failure with occ 6.9.1 2015-11-05 19:40:34 +01:00
Bernd Hahnebach
39d6d68366 FEM: use super class FemCommands for ShellThickness and BeamSection Commands 2015-11-05 17:31:03 +01:00
Bernd Hahnebach
59bafd51c0 FEM: split FemBeamSection into separate modules 2015-11-05 17:31:02 +01:00