Commit Graph

1492 Commits

Author SHA1 Message Date
vocx-fc
b94b404e26 Arch: use init_tools to create Draft toolbars 2020-02-12 12:15:45 +01:00
vocx-fc
5827d16ae3 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
97c40204a4 [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
f2c83ac46b 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
78039eb0de Arch: IFC import, fix regression included with 5da9197b 2020-02-06 11:22:24 +01:00
Yorik van Havre
6c59182d5d Arch: Fix in material reader 2020-01-31 13:49:31 +01:00
Yorik van Havre
e43ec37a9e Arch: Support for per-face colors in OfflineRenderingUtils 2020-01-29 14:26:38 +01:00
Dion Moult
ddc1555f4e Fix sign of long/lats 2020-01-29 09:33:43 +01:00
Dion Moult
5da9197bc5 Import transparent and IFC4 colours 2020-01-28 12:14:10 +01: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
a322effcef [ArchWall] Typo 2020-01-22 10:16:54 +01:00
paullee0
d562b9f01a [ArchWall] Use OverridenWidth/Align when ArchSketch getWidths/Aligns() not implemented 2020-01-22 10:16:54 +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
Bernd Hahnebach
fa6513d7c7 Arch: import IFC, add commen to True North calculation 2020-01-10 17:01:58 +01:00
hlg
feaf9b24dc [Arch] fix true north handling on IFC import and export 2020-01-10 10:07:08 +01:00
paullee0
b9fc008e22 [ArchWall] Remove remarks about Werner's earlier commit 2020-01-08 15:22:54 +01:00
paullee0
1ca234177c [ArchWall] Write back Werner's code in commit 58fdbdc - check tex.image is not None 2020-01-08 15:22:54 +01:00
paullee0
d0ac80e9ef [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
1a15ae6b9a Arch: add missing Arch_CutLine icon 2020-01-08 15:21:16 +01:00
vocx-fc
111822bfee Arch: add missing Arch_CutLine tool from 43c5f27 2020-01-08 15:21:16 +01:00
Bernd Hahnebach
2504247d65 Arch: import IFC, fix possible devision by zero 2020-01-07 16:38:28 +01:00
Yorik van Havre
134f9d4f26 Arch: Fixed bug in materials merging 2019-12-27 21:32:33 -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
carlopav
edca1b4aff [Arch] Added Draft Edit Command to toolbar 2019-12-26 13:31:06 -03:00
vocx-fc
aef11c1f8c Arch: division including a float to obtain correct result 2019-12-26 13:22:35 -03:00
Yorik van Havre
0af2e760a1 Arch: Fixed minor colorbug in IFC export 2019-12-23 17:18:16 -03:00
Yorik van Havre
89a5226b88 Arch: Added option to export IFC files in imperial units 2019-12-23 12:33:42 -03:00
Bernd Hahnebach
7a652357fc line endings, better handling in module directory 2019-12-19 22:26:15 +01:00
Bernd Hahnebach
ba688b05f5 Arch: IFC export, add building parts with undefined ifc type to building structure 2019-12-19 09:02:06 +01:00
Bernd Hahnebach
d98e958166 Arch: add gitattributes file to let git manage file endings and normalize them 2019-12-19 07:51:09 +01:00
Bernd Hahnebach
537620aa32 Arch: export IFC, add missing debug prints 2019-12-18 09:49:29 +01:00
Bernd Hahnebach
2315cc5f78 Arch: export IFC, fix building parts export with ifc type set to Undefined 2019-12-18 09:35:14 +01:00
hlg
fff55c7ae5 [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
4a6d68f35d [Arch] export IFC: last modification date is mandatory even on creation 2019-12-17 15:03:21 -03:00
hlg
8db24f9b63 [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
19127f3f78 Arch: Fixed wrong export of objects of undefined IFC type 2019-12-13 12:29:26 -03:00
Yorik van Havre
2c0daad48f Arch: store last double-clicked building part 2019-12-12 17:58:21 -03:00
Yorik van Havre
5c9b117314 Arch: place buildingparts at WP origin upon creation 2019-12-12 14:15:19 -03:00
Yorik van Havre
46792a91ac Update ArchCutPlane.py 2019-12-09 15:25:22 -03:00
JeromeL63
c957795540 Added Linecut function 2019-12-09 15:25:22 -03:00
luz.paz
e7ee5fe777 Tooltips: added missing tooltips + refined pre-existing
Some pre-existing tooltips needed to be a compound of lines instead of 1 long one.
Removed bold text from tooltip  
Removed URL from tooltip
2019-12-05 17:07:44 +01:00
luz.paz
379d041664 Fix typos and some trailing whitespace
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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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
```
2019-12-03 12:22:59 +01:00
wmayer
58fdbdc4d1 pivy: avoid possible segfault when setting None to an SoSFImage field 2019-11-28 15:44:42 +01:00
Zheng, Lei
a3e88a399f Arch: relax Part::Feature type checking
For supporting Link inside Arch.
2019-11-17 13:03:42 -03:00
hlg
962904a96f [Arch] fix invalid IFC export for annotations
* as reported here https://forum.freecadweb.org/viewtopic.php?f=39&t=40466&p=345286
* wrap IfcAxis2Placement3D in IfcLocalPlacement
2019-11-17 13:01:49 -03:00
vocx-fc
d506192b15 Arch: test for viewprovider before modifying rebar
Test for the existence of the ViewObject
before calculating interval and placement.

This allows running the TestArch from the command line
without error if there is no interface, that is,
```
freecadcmd -t TestArch
```
2019-11-17 12:57:41 -03:00
wmayer
f65a72deb7 fix syntax error 2019-11-16 10:41:05 +01:00
Bernd Hahnebach
d0339c5674 Arch, export IFC, do not export attributes with no values 2019-11-15 16:18:55 +01:00
paullee0
6dcf9ff8f0 [Arch] Test : if Sketch, fuse solid; otherwise, do makeCompound 2019-11-11 17:57:59 -03:00