Commit Graph

12041 Commits

Author SHA1 Message Date
Dion Moult
d8ca1b3eff Add ArchIFC to CMakeLists otherwise nobody will get it 2019-01-29 21:15:44 +11:00
Dion Moult
36bd51262e Refactor all IFC functions into ArchIFC and preload attributes with expressions
* The import code will manually set 2x3 attributes
 * The import code will rely on "smart" attributes for ifc 4
 * ArchSite and ArchBuildingPart now support IFC
 * IfcSite lat/lon is left alone until I better understand how coords work
2019-01-29 21:15:44 +11:00
Dion Moult
80f33e5dd9 Fix a couple of broken properties 2019-01-29 21:15:44 +11:00
Dion Moult
8f06bb29fa Migrate IfcAttributes to IfcData for backwards compatibility 2019-01-29 21:15:44 +11:00
Dion Moult
240d0a9eb6 Load JSON based on ifcopenshell schema version
This allows us to support more than one ifc version. The 2X3 jsons cannot be autogenerated and have been manually written based on the hardcoded values in the old codebase.
2019-01-29 21:15:43 +11:00
Dion Moult
85ede1c72b Bump ifc_products.json to have uppercase enums
Enums should be uppercase which matches the IFC docs. This also prevents the need to do a upper() when using these values with IfcOpenShell.
2019-01-29 21:15:43 +11:00
Dion Moult
71e5efe074 Implement import and exporting of IFC attributes 2019-01-29 21:15:43 +11:00
Dion Moult
4843a6161a Make importIFC use IfcData instead of IfcAttributes. 2019-01-29 21:15:43 +11:00
Dion Moult
6f50c6e730 Now support boolean, floats, and length IFC types instead of just enum 2019-01-29 21:15:43 +11:00
Dion Moult
445b1e219a Remove hardcoded ifc types and instead load from ifc_types.json 2019-01-29 21:15:43 +11:00
Dion Moult
8c5261a324 Update ArchComponent and importIFC to use values from the new ifc_products dictionary 2019-01-29 21:15:43 +11:00
Dion Moult
2434008c07 Add ifc_types.json which stores all of the ifc types 2019-01-29 21:15:43 +11:00
Dion Moult
479832f2bf Bump IFC products to be a dictionary instead of a list 2019-01-29 21:15:43 +11:00
Dion Moult
dc3b4f63e0 Add support for IFC enums, and minor variable name consistency cleanup 2019-01-29 21:15:43 +11:00
Dion Moult
61a4aa6f03 Add support for storing all IFC attributes as text attributes for now. Data is stored in IfcData as a JSON serialised string. 2019-01-29 21:15:43 +11:00
Dion Moult
57e6430e2f Refactor IfcAttributes to be called IfcData.
* IfcAttributes as a name is misleading, as currently it stores GUID (yes, an attribute), but also stores IFC export settings (i.e. not an IFC "attribute", per say)
 * The previous description of "Custom IFC properties ..." is also misleading, as properties might suggest it stores property sets, which it doesn't (IfcProperties does, currently)
 * IfcData is more generic and allows us to store more data in it in the future
2019-01-29 21:15:43 +11:00
Dion Moult
24336fe290 Navigate to the json file in an os agnostic manner 2019-01-29 21:15:43 +11:00
Dion Moult
e2747e095f Fix incorrect directory for location of json file 2019-01-29 21:15:43 +11:00
Dion Moult
294d9bf353 Load IFC from external JSON file for flexibility 2019-01-29 21:15:43 +11:00
Dion Moult
377f01a2e5 Add extracted list of IFC products 2019-01-29 21:15:43 +11:00
Fredrik Johansson
98d77f8caa Make startpage navigation buttons work initial load 2019-01-27 23:29:25 -02:00
carlopav
34356a683e Update DraftTools.py
Small fix to edit tool when editing arcs.
2019-01-27 23:26:22 -02:00
Fredrik Johansson
5af59315c0 Fix chrash when clicking link to allow internetaccess, and not having a open document 2019-01-27 11:35:43 +01:00
wmayer
41e46cd98a add missing header file 2019-01-27 00:05:23 +01:00
wmayer
ea44db9b57 remove Standard_OVERRIDE which is unknown for older OCCT versions 2019-01-26 23:09:14 +01:00
wmayer
cc1bb80f24 fixes 0003020: 2D offset of circle are not in the right place 2019-01-26 22:52:40 +01:00
wmayer
b5d576f465 improve whitespaces 2019-01-26 22:52:40 +01:00
Yorik van Havre
40034890da Draft: Small fix to Edit tool 2019-01-26 18:47:51 -02:00
wmayer
4a80a74680 fixes #0003788: Part-workbench extrude with taper angle delivers a wrong shape 2019-01-25 02:49:09 +01:00
qingfengxia
9a99bfc622 FEM: constraint fluid boundary, fix bug of the delayed redrawing for BoundaryType changed 2019-01-24 14:19:49 +01:00
luz.paz
e10d38a0cc Crowdin: More grammatical and whitespace fixes 2019-01-24 13:30:03 +01:00
Markus Lampert
b834b369dd Set feed rates to constructs commands for a tags. 2019-01-24 10:13:44 -02:00
Markus Lampert
bd2beb0bf2 Added support for feeds and speeds to to cmdsForEdge. 2019-01-24 10:13:44 -02:00
wmayer
2aee1e8368 fixes 0003771: Memory leak in Part.Face.Surface 2019-01-23 22:38:51 +01:00
Yorik van Havre
86d8372056 Misc translation fixes from https://forum.freecadweb.org/viewtopic.php?p=281670 2019-01-23 18:20:43 -02:00
Yorik van Havre
1115f55184 Draft: Fixed regression in snapping 2019-01-23 13:27:22 -02:00
sliptonic
21e1883602 fixes #3665
Applying patch from jurij
2019-01-22 20:26:59 +01:00
luz.paz
7f081b24fd Fix source typos 2019-01-22 20:26:59 +01:00
luz.paz
c5641feba3 Path: Misc. comment typo and whitespace fixes 2019-01-22 20:26:58 +01:00
Dion Moult
c6537c14a9 Remove abstract IFC entities (as per IFC4 Add2) 2019-01-22 10:19:14 -02:00
wandererfan
af75332295 Fix Compile Warning
- m_sectionFormat is not used yet and provokes a
  warning message.
2019-01-22 10:15:04 -02:00
wandererfan
242717f5e3 Fix out of scope warnings
- Links within TD were not set to Global scope. This caused
  problems when a Page was in a container, but Views were not
  in the container.
2019-01-22 10:15:04 -02:00
Yorik van Havre
bdaa14c073 Arch: Fixed missing UIDs in IFC import 2019-01-22 00:11:49 -02:00
Yorik van Havre
30c251e956 Arch: Fixed multiple documents open bug in Reference object 2019-01-22 00:11:11 -02:00
Yorik van Havre
519120c634 Draft: Small cosmetic fix in edit points 2019-01-22 00:10:31 -02:00
wmayer
23fe2041d9 handle also B-spline and Bezier curves in GeomCurve::closestParameter 2019-01-21 13:47:41 +01:00
wandererfan
79504462d1 Fix movement of Front View in ProjectionGroup 2019-01-21 11:45:30 +01:00
Yorik van Havre
1cbcc7b5a4 Arch: Prevision for forward compatibility 2019-01-20 19:32:12 -02:00
Yorik van Havre
6e4249f677 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2019-01-20 19:31:20 -02:00
Bernd Hahnebach
ebe79a9671 FEM: result and mesh, add compact result and mesh, workaround for issue #2873 2019-01-20 18:40:53 +01:00