Commit Graph

1690 Commits

Author SHA1 Message Date
SurajDadral
1f15f04b17 Initialize mark and add compatibility for rebar.RebarShape
- Initialize rebar mark with rebar label
- Add compatibility for attribute rebar.RebarShape to work with changes
  done in this PR:
  https://github.com/amrit3701/FreeCAD-Reinforcement/pull/65/commits
2020-09-03 12:20:51 +02:00
Vanuan
0811c61435 Fix non-center aligned wall with multimaterial 2020-08-11 12:21:41 +02:00
vocx-fc
fdbfee279c Arch: clean up message printing during IFC import 2020-08-11 12:10:50 +02:00
vocx-fc
bef440f2b0 Arch: small cleanup of IFC helper module
Remove unnecessary comments; as long as the variables
and functions have a clear name, they are self documenting,
so they don't need additional comments.
2020-08-11 12:10:50 +02:00
vocx-fc
c1476cd96f Arch: small cleanup of IFC importer and exporter
Clarify the import of IfcOpenShell's `geom`.

In some cases it fails importing and initializing the regular way,
`import ifcopenshell.geom`.

But it works in this way
```
from ifcopenshell import geom
geom.settings()
```
2020-08-11 12:10:50 +02:00
luz paz
59e3ea096e Crowdin: Merge new translations [skip-ci] 2020-08-07 17:17:35 +02:00
luz paz
74ab9ccd9c Crowdin - Fix typos found by translators + Random typos [skip-ci]
https://crowdin.com/translate/freecad/6766/en-fr#6582288
2020-07-31 09:05:23 +02:00
vocx-fc
25da304b5a Arch: further small fixes in importIFC 2020-07-30 08:36:49 +02:00
vocx-fc
7dc66ce11b Arch: simple cleanup to the importer, spacing, and PEP8 2020-07-30 08:36:49 +02:00
Bernd Hahnebach
74ffe857dc Arch: export IFC, better default preferences 2020-07-30 08:10:13 +02:00
Bernd Hahnebach
ebaac63777 Arch IFC import, add simplificated method to get pset properties 2020-07-28 06:00:31 +02:00
SurajDadral
75ba0b8a77 Add Mark property to ArchRebar object
As discussed here:
https://forum.freecadweb.org/viewtopic.php?f=23&t=44580&p=418377#p418630
And required for reinforcement drawing/dimensioning.
2020-07-24 13:50:29 +02:00
luz paz
752f84046c Crowdin: Edits based on feedback from translators [skip-ci]
https://crowdin.com/translate/freecad/27911/en-en#6581566  
https://crowdin.com/translate/freecad/6766/en-en#6584432  
https://crowdin.com/translate/freecad/549/en-en#6578092
2020-07-24 13:49:59 +02:00
vocx-fc
3c35504deb Arch: improve import and export IFC preferences pages
Some tooltips are made more readable by adding newlines.

For `IFC import`, better tooltip for the `Number of cores` option;
also the `Replace 'Project'...` option.

