Commit Graph

61 Commits

Author SHA1 Message Date
Roy-043
649a767f6a Update ArchRoof.py
A relative profile can now be used if it references itself. This fixes a compatibility issue with the V0.18 version of ArchRoof, where the first profile initially always references itself.
2021-01-20 19:17:30 +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
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
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
Yorik van Havre
b03aa051a4 Arch: Fixed error in roof - Fixes #3864 2019-05-07 22:47:15 -03:00
Yorik van Havre
624e20e9a2 Arch: Renamed property IfcRole to IfcType 2019-04-09 15:53:01 -03:00
Yorik van Havre
473c86626d Arch: misc improvements to IFC importer
* Fixed progress bar
* Import can now be aborted by pressing ESC
* No intermediary Extrusion object is created for Walls and Structures
* When a base profile has only linear edges, create a draft wire instead of face
* Fixed placement bug in shared profiles
2018-07-19 17:04:19 -03:00
Yorik van Havre
e49a5af3ae Arch: separate properties creation in own methods and check properties at file load 2018-06-01 19:36:35 -03:00
Yorik van Havre
30476e951d Arch: Renamed Role property to IfcRole 2018-05-11 12:01:55 -03:00
Yorik van Havre
b5ffabace2 Arch: All Arch objects can now have any IFC type(role) 2018-05-10 10:42:06 -03:00
Yorik van Havre
c360263582 Arch/Draft: Make sure an active doc exists before creating objects 2018-05-08 16:07:55 -03:00
luz.paz
6b04f8961e Arch: removing \n from translated strings
ref: https://crowdin.com/translate/freecad/548/en-hu#6501126
2018-02-07 09:42:13 +01:00
Yorik van Havre
7a9e6361e1 Arch Added a Flip property to roofs to fix inverted direction 2017-07-26 13:29:34 -03:00
Yorik van Havre
9a6191f572 Draft: AutoGroup system 2017-01-25 14:55:14 -02:00
Yorik van Havre
8ad2c699f8 py3: open function is in module 'io' in py3 instead of __builtin__ 2017-01-17 09:24:59 +01:00
wmayer
d9b1ce7ca2 remove UnicodeUTF8 2016-12-27 19:31:25 +01:00
Yorik van Havre
af97583026 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
5fa34f519e Arch: Added wave properties to panels 2016-10-14 15:55:09 -03:00
Yorik van Havre
dabccc40b6 Made Arch objects properties translatable - issue #2524 2016-10-07 21:37:15 -03:00
Yorik van Havre
56ff892681 Arch: Removed trailing spaces 2016-09-06 13:05:07 -03:00
Yorik van Havre
8e50c83291 Arch: Added border & ridge length properties to Roofs - fixes #2636 2016-09-06 13:04:23 -03:00
Yorik van Havre
e6dd3488ff removed translation from property descriptions (wrong to do it there anyway) - issue #2524 2016-05-18 16:59:15 -03:00
Jonathan Wiedemann
010121d8c1 Arch Roof : Fix BOPCheck failed
cf http://forum.freecadweb.org/viewtopic.php?f=23&t=14711
2016-03-17 23:24:17 +01:00
Jonathan Wiedemann
d113deab32 Arch Roof : improvement and clean up
change default value
handle shape based object
better getsubvolume method
2016-03-03 10:45:32 +01:00
Jonathan Wiedemann
403ba14f57 Arch Roof : improvement and clean up
change default value
handle shape based object
better getsubvolume method
2016-03-01 09:45:11 +01:00
Jonathan Wiedemann
e37cdf15cf Arch Change default value
Comment some print
2016-02-19 16:20:57 +01:00
Yorik van Havre
23b1ed5c79 Arch: Fixed imports in ArchRoof 2015-09-07 15:10:29 -03:00
Yorik van Havre
91b2506ccc Changed all references to DraftGeomUtils.sortEdges to Part.__sortEdges__ 2015-09-04 11:54:57 -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
Yorik van Havre
67d303ae85 Arch: removed old debug message 2015-02-25 18:44:45 -03:00
Yorik van Havre
627e32aa2c Arch: misc bugfixes in IFC export 2015-02-23 19:34:29 -03:00
Yorik van Havre
40f0927705 Arch: Adapted IFC importer for new IfcOpenShell6
Squashed following commits:
* Arch: Adapted IFC importer for IfcOpenShell6
* Arch: further fixes for ifcopenshell6 compatibility
* Arch: IFC importer now converts to/from  meters for better compatibility with IfcOpenShell
* Arch: further fixes with ifcopenshell6
* Arch: precision adjustments in IFC exporter
* Arch: small fix in makeRoof
2015-02-13 16:41:34 -02:00
Yorik van Havre
9b345d8264 Arch: Corrected some texts 2015-01-23 12:45:11 -02:00
wood-galaxy
1de729d6e9 + fixes #0001923: Fix typo for a string within the Arch wokbench 2015-01-17 11:41:22 +01:00
wood-galaxy
73c342e05c Arch Roof : Improvement on gable case 2015-01-15 10:26:43 -02:00
wood-galaxy
16564430a1 Arch Roof : Add units in column header. 2015-01-15 10:26:43 -02:00
wood galaxy
95c0fe3a84 Arch : Internal object name are in English.
Arch objets Label could be translated.
2015-01-05 13:13:45 -02:00
wood galaxy
6aa91b3622 Ready for merge : fix issues #1618 and #1607
Implement getSubVolume to cut wall with roof.
Now Roof is not hidden when removing it to a wall.
2014-12-08 12:23:01 -02:00
wood galaxy
341782ec54 Implement Overhang 2014-12-08 12:23:01 -02:00
wood galaxy
1876f36611 Fix bug if user enter thickness = 0 2014-12-08 12:23:01 -02:00
wood galaxy
715b5d7fe9 Add a new Arch Roof Builder 2014-12-08 12:23:01 -02:00
Yorik van Havre
46583f2960 Used Gui.addModule() instead of import in Draft & Arch 2014-08-05 19:38:40 -03:00
Yorik van Havre
eea27448e9 Arch: Fixed bugs when working without GUI 2014-07-17 19:58:22 -03:00
Johannes Reinhardt
4a6449d2bd deactivate commands in Arch if no document is open 2014-05-21 17:09:02 +02:00
Yorik van Havre
a63f4c1f2e Used new PropertyQuantity API in Draft & Arch - fixes #1414 2014-02-21 12:37:29 -03:00
Yorik van Havre
69cc7ec901 Arch now works in console mode - fixes #1362 2014-01-26 20:13:50 -02:00
Yorik van Havre
e352e169da Arch: Automatic wall height - fixes #980
+ Walls can now be capped by roofs, by subtracting a roof from them
+ Walls and Structs with height = 0 take height from their parent floor
+ Changing the placement of a floor changes all the placements of its children
2014-01-14 16:16:04 -02:00
Yorik van Havre
19865c252b Fixed translation system in Arch & Draft 2014-01-07 11:17:31 -02:00