Commit Graph

3710 Commits

Author SHA1 Message Date
Przemo Firszt
efcfd10a56 FEM: Remove empty python file added with commit 2818bc4ddf
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:07 +02:00
Przemo Firszt
79caef00cb FEM: Fix typo
Reported-by: dubstar-04
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:06 +02:00
wmayer
56ef3b56ec Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-26 22:17:58 +02:00
wmayer
badfa3ad17 + unit test for PropertyEnumeration 2015-04-26 22:17:32 +02:00
Yorik van Havre
69b213b7e5 Arch: Fixed missing cmake entries in last commit 2015-04-26 17:10:52 -03:00
Yorik van Havre
02f938ebdf First groundwork on Arch Schedule tool 2015-04-26 13:57:36 -03:00
wmayer
baf0dc0524 + fix broken unit test 2015-04-25 21:58:41 +02:00
wmayer
67c4dcdf70 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-24 21:46:19 +02:00
wmayer
2a3edfcd84 + FEM: Add icon to command 2015-04-24 21:45:34 +02:00
Yorik van Havre
c692d6e136 Arch: IFC importer can now recreate extrusions
By enabling the setting in IFC preferences, the IFC
importer can now detect if an input shape is a normal
extrusion, and create the object as a Part::Extrusion.
2015-04-24 16:30:38 -03:00
Yorik van Havre
9967bbe297 Drawing: Symbols can now contain editable texts 2015-04-23 23:13:58 -03:00
wmayer
4db69850fb + FEM: reimplement function to create FEM mesh from shape 2015-04-23 23:36:05 +02:00
wmayer
ec96217335 + FEM: cleanup of unused dialog 2015-04-23 23:11:47 +02:00
Przemo Firszt
7ec585ec18 FEM: Change Start Calculations shortcut to S, C
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:44 +02:00
Przemo Firszt
a4429c9ea8 FEM: Change Show Results shortcut to S, R
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:27 +02:00
Przemo Firszt
6ba642a3cc FEM: Change New Analysis shortcut to N, A
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:06 +02:00
Przemo Firszt
e6d7b7e586 FEM: Change Mechanical Material shortcut to M, M
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:50 +02:00
Przemo Firszt
249c2641e0 FEM: Change order of FEM toolbar items
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:31 +02:00
Przemo Firszt
f3b33f52e6 FEM: Reset min/max/avg to the initial state after user selected None
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:09 +02:00
Przemo Firszt
31a263ed89 FEM: Show displacement/stress nicely formatted and with proper units
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:44 +02:00
Przemo Firszt
bf1ffb612f FEM: Rename min/max to avoid unintentional built-in function overload
min/max are python build-in functions, so we shouldn't use them as variable names

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:26 +02:00
Przemo Firszt
dd3c7f1bfb FEM: Fix white spaces
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:04 +02:00
Przemo Firszt
129cc88b0b FEM: Ignore unicode conversion errors
Solution suggested by shoogen
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:02:42 +02:00
Przemo Firszt
c5850e510a FEM: Cut material name to 80 characters
CalculiX documentation tells that maximum alowed material name length
is 80 characters, so we have to respect that. Also ccx quietly fails if
that limit is not honoured.

Reported-by: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:02:22 +02:00
Przemo Firszt
1e026ac477 Material: Use repr instead of backticks
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:02:02 +02:00
Przemo Firszt
4f36439028 Material: Fix white space errors in Material.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:01:39 +02:00
Przemo Firszt
f96f319986 FEM: Change default behaviour of ConfigParser used for materials
ConfigParser changes option capital letters in keys to small letters.
That commit changes it to generate verbatim keys as read from FCMat
files. Also Section names are no longer used to generate material
dictionary.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:01:18 +02:00
Przemo Firszt
9b2f2b15bc FEM: Change way of handling combobox with FEM results
Identification of selected result item is no longer based
on the item string, but on a separate userData. This method
is language agnostic.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:00:56 +02:00
Przemo Firszt
d548490a2b FEM: Clean white spaces in MechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 16:59:52 +02:00
Przemo Firszt
f482dc2383 FEM: Clean imports in MechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 16:59:30 +02:00
Przemo Firszt
957f723782 FEM: Make sure .inp doesn't contain force values that crash ccx
ccx crashes when a force has too many digits like this:
FemConstraintForce,2,1.5966711853290134e-18
but it's OK with that format:
FemConstraintForce,2,1.5966711853e-18

An example of ccx error:
*ERROR reading *CLOAD. Card image:
FEMCONSTRAINTFORCE,3,1.5966711853290134E-18

