Commit Graph

12175 Commits

Author SHA1 Message Date
Bernd Hahnebach
4ff8995167 Material: editor, white spaces 2019-02-15 19:02:43 +01:00
Bernd Hahnebach
ef79d20bfa Material, mat card writer, do not write empty sections 2019-02-15 19:02:43 +01:00
Bernd Hahnebach
07f7a04d61 Material: card tools, update csv and ods 2019-02-15 19:02:42 +01:00
Bernd Hahnebach
1e631eed1f Material: mat cards, add unit to shear modulus 2019-02-15 19:02:42 +01:00
Bernd Hahnebach
587b0a79ee Material: editor xml prop file, add shear modulus 2019-02-15 19:02:42 +01:00
Bernd Hahnebach
44a1298b80 Material: mat cards, fix a unit in an Aluminium 2019-02-15 19:02:42 +01:00
wmayer
e9434d5023 in selection dialog also offer planar shape binders 2019-02-15 18:45:45 +01:00
Yorik van Havre
60f91fbef2 Draft: Fixed non-GUI issues - Fixes #3826 2019-02-14 22:18:41 -02:00
wandererfan
21353779d9 Fix Dimension Text Color
- Dimension text did not respect Color property setting.
2019-02-14 21:14:11 +01:00
wandererfan
9207e2ef7d Fix Dim text position for some DistanceX
- Dim text position was affected by point selection order
  when distance was no horizontal.
2019-02-14 21:14:11 +01:00
wandererfan
a2bca22fc9 Fix #3800 Connect TD export to FC Gui Export
- TD did not define export types for the general Export
  command in Gui.
2019-02-14 21:14:11 +01:00
wandererfan
4ced49da81 Fix update of children on parent LockPosition change 2019-02-14 21:14:11 +01:00
wandererfan
41ab00c116 Restore secondary ortho view movement to v017 style
- this should also complete the fix for #3809
2019-02-14 21:14:11 +01:00
wandererfan
a0e3ab1a40 Fix #3810 X/Y Property Update on Locked View
- fixes x/y update when position locked for simple
  Views and ProjectionGroups.
2019-02-14 21:14:10 +01:00
Bernd Hahnebach
97614e0341 FEM: in out, add missing new line 2019-02-14 21:11:24 +01:00
Bernd Hahnebach
ce5757e1a6 FEM: material task panel, white space 2019-02-14 21:11:23 +01:00
Bernd Hahnebach
b1efdf9c6a Material: card templates, remove wrong shear modulus name modulus of share and update materials csv and ods 2019-02-14 21:11:23 +01:00
Bernd Hahnebach
ac0fc4d13c Material: mat cards, fix shear modulus name in all cards 2019-02-14 21:11:23 +01:00
Bernd Hahnebach
43ef43c3e2 Material: card templates, fix name of property shear modulus 2019-02-14 21:11:23 +01:00
Bernd Hahnebach
00007327c4 Material: editor, get rid of duplicate unit definition
- in mat editor xml file and in FreeCAD unit system
- remove it from material editor xml file and get it from FreeCAD unit system
2019-02-14 21:11:23 +01:00
Bernd Hahnebach
96a1007eae Material: editor dict file, fix some units 2019-02-14 21:11:22 +01:00
Yorik van Havre
c648b0e874 Material: Provisorily hide preview fields while mat preview is not implemented 2019-02-14 10:49:24 -02:00
wmayer
7d0e06c961 only allow 7-bit ASCII for IGES and STEP header information 2019-02-14 12:05:55 +01:00
wmayer
ad51185280 print additional information to std::cout about ocaf structure 2019-02-13 17:54:54 +01:00
triplus
43b081947f Improved icon themes support 2019-02-13 10:42:46 -02:00
wmayer
9e7c384948 avoid possible errors with null labels 2019-02-13 11:39:25 +01:00
Bernd Hahnebach
7f2ad7fbbf Material: mat card parser, there are two parsers in FreeCAD, make some comments about the existance of each other 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
79b7041336 Material: tools adapt csv and ods 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
8223a5497a Material: cards, fix CardName 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
1f70b27bad Material: card steel generic, fix kg unit 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
33e40b584e Material: mat cards, add some units to all cards where missing 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
3b579190ea Material: card reader and writer, use file card name as CardName property 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
e0be3e474e Material: card reader, fix for values containing a = 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
76d1f0aa8e Material: card writer, some comments 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
0310bf6487 Material: card writer, better attribute classification
- move Density from General to Mechanical
- move Source from Meta to General and call it SourceURL
- add ReferenceSource to General
- move specific price, vendor and ProductURL into group cost
2019-02-12 10:17:50 -02:00
Bernd Hahnebach
3c3d9bca58 Material: card writer, do not handle source as comment in mat card 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
22f59570c8 Material: card writer, move FreeCAD version info behind matcard info, std in original cards 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
b94ebbecc5 Material: Py3, get rid of extra bees on printing 2019-02-12 10:17:50 -02:00
wmayer
fb37201299 fix build failures with newer compiler versions 2019-02-12 13:10:49 +01:00
wmayer
0c3bfc4ff3 fix minor issues 2019-02-12 11:16:52 +01:00
Abdullah Tahiri
4e2ae6f408 Part: Rearrange inheritance not to use ArcPy
============================================

