Commit Graph

164 Commits

Author SHA1 Message Date
alafr
e6f0a0238a Arch: fix BaseMirror property
The code checked for the existance of the property and not if it's value was true. As a result, the structure base was always mirrored, even if the property was set to false. This commit fixes the issue.
2022-03-04 19:53:58 +01:00
Roy
65425b5e30 Arch: Fix translation issues 2022-01-10 10:26:08 +01:00
luz paz
4c754f7af7 Arch: add missing paranthesis to strings
Found while approving translations in crowdin
2021-10-26 22:24:38 +02:00
Yorik van Havre
49c71cb0b3 Merge branch 'master' into alafr-arch-structure 2021-03-26 11:08:01 +01:00
Roy-043
9a444671b7 [Arch] ArchStructure.py wrongly used Part.Line (endless line) to close a wire. 2021-02-17 23:29:01 +01:00
Chris Hennes
8228d64ac4 [ARCH] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
Yorik van Havre
01a7680a72 Arch: Fixed regression in structures 2020-11-26 13:47:55 +01:00
luz paz
67381e9579 Arch: Fix header uniformity and remove trailing whitespace 2020-11-16 14:51:53 +01:00
alafr
f6e0638cab Arch structure : workflow with master sketch
* Add a command that creates multiple Arch Structure objects from a selected base, using each selected edge as an extrusion path. It creates one Arch Structure object from each edge. Therefore, the Arch Structure objects can then be individually edited if needed.
* Split the command Arch Structural System from Arch Structure. For backwards compatibility, the command Arch Structure will run the command Arch Structural System when the requirements for the Arch Structural System (Structure + Axis) are met.
2020-10-31 14:17:01 +01:00
alafr
dba9585d89 Arch Structure: fix extrusion orientation 2020-10-31 14:16:59 +01:00
alafr
66c30313b0 Arch Structure: fix the nodes default placement. 2020-10-31 14:16:58 +01:00
alafr
7938cf498f Arch Structure : use Edges as a Tool, add options
* New widget for Tool selection: this enables the use of some Edges and not only entire Shapes - it makes possible to build Structures from a master Sketch.
* Add option BasePerpendicularToTool : option to create multiple Structures with a single Base (profile), along different Tools (paths). A copy of the profile is created and aligned perpendicular to the path at it start point.
This can already be done with multiple Draft Clones attached using the "NormalToEdge" mode, but this new option will make it more straightforward and with less objects in the document.
* Group properties related to the Tool in a group "Extrusion Path"
* Add a readonly property ComputedLength (it will be needed in BIM schedules)
2020-10-31 14:16:56 +01:00
alafr
c743f3f083 Arch Structure: fix multiple extrusions along path
Fix the exception when trying to copy a wire with FreeCAD.Vector constructor
2020-10-31 14:12:12 +01:00
alafr
ff521b1a53 Arch Structure: Refactor getExtrusionData
- group all `base, placement = self.rebase(baseface)` in one place
- group all normal calculations in one place
- fix placement of tool (bug introduced by my previous PR)
- allow multiple faces when face is created by FaceMaker
- remove unused code: if `len(obj.Base.Shape.Edges) == 1` is true, then there is a Wire and `obj.Base.Shape.Wires` should be also truthy
2020-10-31 14:12:10 +01:00
hlg
a48b74d8a5 [Arch] ignore extrusion direction vector length 2020-07-13 14:39:28 +02:00
Yorik van Havre
9a06fdf223 Arch: Fixed wrong structural node generation 2020-06-09 15:16:34 +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
alafr
ac0268c904 Export Arch Structure as Ifc Brep if not a simple extrusion 2020-03-02 11:53:46 -03:00
alafr
6ae04900b9 Fix use of Sketch as a Base for Arch Structure extruded along a Tool
See: https://forum.freecadweb.org/viewtopic.php?f=23&t=43228

It fixes the following issue:
Allow the use of sketches for Structure which follow a Tool. Currently, sketches are only accepted as structure Base when there is no Tool set. If I select the sketch and press the Structure button, the structure is computed correctly. But when I set the Tool property, the message "Structure has no solid" is reported and the Structure is not updated.
2020-03-02 11:53:46 -03: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
59c15ebbc5 Arch: Adjust height of objects inside groups 2019-10-07 15:33:28 -03:00
Yorik van Havre
3dac114f9f Arch: Solved bug in Structure 2019-08-26 15:39:22 -03:00
Yorik van Havre
46a1d1d254 Arch: Minor fixes to IFC export 2019-08-14 17:56:15 -03:00
Bernd Hahnebach
36d418349e Arch: make new property to use shape color instead of material color working for all Arch objs 2019-08-14 21:41:47 +02:00
Yorik van Havre
a937461d6f Arch: Merge of PR #2259 - Fix ifc project 2019-08-14 16:04:52 -03:00
Yorik van Havre
8fb066841c Arch: Remember values for precast concrete presets 2019-05-15 15:55:21 -03:00
Yorik van Havre
1e426ced86 Arch: Refactor of Structure's Column/Beam modes and fixed rotation issues 2019-05-15 15:08:23 -03:00
Yorik van Havre
60fae525b8 Arch: Fixed wrong structures drawn in beam mode using a metal profile 2019-05-10 22:58:04 -03:00
Yorik van Havre
ab6e30b93a Arch: Fixed translation issues in wall and structure + make use of line task dialog 2019-05-10 22:43:59 -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
f3a44bed80 Arch: Lowered tolerance of planar profiles for Arch structures 2018-12-27 12:29:03 -02:00
Yorik van Havre
ef002fdde2 Arch: Fixed non-unified extrusion direction in multisolid structures 2018-12-05 17:27:12 -02:00
Yorik van Havre
47fd9d335e Arch: Fixed wrong extrusion of multisolid structures 2018-12-05 13:02:48 -02:00
Yorik van Havre
6199c95fd7 Draft/Arch: minor fixes 2018-12-01 18:56:05 -02:00
Yorik van Havre
5217b245b4 Arch: Added pref option to set default MoveWithHost property 2018-12-01 12:23:45 -02:00
Yorik van Havre
79ba082c55 Arch: Fixed IFC export of arch structures with several solids / holes 2018-12-01 12:14:00 -02:00
Yorik van Havre
022653331f Arch: Close base profile of Structures automatically when needed 2018-08-30 17:12:18 -03:00
Yorik van Havre
8272abf5ae Arch: Added edit mode task panel to arch profiles + added American Wide Flange (W) profiles 2018-07-21 22:50:07 -03:00
Yorik van Havre
5f63a7764b Arch: using basic object names for all arch objects 2018-07-07 14:40:10 -03:00
Yorik van Havre
2f6fe25971 Arch: Support of IfcBuildingElement and IfcPropertySets in ifc import/export 2018-07-04 14:49:31 -03:00
Yorik van Havre
1314210a4c Arch: Handle cloning of BuildingParts 2018-06-29 12:12:54 -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
Yorik van Havre
8e017399ab Arch: Added a new 'beam mode' to draw structure objects 2018-05-07 23:21:53 -03:00
Yorik van Havre
514058a023 Arch: Fixed leftover encoding bug (backported to 0.17) 2018-04-17 11:18:23 -03:00