This commits adds formatting to make sure the numbers are within ccx
limits.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 16:58:57 +02:00
wmayer
13b8d323b2 + FEM: Improve drag and drop for FEM analysis object 2015-04-23 13:31:14 +02:00
Yorik van Havre
bf32404975 added new set of Drawing templates - fixes #2065 #2043 #2005 2015-04-22 19:01:55 -03:00
wmayer
f460cec308 + FEM: Support drag and drop for analysis object 2015-04-22 23:24:43 +02:00
wmayer
bf2266aee3 + hide input shape after creating fem object, give feedback on wrong selection for nodes set 2015-04-22 22:45:07 +02:00
Bernd Hahnebach
f4f7759bba FEM: CalculiX input file, possibility to write more than one material object 2015-04-22 15:28:37 -03:00
wmayer
02b84611b2 + extend Inventor builder, project curve on mesh 2015-04-22 17:15:49 +02:00
wmayer
197aa0c85c + fix bug in read-only InputField, minor Utf-8 issue in meshing dialog 2015-04-22 14:01:27 +02:00
Yorik van Havre
bab894b775 Arch: Better output of ArchVRM renderer 2015-04-20 18:34:40 -03:00
Yorik van Havre
01480a174a Workaround for issue #1963 - Search for templates in userAppData/Templates folder 2015-04-20 12:45:43 -03:00
wmayer
01768b70e7 + FEM: remove useless error message 2015-04-20 11:35:40 +02:00
wmayer
9dfb87d227 + do not translate units 2015-04-20 10:48:06 +02:00
wmayer
225fce9604 + do not translate units 2015-04-19 23:41:27 +02:00
Yorik van Havre
4d630dbc32 Arch: misc improvements to materials and IFC
* Improved IFC export of curved surfaces
* Better icon for materials group
* Fixes in IFC export of materials
2015-04-19 16:34:36 -03:00
wmayer
f12a26b5fb + remove broken command from FEM workbench 2015-04-18 22:06:55 +02:00
Yorik van Havre
3e82f69ca5 Arch: Enabled materials in IFC import & export 2015-04-17 19:43:54 -03:00
wmayer
017e0f38d1 + fixes #0001998: For 32 px and 48 px the icons with a submenu in toolbars are not display at the good size 2015-04-17 23:16:28 +02:00
Przemo Firszt
943ded5774 FEM: Fix typo in fem_console_message name
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
987dddfc78 FEM: Fix rare crash related to the date of compilation of ccx
Printing FEM console message could fail if ccx was compiled in March
and standard output contained double dotted a.
"You are using an executable made on Mi 4. Mär 19:49:02 CET 2015"

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
4b56d3d406 FEM: Fix typo. Rename MathObject to MaterialObject
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
35c5de0782 FEM: No need to check length, empty list evaluates to False
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
25c18729e1 FEM: Disable "open editor" and "run ccx" buttons.
This commit moves checking prerequisites to function. The function
is called before writing .inp file to make sure all required objects
are included in the analysis. "open editor" and "run ccx" buttons are
if check_prerequisites runs successfully.

Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
2d90d39cc3 FEM: Make sure cursor gets restored if write_calculix_input_file fails
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
d3c7270031 FEM: Fix typos
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
ac5fe442dc FEM: Group all helper functions together
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
b6ea746fa2 FEM: Rename chooseMat to choose_material
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
3066e6b3d0 FEM: Use built-in None material if there was no previous material
Adding material was using by default transient None material that
has no properties assigned. If use accepted that type of material
an attempt to write CalculiX input file was ending up with a crash.
Using built-in None material prevents that situation.

Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
6437beaec1 FEM: Use default True value for material dirs
Defaulting to False was causing problems during migration. The default
checkbox of linked FEM preferences is True, but for the first time users
there was nothing stored in UseBuiltInMaterials, UseMaterialsFromConfigDir
and UseMaterialsFromCustomDir, so the materials were not showing up in
the material ComboBox.

Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
76aa89b536 FEM: Catch ccx errors and print to FEM console in red
Code by wmayer

