Commit Graph

1502 Commits

Author SHA1 Message Date
Yorik van Havre
81e6454c61 Arch: Fixed regression in layers 2020-03-12 11:33:07 -03:00
danreb25
621c30db50 getColors BUG correction
correction proposed as explained in the forum topic https://forum.freecadweb.org/viewtopic.php?f=3&t=42191
2020-03-12 09:25:05 -03:00
luz.paz
c8cb520887 [skip ci] fix follow-up typos 2020-03-06 14:50:35 +01:00
luz.paz
ebe194a9e9 Fix typos
Found via  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-03-06 14:50:35 +01:00
Yorik van Havre
8933e8ed38 Merged latest translations from crowdin 2020-03-05 11:58:03 -03:00
vocx-fc
549ca9205b Draft: new Draft_OrthoArray command
It replaces the older `Draft_Array` command, and provides
a task panel to select the properties, similar to the
`Draft_PolarArray` and `Draft_CircularArray` commands.

It can also create `App::Links` directly from this task
panel, so it also replaces the `Draft_LinkArray`
introduced by the LinkMerge.
2020-03-03 21:27:31 +01:00
alafr
e122b44351 Arch Component: triple quotes for the docstring 2020-03-02 11:53:46 -03:00
alafr
5b19d068c1 Export Arch Structure as Ifc Brep if not a simple extrusion 2020-03-02 11:53:46 -03:00
alafr
0680ca95e2 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
vocx-fc
adfc58580d Draft, Arch: group the array tools 2020-03-02 11:41:22 -03:00
vocx-fc
69056b51ad Arch: use init_tools to create Draft toolbars 2020-02-12 12:15:45 +01:00
vocx-fc
f1fce69feb Arch: explicitly import modules in the initialization
Also other small fixes: cleanup for getting the icon
of the workbench; translation of some strings;
cleanup of comments, printing functions, and PEP8 style.
2020-02-12 12:15:45 +01:00
paullee0
f77a6949c9 [ArchWall, DraftGeomUtils] fix bug: ArchWall with Offset Attribute set and based on Sketch fails at some cases
DraftGeomUtils.offsetWire() supports ArchWall Offset setting inherently now.

Discussion:
https://forum.freecadweb.org/viewtopic.php?f=23&t=42933
2020-02-10 11:19:47 +01:00
donovaly
24ec114cb8 remove program-specific SVG namespaces
while fixing a SVG export issue for techDraw I noticed that some SVG files have program-dependent (and thus not clean) code in it. These are traces of the programs Sodipodi and Inkscape, like e.g. this line:
inkscape:export-filename="/home/yorik/PartDesign_Groove.png

This is unnecessary and FC should not use program-dependent code in the SVG but use instead plain SVG strictly following the SVG specification.

