Commit Graph

1697 Commits

Author SHA1 Message Date
Abdullah Tahiri
2386df93aa Arch: Make ArchWall use Sketcher GeometryFacade 2020-12-13 15:36:59 +01:00
Yorik van Havre
d03262cc41 Arch: Fixed typo (Awming->Awning) 2020-12-09 11:54:35 +01:00
Yorik van Havre
afa829fd07 Merge pull request #4076 from amrit3701/bug/importing_IFC_in_CLI_linked_with_FreeCADGui_module
[Arch] Fixed bug: Importing IFC in Console raises error because it linked with FreeCADGui module.
2020-12-01 16:00:51 +01:00
Yorik van Havre
c3b0af2d8d Arch: Added .ifcjson export type 2020-11-27 13:09:34 +01:00
Yorik van Havre
01a7680a72 Arch: Fixed regression in structures 2020-11-26 13:47:55 +01:00
Amritpal Singh
4ddade87dd Removed multiple import of FreeCADGui in rebuildArchShape. 2020-11-24 15:16:43 +05:30
Amritpal Singh
517f14b90e Fixed bug: Importing IFC in Console raises error because it linked with FreeeCADGui module. 2020-11-23 18:19:20 +05:30
Yorik van Havre
11c7c4d303 Arch: Windows: Added 'invert opening' and 'invert hinge' context menu items + task panel buttons 2020-11-19 13:13:38 +01:00
luz paz
1917ef7368 Arch: Added licence blurbs with attributions to authors
[skip ci]
2020-11-16 14:51:53 +01:00
luz paz
67381e9579 Arch: Fix header uniformity and remove trailing whitespace 2020-11-16 14:51:53 +01:00
Roy-043
b99102f2ac Update ArchRoof.py
The processSubShapes function was wrongly called without providing the placement argument.
2020-11-15 12:02:02 +01:00
Yorik van Havre
e26a9efae8 Arch: Added Awming window preset 2020-11-10 19:14:06 +01:00
Yorik van Havre
e76c857036 Merged crowdin translations 2020-11-10 14:58:06 +01:00
Yorik van Havre
f76eeddfcb Updated ts files 2020-11-10 14:47:48 +01:00
Yorik van Havre
cd8af3656a Arch: Added Text settings to SectionPlanes 2020-10-29 18:28:35 +01:00
Yorik van Havre
7c9e0f3a99 Merged crowdin translations 2020-10-28 12:04:37 +01:00
Yorik van Havre
5eafaa37fd Updated ts files 2020-10-28 10:46:51 +01:00
Yorik van Havre
0f875168b6 Material: Mateiral editor UI fixes
- Fixed color buttons
- Introduced "Section Color" property
- Fixed named properties
- Added preview icons
- Remember UI dimensions and expanded states
2020-10-27 19:16:58 +01:00
vocx-fc
587475fc8a Arch: use new name of the icon Part_3D_object
It is defined in the Part Workbench. Before, it was called `Tree_Part`.
2020-10-22 15:11:45 +02:00
Yorik van Havre
0d511d0551 Arch: Added SectionColor property to Arch Materials 2020-10-20 14:43:33 +02:00
Yorik van Havre
87eae7c58c Arch: Enabled ellipse-based walls - fixes #3859 2020-10-20 13:13:54 +02:00
Yorik van Havre
27053d90b0 Arch: Fixed backwards compatibility issues 2020-10-16 12:40:09 +02:00
Yorik van Havre
2682700850 Arch: Made default door/windows openable 2020-10-15 12:55:27 +02:00
Yorik van Havre
dd51cbccb2 Arch: Fixed translation of wall (better version) 2020-10-12 15:58:41 +02:00
Yorik van Havre
a0114ac41a Arch: Fixed translation of wall 2020-10-12 15:57:15 +02:00
luz paz
da7f105ef1 Arch: fix typo in ArchBuildingPart.py [skip-ci]
Found by user PMac in https://forum.freecadweb.org/viewtopic.php?f=3&t=51049
2020-10-12 11:51:13 +02:00
vocx-fc
f799717f4d Arch: consider DraftText objects in the section plane for compatibility
After the reorganization of the Draft Workbench,
the `'DraftText'` objects are now of Proxy.Type `'Text'`.
In the `DraftAnnotation` class the `__setstate__` method
was defined to automatically migrate the Type.