http://forum.freecadweb.org/viewtopic.php?f=18&t=10514&p=84921#p84901
2015-04-17 10:51:56 +02:00
Przemo Firszt
2acfadfeef FEM: Change way of converting ccx output to unicode
Previous method was prone to UnicodeDecodeError. The try-catch for
UnicodeDecodeError stays in as additional safety net.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
663771f0a4 FEM: Sort materials within each category
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Yorik van Havre
6750127a05 Arch: Added materials support 2015-04-15 22:08:54 -03:00
wmayer
38ca5341a6 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-14 16:34:11 +02:00
wmayer
0c1fb8e4d8 + delay checking for ccx path, handle exceptions 2015-04-14 16:33:44 +02:00
Przemo Firszt
84467808a4 FEM: Use get_material_data in print_mat_data function
get_material_name provides material name in a safe way, so there is
no need to check in General_name exists in material definition

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:46 +02:00
Przemo Firszt
9eb6cf7480 FEM: Clean code to remove space-after-comma flake8 warning
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:45 +02:00
Przemo Firszt
abefd40bb7 FEM: Add Preferences option to hide materials from user defined directory
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:45 +02:00
Przemo Firszt
1d5b4709fe FEM: Add Preferences option to hide materials from .FreeCAD/Materials directory
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:44 +02:00
Przemo Firszt
32a51db481 FEM: Add Preferences option to hide built in materials
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:43 +02:00
Przemo Firszt
956e5f0da0 FEM: Remove self.params
It doesn't make sense to pull preferences in __init__ for later use as
they change dependin on user action.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:43 +02:00
Przemo Firszt
5040266320 FEM: Add message about reverting material after user clicked Cancel button
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:42 +02:00
Przemo Firszt
9205db4b77 FEM: Fix problem with lost values after editing material properties
Now a valid value is stored immediately into object material.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:41 +02:00
Przemo Firszt
75fcae04b9 FEM: Compare material using all properies and handle non-local materials
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:41 +02:00
Przemo Firszt
c091b87459 FEM: Rename comboBox_MaterialsInDir to cb_materials
The combo box no longer stores materials from just one dir, so name
needs to be changed

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:40 +02:00
Przemo Firszt
8113463e1e FEM: Import all materials in init instead of on-demand import
On-demand import is no longer good enough as we have 3 different
material directories and materials may have non-unique names.
A material is now identified by a full file path.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:39 +02:00
Przemo Firszt
343225dcc2 FEM: Show material description below combo box
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:39 +02:00
Przemo Firszt
97f5f76433 FEM: Add function for adding materiales from a directory
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:38 +02:00
Przemo Firszt
7cb4df59f7 FEM: Use chooseMat directly set set initial value for material
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:37 +02:00
Przemo Firszt
9a9f7e64a5 FEM: Add icons to materials
Add icons to distinguish where the material is from. FreeCAD icon for
build-in materials, notmal material icon for materials from user
preferences directory which is "~/.FreeCAD/Materials" on linux or
from an user defined location defined in FEM preferences.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:36 +02:00
Przemo Firszt
f7fd04aa2b FEM: Add option to define custom material directory
That commit also tidies up FEM preferences, so all file
choosers have the same width

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:36 +02:00
Przemo Firszt
0039ea9e72 FEM: Rename dirname to sytem_mat_dir
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:35 +02:00
Przemo Firszt
54ae984650 FEM: Read materials from user settings directory
That commit also adds python function getUserAppDataDir that calls
Application::getUserAppDataDir()

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:34 +02:00
Przemo Firszt
b7bb4346da FEM: Fill default ccx binary location in Preferences
ccx path is filled for linux and windows if it was empty.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:33 +02:00
Przemo Firszt
bf179d9f78 FEM: Add option to define ccx path in Preferences
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:32 +02:00
Sebastian Hoogen
7ddd9d2ce0 check BoundingBox before calling distToShape
to find intersecting edges. issue #2050
2015-04-14 10:12:04 -03:00
wmayer
f6638d49ce + improve abaqus export 2015-04-14 13:33:20 +02:00
wmayer
2dc1890fd2 + fix rendering problems for FEM elements 2015-04-13 22:11:27 +02:00
wmayer
1c79de55ed + workaround for limit of length of file names 2015-04-13 18:23:30 +02:00
wmayer
618192fca5 + fix critical memory leak 2015-04-13 17:24:54 +02:00
wmayer
f53fd0fe90 + allow PNG format with POV-Ray 3.7 on Windows 2015-04-13 11:12:14 +02:00
wmayer
0c0365bb49 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-13 10:33:39 +02:00
wmayer
d9b6007722 + fix wrong template path for Raytracing/Lux project 2015-04-13 10:33:10 +02:00
Yorik van Havre
a7c346606f Material: Fixed bug in cmake file from commit 6685ae0 2015-04-12 19:21:32 -03:00
wmayer
3e1e5974f0 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-12 18:39:27 +02:00
wmayer
8991b9e04b + add Document::sendMsgToFirstView, fix memory leak 2015-04-12 18:39:01 +02:00
Yorik van Havre
6685ae0142 Material: Added prefix to steel material cards 2015-04-12 13:31:49 -03:00
wmayer
52db9a6cff + set shape color when reading STEP with colors 2015-04-12 12:43:21 +02:00
wmayer
2a5659c36b Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-11 22:30:36 +02:00
wmayer
8476bab7dc + fixes #0001963: Only write needed user data in FCSTD file if any. 2015-04-11 22:30:11 +02:00
Yorik van Havre
5c079f8da7 Arch: small fix in IFC explorer 2015-04-11 14:58:33 -03:00
wmayer
9ea9980b2c + fix bad choose of limit 2015-04-11 01:06:03 +02:00
Bernd Hahnebach
56b15fb690 FEM: CalculiX file, boundaries one line for each axis 2015-04-11 00:17:08 +02:00
Bernd Hahnebach
08be917054 FEM: cheange some Comments in CalculiX input file 2015-04-11 00:16:51 +02:00
wmayer
64b83139c7 + fix highlighting of words with numbers 2015-04-10 23:38:29 +02:00
wmayer
b3cbf2b3da + fix Part.__sortEdges__, check for object type in Part.Wire 2015-04-10 18:25:31 +02:00
Yorik van Havre
0c32b1b0ec Draft: make sure normal is consistent for whole path in PathArray 2015-04-10 12:10:28 -03:00
Yorik van Havre
7a096acccd Arch: Objects with same colors are now exported to IFC with same IfcSurfaceStyle 2015-04-09 21:07:44 -03:00
Yorik van Havre
1f47d2cac0 Arch: added DAE importer patch - fixes #2044 2015-04-09 20:17:37 -03:00
wmayer
e18796efc5 + fix crash of ccx, use darker green for ccx output, fix typos 2015-04-09 23:26:06 +02:00
Ian Rees
4024f46677 Expands list of mesh formats for import/export 2015-04-09 22:15:28 +02:00
Sebastian Hoogen
6a6a3d3bd0 use multiFuse in Draft/Array issue #1971 2015-04-09 20:19:13 +02:00
Przemo Firszt
c774316642 FEM: Unify access rights for FEM svg images
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:11 +02:00
Przemo Firszt
9731fc4e4d FEM: Replace hardcoded icon with a normal image file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:11 +02:00
Przemo Firszt
03e5bb55a4 Material: Change PLA material description
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:10 +02:00
Przemo Firszt
6c3e3b740b Material: Use MPa for Young's modulus in material definitions
Scientific notation removed.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:10 +02:00
Przemo Firszt
be1240a977 FEM: Change Young's modulus limit
2000 was way too low and it was causing some unxepected behaviour for
Young's modulud over 2000 kPa

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:09 +02:00
Przemo Firszt
3a7f48c632 FEM: Fix typo
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:08 +02:00
Przemo Firszt
ab2f1c5d1d FEM: Enable displacement related elements on "Show" only
Displacement related elements (factor, slider max and the slider itself)
are now only active when "Show" is selected. Previously they were active
even when "Show" wasn't checked and it was potentially confusing for the
user as nothing was changing when chacnging slider settings.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:08 +02:00
Przemo Firszt
8489a014d1 FEM: replace vertical factor scroll bar with a horizonal one
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:07 +02:00
Przemo Firszt
54bb4e297e FEM: Add "None" and simplify material setting
The "-->choose Material" has been replaced with a not defined material.
That makes setting/retrieving material to/from the object much easier
and allows user to have a "not defined" material. Previously it wasn't
possible to change i.e. form Steel to "not defined".

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:06 +02:00
Przemo Firszt
aec082639f FEM: Clean unused import in MechanicalMaterial.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:06 +02:00
Przemo Firszt
65396bc95b FEM: Comment out not yet used saveMat function 2015-04-09 19:45:05 +02:00
Przemo Firszt
18aad09d0d FEM: Replace spinBox_young_modulus with input_fd_young_modulus
spinBox_young_modulus variable is not Gui::SpinBox, but Gui::InputField

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:05 +02:00
Przemo Firszt
56bf10afef FEM: Replace duplicated code with print_mat_data function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:04 +02:00
Przemo Firszt
8de8b991a5 FEM: Replace deprecated has_key with in
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:04 +02:00
Przemo Firszt
135cfbd80f FEM: Remove unused local variable
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:03 +02:00
Przemo Firszt
157a1d8e77 FEM: Fix spaces around =/+/: and brackets
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:03 +02:00
Przemo Firszt
5a1249dc3b FEM: Fix white space errors
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:02 +02:00
Przemo Firszt
6bfd683dcf FEM: Clean unused imports in MechanicalMaterial.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:02 +02:00
Przemo Firszt
1ff82e48c6 FEM: Fix copyright date
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:01 +02:00
Przemo Firszt
0f9bcc2f84 FEM: Replace deprecated backticks with repr
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:01 +02:00
Przemo Firszt
7b01cd6832 FEM: Replace "!=" with "is not" when comparing to None
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:00 +02:00
Przemo Firszt
7030aa7482 FEM: Fix white space errors
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:00 +02:00
Przemo Firszt
835228ef34 FEM: Fix spaces around =/+/: and brackets
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:59 +02:00
Przemo Firszt
40e8f5b020 FEM: Clean unused imports
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:58 +02:00
Przemo Firszt
3b46c4e94a FEM: Fix copyright date
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:57 +02:00
Przemo Firszt
1af11d9db7 FEM: Rename OutStr to more descriptive fem_console_message
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:57 +02:00
Przemo Firszt
b149ba0288 FEM: Make CalculiX execute error message red
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:56 +02:00
Yorik van Havre
fbbc9e21a9 Draft: Improved behaviour of Clone tool when dealing with Arch objects 2015-04-08 21:00:43 -03:00
Yorik van Havre
892b7ae509 Arch: Misc improvements for IFC workflow
* Added utility to make non-parametric Arch component
* Ability for all Arch components to be a clone of another Arch component of same type
* Modified the Draft Clone tool to produce Arch Clones if applicable
* Fixed Arch Roofs so they can be based on a solid shape like other Arch objects
* Ability to change the Root element to be imported in IFC preferences
* Ability to import IFC files also as compounds, Part shapes or non-parametric Arch objects
* Added an "only" parameter to importIFC.open() to import only a certain object ID.
* Ability to read colors (IfcSurfaceStyle) from IFC objects
2015-04-08 12:34:48 -03:00
wmayer
176f3e6057 + use correct function to get resource directory 2015-04-05 18:30:35 +02:00
wmayer
960be3c809 + fix memory leak in toBiArcs 2015-04-05 17:19:04 +02:00
wmayer
79de781304 + remove leftover 2015-04-05 16:50:58 +02:00
wmayer
1d1e71b52f + integrate biarcs algorithm 2015-04-05 14:10:03 +02:00
wmayer
453eb18abb + start external editor without blocking GUI 2015-04-03 17:55:51 +02:00
Przemo Firszt
d13c279d5a FEM: Add preferences dialog
This patch add FEM preferrences dialog. There is currently only
one option to define if internal or external editor should be used to
open CalculiX input .inp files. Disabling internal editor allows to
define path to external editor.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-03 08:07:28 +02:00
wmayer
b36c34b105 + fixes #0002033: boolean failure, model refine 2015-04-03 07:39:17 +02:00
wmayer
c519989ec0 + apply patch from Debian to fix build failure of KDL with clang 2015-04-01 16:15:29 +02:00
wmayer
bc9b8bcf19 + support .inp file format 2015-04-01 11:09:46 +02:00
wmayer
9ce46db813 + extend ActionFunction and use in mesh view provider 2015-03-31 01:02:16 +02:00
wmayer
90b5d64831 + remove platform check 2015-03-30 16:36:40 +02:00
wmayer
30098b62e3 FEM: improve Abaqus syntax highlighter 2015-03-30 15:28:08 +02:00
wmayer
ff774748cd + FEM: get nodes by vertex 2015-03-30 11:45:35 +02:00
wmayer
f84a150bfd + choose consistent C++ and Python method names
+ fix typos
+fix whitespaces
2015-03-30 10:42:14 +02:00
Bernd Hahnebach
a15ea4ca18 Fem: add Support for loads and supports on edges to CalculiX file 2015-03-30 10:24:38 +02:00
Bernd Hahnebach
e4c2421350 Fem: added Support for more than one Force- and FixedObject in CalculiX file 2015-03-30 10:23:42 +02:00
wmayer
88ef0b58d9 + syntax highlighter for Abaqus, show short filename on tabs 2015-03-28 21:50:01 +01:00
Przemo Firszt
18e4fdf5c2 + FEM: Use existing internal editor for inp files 2015-03-28 19:33:11 +01:00
wmayer
bf7bc3532e Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-03-28 17:40:36 +01:00
DeepSOIC
89d0a7a176 Sketcher: bugfix: disallow opening when geometry types changed 2015-03-28 17:35:10 +01:00
DeepSOIC
3e6eb430fa Sketcher: small asserts cleanup 2015-03-28 17:35:10 +01:00
DeepSOIC
94c26629c0 Sketcher: add checks for null pointers
Made throws on null pointers.
2015-03-28 17:35:10 +01:00
DeepSOIC
5d9b7a4e03 Sketcher: fix repr string for symmetric constr. 2015-03-28 17:19:37 +01:00
Bernd Hahnebach
b4b0ed5c44 Fem: fix: system() is evaluated instead of calling it 2015-03-26 19:38:10 +01:00
blobfish
eba335c615 Part: ModelRefine: catch bspline isEqual exception 2015-03-22 18:43:39 +01:00
wmayer
5ff38ba7d5 + add methods to get GProps from curves and surfaces 2015-03-22 18:39:49 +01:00
wmayer
f87fbe7e2a Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-03-21 19:56:00 +01:00
Sebastian Hoogen
db13fbb7b3 add angularDeflection property to ViewProvider
issue #1868
2015-03-21 19:27:43 +01:00
Yorik van Havre
6a2a20f64b Draft: Fixed children being moved together with section planes 2015-03-21 13:23:23 -03:00
Yorik van Havre
5057f28a49 Drawing: Added SVG pattern generation module 2015-03-21 12:08:05 -03:00
Yorik van Havre
103ee9943d Arch: Added clickable links in IFC explorer 2015-03-21 12:08:05 -03:00
Yorik van Havre
6fb4a7d6f4 Arch: Added more properties needed for green buildings 2015-03-21 12:08:05 -03:00
Yorik van Havre
df074d117e Draft: Fixed arc direction in SVG projections 2015-03-21 12:08:05 -03:00
Yorik van Havre
77f6684dfe Arch: Enabled section filling in Arch drawing views 2015-03-21 12:08:05 -03:00
Yorik van Havre
2afea6c661 Arch: Allow section planes to clip the 3D view 2015-03-21 12:08:05 -03:00
Yorik van Havre
de4fbb94ef Arch: added space types 2015-03-21 12:08:05 -03:00
Yorik van Havre
a6206196f6 Arch: added bimserver and git utilities 2015-03-21 12:08:05 -03:00
Sebastian Hoogen
089174c297 test for default color from preferences in OpenSCAD/Explode command 2015-03-21 13:29:33 +01:00
Sebastian Hoogen
1846087723 improvements in exportDRAWEXE
fix Draft._clone output
export Shape2DViews
export Part::MultiFuse with single boolean operation like done in c2ce8f5eba
make DRAWEXE ouput more readable
* omit unessary parameters of spheres, cylinders, cones and tori
* denormalize the rotation axis in placements
* use the extension .tcl for the output
2015-03-21 13:29:32 +01:00
Sebastian Hoogen
01b491b16e use shape.proximity(s) to test for overlapping faces in CSG import 2015-03-21 13:29:31 +01:00
Sebastian Hoogen
565a875365 add shape.proximity(shape) 2015-03-21 13:29:30 +01:00
Przemo Firszt
a53f6818b4 FEM: Add description to massage about CalculiX binary
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:04:11 +01:00
Przemo Firszt
ec27cbc1c6 FEM: Add printCalculiXstdout function
That non-critical part was quite often silently crashing with
UnicodeDecodeError and as a side effect FreeCAD wasn't loading perfectly
valid CalculiX result file. In long run that function should be replaced
with a write-to-log counterpart and the CalculiX stdout should be shown
to the user only upon request.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:56 +01:00
Przemo Firszt
d693051f14 FEM: Add function to show CalculiX state changes
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:43 +01:00
Przemo Firszt
e0ed154996 FEM: Warn user about not implemented Loads/Supports
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:27 +01:00
Przemo Firszt
0ed9b18367 FEM: Link exisitng calculixError procedure with error signal
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:05 +01:00
Przemo Firszt
47b88e47fb FEM: Add message to indicate end of writing CalculiX input file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:02:52 +01:00
Przemo Firszt
ea640ea104 FEM: fix typos
machanical -> mechanical
Van Mises -> Von Mises