For `IFC export`, better tooltip for the `Export type`;
also `IFC file units`.
Also add `General options` in case other options are added.
2020-07-24 13:48:44 +02:00
Yorik van Havre
b06c38a22d Merge branch 'master' of github.com:FreeCAD/FreeCAD 2020-07-23 14:16:47 +02:00
carlopav
1911453aa1 Arch: touch Axis when key property change
This allow experimental wall to auto align to the new axis position.
2020-07-23 13:54:18 +02:00
luz paz
f20ab1765f Fix Crowdin typos + trim superfluous whitespace [skip-ci]
Some issues that this PR fixes (but not all listed):  
https://crowdin.com/translate/freecad/27911/en-en#6581578  
https://crowdin.com/translate/freecad/27911/en-en#6579080  
https://crowdin.com/translate/freecad/27911/en-en#6581580  
https://crowdin.com/translate/freecad/27911/en-en#6579086
2020-07-23 13:52:44 +02:00
Bernd Hahnebach
d30e4a5088 Arch: import ifc, use the new layer make command since the dereciated one does not create layers on import 2020-07-21 15:18:41 +02:00
mikeprice99
a0480dc62c fixed door open plan symbol and make makeWindow use name parameter 2020-07-20 14:26:35 +02:00
paul lee
4e36cde00a [ArchWall] Failed if Sketch as Base has Point, now OK
FC Forum Discussion -
https://forum.freecadweb.org/viewtopic.php?f=23&t=48668&sid=ba6dd68ad32eefbad6ae95d8fadc30e6#p416779
2020-07-20 14:17:28 +02:00
paul lee
07349609da [ArchWall] Fix #0004400 - Archwall creation from certain wire fails.
Forum Discussion - https://forum.freecadweb.org/viewtopic.php?f=23&t=47505
2020-07-16 13:53:11 +02:00
Yorik van Havre
34e1f7ba6c Arch: Small optimizations in OfflineRenderingUtils module 2020-07-15 16:27:51 +02:00
vocx-fc
8e3ae553bb Arch: fix incorrect indentation in the OBJ exporter 2020-07-14 08:27:42 +02:00
Yorik van Havre
a5fe35413a Merge branch 'master' of github.com:FreeCAD/FreeCAD 2020-07-13 14:50:36 +02:00
luz paz
3dfae3ba46 Merged crowdin translations 2020-07-13 14:49:45 +02:00
hlg
a48b74d8a5 [Arch] ignore extrusion direction vector length 2020-07-13 14:39:28 +02:00
Vanuan
074064486c [Arch] [TD] Fix #4392: ArchView invisible objects should be show for Coin* render modes 2020-07-13 14:37:50 +02:00
Vanuan
ba1d2846ea [Arch] [TD] Bug 4392: ArchSection and hidden objects for Render mode 2020-07-13 14:37:50 +02:00
vocx-fc
a5aa9646b0 Arch: update some functions that come from the Draft workbench
In particular `getGroupContents` was renamed to `get_group_contents`
in the Draft workbench, so the function name is updated accordingly.
2020-07-13 14:35:38 +02:00
Yorik van Havre
fbfe821e8c Updated master ts files 2020-07-13 13:20:21 +02:00
Yorik van Havre
451459ce0d Arch: process openings in IFC multicore importer 2020-07-13 13:10:17 +02:00
luz paz
83f34a1e5b Fix Crowdin typos and various other typos/grammar [skip ci]
Found via codespell v2.0.dev0  
```
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-07-12 11:42:27 +02:00
wmayer
64630ad09c Py3: [skip ci] fix export of JSON file in Arch 2020-07-11 14:26:14 +02:00
vocx-fc
6982b52d00 Arch: fix invalid print syntax in Python 2 2020-07-06 12:41:22 +02:00
wmayer
6c15e174d2 Py2: fix compatibility issue 2020-07-05 23:32:43 +02:00
Bernd Hahnebach
9de5f54dae Arch: IFC, fix import break on a IfcAxis2Placement2D 2020-07-03 13:54:26 +02:00
luz.paz
1da81df756 Fix typos [skip-ci]
Found via codespell v1.18.0.dev0  
```
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-06-29 20:52:23 +02:00
Yorik van Havre
742b6d416b Arch: Small code optimizations to the multicore IFC importer 2020-06-25 15:38:31 +02:00
Yorik van Havre
d43588d240 Arch: New multicore IFC importer 2020-06-25 14:42:38 +02:00
vocx-fc
d36c21fd55 Arch: add missing translate function
The code was moved to a separate module, `ArchWindowPresets.py`,
in be0c8eab25, but the `translate` function was not imported
in this new module.
2020-06-24 11:31:26 +02:00
paul lee
8ff45dfb39 [ArchWall] Revert comments in getExtrusionData() 2020-06-24 11:29:07 +02:00
paul lee
81dd47b039 [ArchWall] ArchWall Offset should now works with Base as Sketch 2020-06-24 11:29:07 +02:00
Yorik van Havre
ac6e9f4640 Arch: fixed minor bug in Offline rendering module 2020-06-22 14:12:17 +02:00
vocx-fc
8b8210f290 Arch: fix calculation of fence objects
In the past it used the `Draft.calculatePlacementsOnPath` function
but this function was moved and modified when the `PathArray`
was improved. The `calculatePlacementsOnPath` function
was moved to `draftobjects.patharray`
and renamed `placements_on_path`.

This doesn't completely fix the Fence object because some other
modifications need to be done in the calculation of the paths.
2020-06-22 11:59:58 +02:00
Harald Geyer
2e3f3dd6c2 Arch: importIFC: Allow faster inserts
For huge models just parsing the IFC file in ifcopenshell takes
significant time. When importing via IFC explorer from the BIM
workbench, the file is already open.

This change allows to pass the ifcopenshell.file object instead of a
filename, making the process much more efficient.

Backwards compatible code to use this will be submitted for the BIM
workbench soon. Then we have a workflow, where we can insert items
from big IFC files in multiple rounds quickly.
2020-06-19 12:19:20 +02:00
Yorik van Havre
d804eb6ec3 Arch: Added timing in IFC import 2020-06-16 13:39:21 +02:00
Yorik van Havre
1c7c3b3d9f Arch: Export wall axes to IFC 2020-06-15 17:11:21 +02:00
Harald Geyer
7cbed5235c Arch: importIFCHelper: Fix spurious message 2020-06-15 10:05:30 +02:00
Harald Geyer
7a87f8f887 Arch: Fix placement of Space objects imported from ArchiCAD
Any space objects imported from ArchiCAD (via IFC) are rotated
by 90° around the global z-Axis. When turning the same base
shape into an other Arch object like Wall or Slab, no such error
happens.

Turns out the shape creation in Space objects is handled
differently then in other Arch objects and just copying the usual
method fixes this. I have no idea why this makes a difference.

To document why this change is necessary, a test cases is added.
Upon editing TestArch.py a number of trailing spaces have been
removed accidentally.
2020-06-15 09:58:49 +02:00
Yorik van Havre
be0c8eab25 Arch: Better support for App::Parts in Arch Windows 2020-06-12 14:22:39 +02:00