The `Arch SectionPlane` only handles `'Text'` objects. If for
some reason there is still an old `'DraftText'` object
which has not been migrated to the new Type, it won't be found.
This is corrected by adding `'DraftText'` to the list of objects
to process.
2020-10-12 11:43:37 +02:00
Roy-043
611bcdd4c4 Arch: 4 additional tests for ArchRoof (bug fix)
ArchRoof bug fix:
* Removed unnecessary use of FreeCAD.Vector. Renamed some functions and variables for clarity (in this description the new names are used). Reformatted the code. Moved imports to the top of the file. Updated the tooltips. Tweaked the title text "Parameters ...".
* Fixed the length of list properties bug.
* Flip direction did not work properly. The adopted solution is to reverse the edges the roof is based on.
* Added support for consecutive parallel edges.
* Added support for zero angle roof segments.
* The code now handles zero length runs without throwing an error.
* To handle triangular roofs with a zero length eave, "eave" (egde) has been turned into "eavePtLst" (list of points).
* The ridges of opposite parallel roof segments (if they do not use a relative profile) are recalculated if the sum of their runs is larger than the distance between their edges. The old version of the command would do this only if segments connected to gables and only properly if the corners between the edges of the segments and the gable were 90 degrees.
* Revised backGable and nextGable. They now call helperGable.
* Revised the 6 other back/next functions. They now call helperSloped. This also fixes several cases where cookie-cutter outlines (profilCurr["points"]) were wrong. In nextHigher, backHigher, nextLower and backLower a point was wrongly projected on the X-axis. In nextHigher the point on the higher ridge was wrongly included.
* Improved the cookie-cutter outlines for roof segments with lower overhangs and higher ridges in corners.
* Data from a relative profile is no longer used if it in turn references a relative profile.
* Changed the default idrel to -1 and changed calcMissingData to not process this value. This avoids confusion for users who are unaware of the relative profile feature.
* Introduced find_inters as a workaround for DraftGeomUtils.findIntersection. The latter finds intersections for parallel lines that share a point. Find_inters uses a modified version of getLineIntersections from DraftGeomUtils.findIntersection.
* Calling DraftVecUtils.removeDoubles later in the program flow as it does not compares the first and the last vector.
* Avoided the QTreeWidget scrolling to the top on every change, by not clearing it but updating existing items instead.
* Added self.tree.setRootIsDecorated(False). This gets rid of the 1st column's extra left margin. Removed item.setTextAlignment(0,QtCore.Qt.AlignLeft) as this did not work.
2020-10-12 11:43:04 +02:00
Roy-043
aff5da530e Arch: ArchRoof bug fix
* Removed unnecessary use of FreeCAD.Vector. Renamed some functions and variables for clarity (in this description the new names are used). Reformatted the code. Moved imports to the top of the file. Updated the tooltips. Tweaked the title text "Parameters ...".
* Fixed the length of list properties bug.
* Flip direction did not work properly. The adopted solution is to reverse the edges the roof is based on.
* Added support for consecutive parallel edges.
* Added support for zero angle roof segments.
* The code now handles zero length runs without throwing an error.
* To handle triangular roofs with a zero length eave, "eave" (egde) has been turned into "eavePtLst" (list of points).
* The ridges of opposite parallel roof segments (if they do not use a relative profile) are recalculated if the sum of their runs is larger than the distance between their edges. The old version of the command would do this only if segments connected to gables and only properly if the corners between the edges of the segments and the gable were 90 degrees.
* Revised backGable and nextGable. They now call helperGable.
* Revised the 6 other back/next functions. They now call helperSloped. This also fixes several cases where cookie-cutter outlines (profilCurr["points"]) were wrong. In nextHigher, backHigher, nextLower and backLower a point was wrongly projected on the X-axis. In nextHigher the point on the higher ridge was wrongly included.
* Improved the cookie-cutter outlines for roof segments with lower overhangs and higher ridges in corners.
* Data from a relative profile is no longer used if it in turn references a relative profile.
* Changed the default idrel to -1 and changed calcMissingData to not process this value. This avoids confusion for users who are unaware of the relative profile feature.
* Introduced find_inters as a workaround for DraftGeomUtils.findIntersection. The latter finds intersections for parallel lines that share a point. Find_inters uses a modified version of getLineIntersections from DraftGeomUtils.findIntersection.
* Calling DraftVecUtils.removeDoubles later in the program flow as it does not compares the first and the last vector.
* Avoided the QTreeWidget scrolling to the top on every change, by not clearing it but updating existing items instead.
* Added self.tree.setRootIsDecorated(False). This gets rid of the 1st column's extra left margin. Removed item.setTextAlignment(0,QtCore.Qt.AlignLeft) as this did not work.
2020-10-12 11:43:04 +02:00
Bernd Hahnebach
566d32177a Arch: import IFC, support multiple styles in styled items in IFC4 2020-10-06 19:27:54 +02:00
Bernd Hahnebach
3b6e0a9342 Arch: import ifc, small fix in colors 2020-10-06 19:10:52 +02:00
Bernd Hahnebach
4c057c95bf Arch: import ifc, colors in IFC4 print warning not implemented 2020-10-06 19:08:48 +02:00
Bernd Hahnebach
6d7ed787b2 Arch: import ifc, fix typo in material colors 2020-10-06 17:20:32 +02:00
Bernd Hahnebach
8292664f49 Arch: import ifc, fix import break if colors dictionary contains None values 2020-10-06 17:16:42 +02:00
Bernd Hahnebach
d45e143f17 Arch: ifc import, typo in var name 2020-10-06 10:53:56 +02:00
Yorik van Havre
5876a5287b Arch: Added .tsv export format to Arch schedule 2020-10-01 14:59:55 +02:00
Yorik van Havre
a01d045498 Arch: Fixed group support in IFC export 2020-10-01 10:30:26 +02:00
Yorik van Havre
69fa329223 Arch: Added 'Show Label' view property to section planes 2020-10-01 10:30:09 +02:00
Yorik van Havre
3247414686 Arch: Fixed custom csv bug in ArchProfile 2020-10-01 10:29:33 +02:00
Yorik van Havre
089ed768cc Merged crowdin translations 2020-09-30 14:37:02 +02:00
Yorik van Havre
2a92a7b5a7 Updated ts files 2020-09-30 13:06:53 +02:00
Bernd Hahnebach
82a2c1b753 Arch: ifc export, workaround for draft array export and some small improvements 2020-09-24 17:50:42 +02:00
Yorik van Havre
35d5c5dc4c Arch: allow exporting of objects with no solid or shell to IFC 2020-09-22 13:31:04 +02:00
Roy-043
f04849446a Arch: Minor improvements to testWallMultiMatAlign unit test. 2020-09-16 13:08:45 +02:00
Roy-043
1e4593aac0 Arch: Arch_Wall fix MultiMaterial alignment bug (unit test)
Added the testWallMultiMatAlign unit test. Have kept the testWall test. Changed the code to 'import FreeCAD as App'.
2020-09-16 13:08:45 +02:00
Roy-043
8ef5e8e333 Arch: Arch_Wall fix MultiMaterial alignment bug. 2020-09-16 13:08:45 +02:00
Yorik van Havre
e2071de5bc Arch: small bugfixes in multicore IFC importer 2020-09-10 13:43:02 +02:00
Yorik van Havre
b82716ca51 Arch: Better support for colors in multicore IFC importer 2020-09-09 14:36:20 +02:00
Yorik van Havre
c925194cf5 Merge branch 'master' of github.com:FreeCAD/FreeCAD into master 2020-09-09 14:26:11 +02:00
Vanuan
61f7347235 [Arch/TechDraw] Clean up _ArchDrawingView: remove getDXF
Properties and method were removed in 54a8e856cc
2020-09-09 14:18:23 +02:00