http://en.wikipedia.org/wiki/Von_Mises_yield_criterion

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:02:36 +01:00
Przemo Firszt
41539d672b FEM: Fix cursor error
FEM wb was throwing errors:
X Error: BadCursor (invalid Cursor parameter) 6
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x3
X Error: BadCursor (invalid Cursor parameter) 6
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x3
X Error: BadCursor (invalid Cursor parameter) 6
  Major opcode: 95 (X_FreeCursor)
  Resource id:  0x3

according to this [1] that patch should not make any change for windows
and fixes the problem on linux.

[1] https://bugreports.qt.io/browse/PYSIDE-243

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:02:20 +01:00
Przemo Firszt
91e3d30e5b FEM: Replace fem console prints with a function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-16 18:42:02 +00:00
Przemo Firszt
5ed9e816a0 FEM: Show error if results file is missing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-16 18:42:02 +00:00
Bernd Hahnebach
5b6360684d Fem: units in CalculiX file: mm and N 2015-03-16 07:29:34 +01:00
Yorik van Havre
0f7ef76d56 Draft: added shoogens fix IRW test 2015-03-15 14:42:36 -03:00
wmayer
b007bd19e4 + improve abaqus exporter 2015-03-15 14:53:22 +01:00
wmayer
5d159f5cf3 + fix crash in export to abaqus 2015-03-15 02:08:55 +01:00
DeepSOIC
08f7afb0e4 PartDesign: fix wrong sketch pad (#1854)
Fixes the issue where, when a sketch is cloned, and selected for
padding, the clone gets padded instead of the sketch.
It also allows padding of a sketch that is already used by anything
else, except for PartDesign features.
+ the same fix for PartDesign Revolution.
2015-03-14 14:18:34 +01:00
Bernd Hahnebach
9a6b729694 Fem: typo in thickness property of FemAnalysis class 2015-03-13 10:09:43 -03:00
wood-galaxy
10aa881f72 fix #1991 : display message for dxf library missing
at the import of importDXF and open, insert and export functions.
Also the message allow user to enabled FreeCAD to download the library.
2015-03-12 15:22:47 -03:00
wmayer
0063b80937 + fixes #0002001: Crash inserting Raytracing Template when in Image View 2015-03-12 12:45:37 +01:00
wmayer
bafe8d4b14 + set Const attribute to some methods of FemMesh 2015-03-12 10:42:23 +01:00
Sebastian Hoogen
850ca3ac54 trivial bugfix in Draft DXF export
wrong namespace for Part.OCCError
2015-03-11 21:35:30 +01:00
wmayer
9ba57683d5 + method to get Eigensystem of mesh data 2015-03-10 22:47:46 +01:00
wmayer
cc7c1d1f44 + fix assert failure in FemMesh 2015-03-10 12:44:22 +01:00
Yorik van Havre
0009e58291 Merged crowdin translations 2015-03-07 15:17:58 -03:00
Bernd Hahnebach
89a6e67e35 Fem: ContraintForce: units are no longer printed on widget 2015-03-06 17:03:35 +01:00
Bernd Hahnebach
4a8e1a58b0 Fem: Fix in CalculiX file if not supported shapes are used for constraints 2015-03-06 17:03:22 +01:00
Bernd Hahnebach
baba11610a FEM: add comments to CalculiX input file 2015-03-05 22:31:04 +01:00
Eivind Kvedalen
3743008cda - Self-reference bug
- Refactoring/clean-up of code
- Dependency tracking of aliased cells
- Various resolution errors
- Rewriting of ranges when columns/rows are inserted/removed
- References to aliases keep their units.
2015-03-04 22:18:20 +01:00
Yorik van Havre
21211aeff2 Draft: Fixed translation of snap bar 2015-02-28 16:45:04 -03:00
Stefan Tröger
d5ee7a6efe implement correct vertex normals
- use mesh vertices uv value to get correct normals from face
- remove unused normal and shading options for parts
2015-02-28 15:09:38 +01:00
wmayer
d29d62b4ab + fix linker error with MSVC 2012 2015-02-28 12:42:27 +01:00
wmayer
bebca4e54c Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-02-27 23:28:04 +01:00
wmayer
b24f25d874 + in Fem constraint force dialog handle empty Direction 2015-02-27 23:27:08 +01:00
Yorik van Havre
8d8eba6dac Updated ts files from source 2015-02-27 18:56:51 -03:00
Yorik van Havre
8d98921dd7 Updated translations from crowdin 2015-02-27 18:46:03 -03:00
Yorik van Havre
9e67696fd5 Material: Added missing units 2015-02-27 13:31:13 -03:00
wmayer
2a4d29d0ac + use undo/redo for Fem constraint force dialog 2015-02-27 11:21:05 +01:00
Bernd Hahnebach
d44d0fbda3 Fem Workaround for choosing material data 2015-02-26 23:26:11 +01:00
Bernd Hahnebach
fb908f6f82 make main material cards to work correctly with FemWB 2015-02-26 21:25:59 +01:00
Bernd Hahnebach
b42ea802b5 Fem make CalculiX Inputfile editable befor run CalculiX 2015-02-26 09:56:58 -03:00
Bernd Hahnebach
d5d6b08980 Standard CalculiX Material added 2015-02-26 09:56:58 -03:00
Sebastian Hoogen
75ced60a58 + fixes #0001966: edges in Shape2DView extend beyond endpoint 2015-02-25 18:45:40 -03:00
Yorik van Havre
67d303ae85 Arch: removed old debug message 2015-02-25 18:44:45 -03:00
wmayer
f69b38dcde + fix doc string of Part.makeLoft 2015-02-25 21:36:40 +01:00
Sebastian Hoogen
ed80eb6c35 enter rubberband after moved by dragIgnoredDistance
issue #1149
2015-02-24 23:51:11 +01:00
Bernd Hahnebach
a6dd8870ab Fix Fem Find Calculix binary (if installed) on Linux 2015-02-24 17:12:50 +01:00
Bernd Hahnebach
38eaf76dea Fix Fem DirectionVector of the ForceObject 2015-02-24 17:12:34 +01:00
Bernd Hahnebach
08a5a89847 Fix Fem we do not have initial stresses 2015-02-24 17:12:14 +01:00
Sebastian Hoogen
a77106a58f adapt importCSG to makeFace property and change in importDXF
in commit 06a689eff2
2015-02-24 16:36:25 +01:00
Yorik van Havre
627e32aa2c Arch: misc bugfixes in IFC export 2015-02-23 19:34:29 -03:00
wmayer
007f939731 + check for correct OCC version 2015-02-23 16:05:17 +01:00
Yorik van Havre
2fdb1aeeff Draft: do not show Draft Tray toolbar when importing only the Draft module 2015-02-22 21:29:34 -03:00
wmayer
b5b54c59f1 + fix for OCC 6.3 2015-02-22 18:41:18 +01:00
wmayer
153e988237 + make argument of multiFuse const reference 2015-02-21 12:48:12 +01:00
Sebastian Hoogen
c2ce8f5eba add TopoShape::multiFuse method
to fuse multiple shapes at once.
2015-02-21 12:35:21 +01:00
Sebastian Hoogen
acfafc0b2b Use multiple tool shapes for MultiFuse Feature
issue #1971
2015-02-21 12:35:20 +01:00
wmayer
312f63e43e + edit command for meshes to display components 2015-02-20 22:28:37 +01:00
wmayer
18f1cf7821 + fix issue with bad default value of natural direction 2015-02-20 14:40:03 +01:00
wmayer
22b63a7653 + fix ambiguous shortcuts 2015-02-18 13:07:42 +01:00
DeepSOIC
aeabffeed8 Sketcher: bugfix in updating constraints after external geometry delete 2015-02-17 12:27:32 +01:00
DeepSOIC
13406a4daf Sketch:Validation: swap endpoints for reversed + constraint orientation locking controls
Added buttons to port sketches to CCW-emulation Sketcher.

Bonus =) : Added constraint orientation lock/unlock buttons (affects
point-wise modes of tangent and perpendicular constraints so far)
2015-02-17 12:27:32 +01:00
DeepSOIC
0767cd35f8 Sketcher: fix reversed geometry and rotated arcs
Fixes a bug where an arc, ellipse, or arc-of-ellipse, being reversed in
XY plane, behaved badly in sketcher (see forum thread "Sketch: how to
handle reversed external arcs?"
http://forum.freecadweb.org/viewtopic.php?f=10&t=9130 ).
Also fixes a problem with rotated arcs (see forum thread "Rotating Arc
in Sketcher"
http://forum.freecadweb.org/viewtopic.php?f=22&t=9145#p74262 ).

This is done by adding an emulation flag to a few methods in
Part::GeomXXX, which makes the shape to pretend being non-reversed
(CCW). This causes endpoints of reversed arcs of circles lineked as
external geometry to swap, causing broken sketches sometimes.
2015-02-17 12:27:31 +01:00
Abdullah Tahiri
0b081876e5 Ellipse: External geometry rotated fix
This commit solves the problem that a ellipse appears rotated when added as external geometry, if the face having the
elliptical shape has a direction vector in the -z axis.

This solves the problem. However, the issue with CW and CCW shapes in the sketcher shall be further investigated in order
to arrive to a general acceptable solution.
2015-02-17 12:27:31 +01:00
Eivind Kvedalen
c3af4232a4 Spreadsheet: getProperty does not return 0 when property is not found, but throws an exception. Handle this instead. 2015-02-17 11:47:56 +01:00
Eivind Kvedalen
4ab13b9fea Spreadsheet: Remove empty set from documentObjectToCellMap. 2015-02-17 11:47:11 +01:00
Eivind Kvedalen
43e777c7e5 Spreadsheet: docDeps property was not properly maintained, resulting in spurious links to other objects. 2015-02-17 11:46:12 +01:00
Eivind Kvedalen
2621c22409 Spreadsheet: Don't return error message when custom attribute is not found. 2015-02-17 11:45:30 +01:00
Eivind Kvedalen
1b43ca109b Spreadsheet: Consistently use App::Document::Label as reference for document names when tracking dependencies. 2015-02-17 11:44:55 +01:00
Eivind Kvedalen
1f94a15869 Fixed crash when setting/resetting bold/italic/underline on empty cells. 2015-02-17 11:44:21 +01:00
Yorik van Havre
423e700e8a Arch: fixed support of 2D entities in IFC importer 2015-02-16 12:20:29 -02:00