This PR transforms the few affected SVGs to a plain version.
2020-02-07 07:34:49 -05:00
Bernd Hahnebach
0a3fbfec8c Arch: IFC import, fix regression included with 2bf5d62e 2020-02-06 11:22:24 +01:00
Yorik van Havre
7cdb5afe81 Arch: Fix in material reader 2020-01-31 13:49:31 +01:00
Yorik van Havre
381ccf7fbe Arch: Support for per-face colors in OfflineRenderingUtils 2020-01-29 14:26:38 +01:00
Dion Moult
8ef469a60a Fix sign of long/lats 2020-01-29 09:33:43 +01:00
Dion Moult
24c7ceb309 Import transparent and IFC4 colours 2020-01-28 12:14:10 +01:00
paullee0
7786a28eff [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
b00dcc329e [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
c004b08c14 [ArchWall] Typo 2020-01-22 10:16:54 +01:00
paullee0
41b7b1790b [ArchWall] Use OverridenWidth/Align when ArchSketch getWidths/Aligns() not implemented 2020-01-22 10:16:54 +01:00
paullee0
45ef05746e [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
Bernd Hahnebach
e44fc27505 Arch: import IFC, add commen to True North calculation 2020-01-10 17:01:58 +01:00
hlg
3535cf7a83 [Arch] fix true north handling on IFC import and export 2020-01-10 10:07:08 +01:00
paullee0
72798ac39d [ArchWall] Remove remarks about Werner's earlier commit 2020-01-08 15:22:54 +01:00
paullee0
feaab20f43 [ArchWall] Write back Werner's code in commit cb21045 - check tex.image is not None 2020-01-08 15:22:54 +01:00
paullee0
bcb7f6c871 [ArchWall] - Add per edge Align feature, and other complementary enabling codes
Per Edge Align Feature
- add OverrideAlign attribute to wall
- to know exactly which Sketch edge sorted into final Wires, so as to know each edge's width / align / etc.
  > sort Sketch edges by sorting Sketch.Geometry instead of Sketch.Shape Edge
  > this ensure consistency in sorting result
- pass widths, align, normal info to revised DraftGeomUtils.py and revised routine to get 2 wires from a basewires

Enabling works
- enable base objects to provide width and align per edge information by getWdiths() and getAligns() methods
- this enable base objects e.g. Sketch, DWire (functions being added) to store per edge info e.g. align, widths etc
  (already can do in SketchObjectPython)
2020-01-08 15:22:54 +01:00
vocx-fc
503a2f522e Arch: add missing Arch_CutLine icon 2020-01-08 15:21:16 +01:00
vocx-fc
d32eb1a02b Arch: add missing Arch_CutLine tool from 43c5f27 2020-01-08 15:21:16 +01:00
Bernd Hahnebach
3b2bf60cdf Arch: import IFC, fix possible devision by zero 2020-01-07 16:38:28 +01:00
Yorik van Havre
e6fbf55a0c Arch: Fixed bug in materials merging 2019-12-27 21:32:33 -03:00
luz.paz
8af8689d73 Arch: [skip ci] fix header uniformity
This PR fixes header uniformity across all Arch files
2019-12-26 18:24:06 +01:00
carlopav
4c065fb782 [Arch] Added Draft Edit Command to toolbar 2019-12-26 13:31:06 -03:00
vocx-fc
050b13e10c Arch: division including a float to obtain correct result 2019-12-26 13:22:35 -03:00
Yorik van Havre
458eda2feb Arch: Fixed minor colorbug in IFC export 2019-12-23 17:18:16 -03:00
Yorik van Havre
26a0aa5483 Arch: Added option to export IFC files in imperial units 2019-12-23 12:33:42 -03:00
Bernd Hahnebach
66b853cff8 line endings, better handling in module directory 2019-12-19 22:26:15 +01:00
Bernd Hahnebach
63b8c014c2 Arch: IFC export, add building parts with undefined ifc type to building structure 2019-12-19 09:02:06 +01:00
Bernd Hahnebach
78e3d4c725 Arch: add gitattributes file to let git manage file endings and normalize them 2019-12-19 07:51:09 +01:00
Bernd Hahnebach
1e68bc1684 Arch: export IFC, add missing debug prints 2019-12-18 09:49:29 +01:00
Bernd Hahnebach
6168831571 Arch: export IFC, fix building parts export with ifc type set to Undefined 2019-12-18 09:35:14 +01:00
hlg
ebfe96b013 [Arch] export IFC: assign space to storey as aggregation
According to the standard, entities of type IfcSpatialStructureElement
should not be related to other spatial structure elements through
IfcRelContainedInSpatialStructure but through IfcRelAggregates.
2019-12-17 15:03:21 -03:00
hlg
ff8c64fb03 [Arch] export IFC: last modification date is mandatory even on creation 2019-12-17 15:03:21 -03:00
hlg
7bebdad937 [Arch] IFC export: some points and vectors should be 2D, not 3D
* true north direction
* profile orientation
* grid axis polylines
2019-12-17 15:03:21 -03:00
Yorik van Havre
2c430bfbf1 Arch: Fixed wrong export of objects of undefined IFC type 2019-12-13 12:29:26 -03:00
Yorik van Havre
4542a799b9 Arch: store last double-clicked building part 2019-12-12 17:58:21 -03:00
Yorik van Havre
d3a13122a1 Arch: place buildingparts at WP origin upon creation 2019-12-12 14:15:19 -03:00
Yorik van Havre
ce4ab3eafe Update ArchCutPlane.py 2019-12-09 15:25:22 -03:00