Inheritance:

Geometry
- GeomPoint
- GeomCurve (GeometryCurvePy)
- - GeomBoundedCurve (BoundedCurvePy)
- - - GeomBezierCurve (BezierCurvePy)
- - - GeomBSplineCurve (BSplineCurvePy)
- - - GeomTrimmedCurve (TrimmedCurvePy)
- - - - GeomArcOfConic (ArcOfConicPy)
- - - - - GeomArcOfCircle (ArcOfCirclePy)
- - - - - GeomArcOfEllipse (ArcOfEllipsePy)
- - - - - GeomArcOfHyperbola (ArcOfHyperbolaPy)
- - - - - GeomArcOfParabola (ArcOfParabolaPy)
- - - - GeomLineSegment (LineSegmentPy)
- - GeomConic
- - - GeomCircle
- - - GeomEllipse
- - - GeomHyperbola
- - - GeomParabola
- - GeomLine
- - GeomOffsetCurve

* Note: ArcPy is also a twinclass of c++ GeomTrimmedCurve, Python ArcPy derives from Python TrimmedCurvePy.

Same functionality as before:

>>> geometries = ActiveSketch.Geometry
>>> line = geometries[1]
>>> arc = geometries[2]
>>> line
<Line segment (-97.4389,42.4463,0) (-80.7887,44.5569,0) >
>>> arc
ArcOfCircle (Radius : 19.3111, Position : (-74.6914, -23.2165, 0), Direction : (0, 0, 1), Parameter : (1.82335, 2.71597))
>>> line.FirstParameter
0.0
>>> line.LastParameter
16.783437032695776
>>> line.setParameterRange(0,20)
>>> line.LastParameter
20.0
>>> arc.StartPoint
Vector (-79.51683708894876, -4.517938119394778, 0.0)
>>> arc.EndPoint
Vector (-92.27963885411512, -15.243140671641918, 0.0)
>>> arc.setParameterRange(1.5,3)
>>> arc
ArcOfCircle (Radius : 19.3111, Position : (-74.6914, -23.2165, 0), Direction : (0, 0, 1), Parameter : (1.5, 3))
>>> geometries[1] = line
>>> geometries[2] = arc
>>> ActiveSketch.Geometry = geometries
>>> ActiveSketch.solve()
0
>>>
2019-02-11 19:13:55 +01:00
Abdullah Tahiri
a3b93ee0eb Part: expose geometry clone support to python
=============================================

>>> geometries = ActiveSketch.Geometry
>>> geo0 = geometries[0]
>>> geo0.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1 = geo0.clone()
>>> geo1.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1.Radius = 3
>>> geo0.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo0.Radius
30.157883192724587
>>> geo1.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1.Radius
3.0
2019-02-11 19:13:35 +01:00
Abdullah Tahiri
0ceae9ead4 Part: Enable trimmed curves to set their parameter range, from c++ and Python
=============================================================================

>>> geometries = ActiveSketch.Geometry
>>> geo2 = geometries[2]
>>> geo2
ArcOfCircle (Radius : 27.5267, Position : (-70.4702, -31.8933, 0), Direction : (0, 0, 1), Parameter : (1.34187, 2.35619))
>>> geo2.setParameterRange(1,3)
>>> geometries[2]=geo2
>>> ActiveSketch.Geometry=geometries
2019-02-11 19:13:16 +01:00
Abdullah Tahiri
6dd192eb1e Part: Python Bounded Curve (bring in accordance with c++)
Inheritance correspondence:

Geometry
- GeomPoint
- GeomCurve (GeometryCurvePy)
- - GeomBoundedCurve (BoundedCurvePy)
- - - GeomBezierCurve (BezierCurvePy)
- - - GeomBSplineCurve (BSplineCurvePy)
- - - GeomTrimmedCurve (ArcPy)
- - - - GeomArcOfConic (ArcOfConicPy)
- - - - - GeomArcOfCircle (ArcOfCirclePy)
- - - - - GeomArcOfEllipse (ArcOfEllipsePy)
- - - - - GeomArcOfHyperbola (ArcOfHyperbolaPy)
- - - - - GeomArcOfParabola (ArcOfParabolaPy)
- - - - GeomLineSegment (LineSegmentPy)
- - GeomConic
- - - GeomCircle
- - - GeomEllipse
- - - GeomHyperbola
- - - GeomParabola
- - GeomLine
- - GeomOffsetCurve
2019-02-11 19:12:50 +01:00
wmayer
51b32d75b4 fix regression in German translation 2019-02-11 17:51:36 +01:00
luz.paz
604811596f Crowdin: cont... 2019-02-11 16:22:13 +01:00
luz.paz
112f3de671 Crowdin: Continuing to refine translation strings 2019-02-11 16:22:12 +01:00
wmayer
110f6f74a4 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] 2019-02-11 16:12:50 +01:00
Mateusz Skowroński
082647b2d1 Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński
317bcd59c9 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00