Commit Graph

189 Commits

Author SHA1 Message Date
Roy-043
57fbbb17cf Arch: Arch_Window fix and improve handling of hosts
Fixes a problem introduced with a previous PR of mine (#7591). Hosts would only be touched if that property of the window was modified. But the hosts of a window should also update if other properties of the window change.

Additionally a width or height change of a window now touches the hosts on the subsequent shape change.
2024-01-08 10:53:20 +01:00
Roy-043
951059d192 Arch: fix Placement multiplication for subvolumes
Fixes #11185.

Same problem as in #6617.
2023-10-31 15:42:46 +01:00
Roy-043
3a396e1ed3 Arch: Updates related to the PlaneGui class (#11153)
Related issue:
#5603.
2023-10-23 18:42:20 +02:00
Roy-043
01632916ea Arch: avoid intersecting solids in windows and doors with openings
With the current code, if you place a simple door and change its Opening property to 50, the door leaf and the frame intersect. This PR fixes that issue.
2023-09-19 21:31:09 +02:00
Roy-043
6e7cecad52 Arch: Implement placement_from_face in ArchWindow.py
Also improve alignment relative to random workingplane if no face has been hovered
2023-08-23 14:31:08 +02:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
luzpaz
1c75bbb48a Arch: lint bad indentation, superfluous formatting (#9310) 2023-04-19 09:40:16 +02:00
luzpaz
bc1f217664 Arch: linting multiple imports on one line (#9281) 2023-04-18 16:23:44 +02:00
Roy-043
ed8705088b Arch: ArchWindow.py improve invertHinge 2023-01-15 21:31:04 +01:00
Roy-043
42a74daa19 Arch: improve context menus (rebase) 2023-01-12 22:54:09 +01:00
Roy-043
b540e734f9 Arch: Improve handling of window hosts 2022-10-10 21:19:54 +02:00
Roy-043
bafe141745 Arch: Housekeeping: import translate from correct file 2022-07-21 10:17:03 +02:00
Yorik van Havre
a175ae63b3 Arch: fixed window for good this time 2022-05-16 13:21:52 +02:00
Yorik van Havre
73d28acd87 Arch: Fixed mistake in last commit 2022-05-16 10:42:09 +02:00
Yorik van Havre
3ec140fac7 Arch: Fixed default component type for new windows 2022-05-16 09:34:14 +02:00
Matthijs Kooijman
f06fc0163e Arch: When inverting hinge position, keep opening direction
Previously, just the hinge position was changed, with the rotation
direction kept unchanged, which would make the door open towards the
other side of the wall. This also inverts the rotation direction, so the
door still opens toward the same side of the wall, which is more
intuitively what you would expect.
2022-03-20 14:46:13 +01:00
Roy-043
5a33bb4d24 Arch: Arch_Window.py: do isdir and isfile check for librarypath 2022-02-11 19:50:11 +01:00
Roy-043
129005d36f Arch: ArchWindow.py fix alignment of library windows
Windows and doors from parts_library were not aligned with or inserted in a wall.
2022-02-02 17:23:12 +01:00
Paul Lee
ea217bc9e9 [ArchWindow] add SketchArch attachment support (2nd attempt)
FreeCAD Forum Discussion :
- on Intuitive Automatic Windows/Doors Placement
- https://forum.freecadweb.org/viewtopic.php?f=23&t=50802
2021-12-10 05:26:21 +08:00
Yorik van Havre
146dcd75a9 Arch: Fixed windows invert hinge option 2021-07-16 12:22:56 +02:00
Łukasz Stelmach
0ae1cda2e9 Arch: Parse window opening modes with more than one digit
Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
2021-04-20 15:02:13 +02:00
Matthijs Kooijman
cc88c21fae Arch: Fix displayed rotation values when adding or editing window components
This ensures the rotation edge and mode GUI elements are cleared when starting
to add or edit a component. Previously, when adding a new component or
editing one without rotation, the GUI elements would retain the value
from the previously edited component, which made it hard to check that
components did not have any rotation, and would make it easy to
accidentally add rotation to components that did not need it (just by
clicking edit and confirming).
2021-03-30 12:40:06 +02:00
Chris Hennes
8228d64ac4 [ARCH] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
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
67381e9579 Arch: Fix header uniformity and remove trailing whitespace 2020-11-16 14:51:53 +01:00
Yorik van Havre
e26a9efae8 Arch: Added Awming window preset 2020-11-10 19:14:06 +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
mikeprice99
a0480dc62c fixed door open plan symbol and make makeWindow use name parameter 2020-07-20 14:26:35 +02:00
Yorik van Havre
be0c8eab25 Arch: Better support for App::Parts in Arch Windows 2020-06-12 14:22:39 +02:00
vocx-fc
94a2226102 Arch: import the os module to find the paths 2020-04-29 11:45:00 +02:00
Yorik van Havre
3eff81df35 Arch: Fixed louvre width/spacing property 2020-04-14 15:49:36 +02:00
Yorik van Havre
bbea2dbb7c Arch: Ability to add windows presets 2020-04-08 18:55:49 +02:00
vocx-fc
58d4596888 Arch: use the new Draft trackers module
Previously it was `DraftTrackers.py`.
Now we import the trackers from `draftguitools/gui_trackers.py`.
2020-03-31 12:09:25 +02:00
paullee0
7a30f0e8ba [ArchWindow] getSubVolume() Bug - When the Window is a Clone, HoleWire in original is ignored
getSubVolume() -

- When Windown is a Clone, HoleWire in Clone is tested
- However, if HoleWire is not set, no further check if HoleWire in Original is set
- The original code direclty check the Base's Wires BoundBox as HoleWire
2020-01-22 10:19:06 +01:00
paullee0
98dfa25def [ArchWindow] getSubVolume() Bug - When HoleDepth is set but the Window is a Clone, no opening is created
getSubVolume() -

- When Windown is a Clone, no base is set
- When HoleDepth is set, no further check if there is a Clone to set its base to Clone's base
- The original code return None when no base is set
2020-01-22 10:19:06 +01:00
paullee0
88405ae71c [ArchWindow] Fix getIcon() problem if base is SketchObjectPython
Similar to ArchWall + SketchObjectPython
in Disscusion : https://forum.freecadweb.org/viewtopic.php?t=26815
2020-01-15 10:08:42 +01:00
luz.paz
8fb5c65736 Arch: [skip ci] fix header uniformity
This PR fixes header uniformity across all Arch files
2019-12-26 18:24:06 +01:00
Zheng, Lei
a3e88a399f Arch: relax Part::Feature type checking
For supporting Link inside Arch.
2019-11-17 13:03:42 -03:00
luz.paz
5c1cae14b9 Arch: use string operator instead of numeric LGTM fix 2019-10-25 10:23:24 -03:00
Yorik van Havre
d6fdaefb68 Arch: Fixed windows symbol position 2019-08-22 18:52:44 -03:00
Zheng, Lei
de66e563e0 Draft/Arch related changes
* Add Draft_LinkArray and Draft_PathLinkArray that uses link for both
  data and visualization, which supports linking external objects

* Add link group support for draft snap

* Fix ArchWindows expression ambiguity
2019-08-17 15:32:47 +02:00
Yorik van Havre
07d3423add Arch: Misc bugfixes 2019-07-05 20:58:44 -03:00
Yorik van Havre
2be258104d Arch: Added door mode to window command 2019-05-15 21:14:00 -03:00
Yorik van Havre
070e4c1252 Arch: Fixed color of windows transparent parts 2019-05-09 12:42:25 -03:00
Yorik van Havre
0493d23d8d Arch: Fixed bug in arch windows creation 2019-05-02 15:43:07 -03:00
Yorik van Havre
d5432fcf2a Arch: fixed error when opening 0.14 files 2019-04-29 12:41:01 -03:00
Yorik van Havre
624e20e9a2 Arch: Renamed property IfcRole to IfcType 2019-04-09 15:53:01 -03:00
Yorik van Havre
7c760259a3 Arch: Wall, structure, window and panel tools now remember and keep last used values 2019-03-28 17:02:54 -03:00
Yorik van Havre
3d52e8a6b9 Arch: Fixed recursion loop in windows 2019-01-08 16:39:11 -02:00
Yorik van Havre
024540dbbe Fixed coverity issues
169009 Bad use of null-like value
169005 Bad use of null-like value
169003 Bad use of null-like value
169000 Bad use of null-like value
168998 Bad use of null-like value
168996 Structurally dead code
2018-11-20 12:37:32 -02:00