Commit Graph

16899 Commits

Author SHA1 Message Date
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
Dion Moult
38f83e65ba Remove dependency on ifcopenshell at runtime and introduce new IfcVersion config 2019-01-29 21:14:35 +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
Dion Moult
42f678c96d Add json to cmakelists 2019-01-28 10:23:27 +11:00
Dion Moult
cef1d56d6b Add ArchIFC to CMakeLists otherwise nobody will get it 2019-01-28 10:19:07 +11:00
Dion Moult
5fbabbf8e9 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-27 23:21:04 +11:00
Dion Moult
63d16f9e98 Fix a couple of broken properties 2019-01-27 23:16:14 +11: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
Dion Moult
ed081afb48 Migrate IfcAttributes to IfcData for backwards compatibility 2019-01-27 21:14:31 +11:00
Dion Moult
484355f255 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-27 18:31:26 +11: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
Dion Moult
407a7c7256 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-26 22:04:10 +11:00
Dion Moult
7baa6f1648 Implement import and exporting of IFC attributes 2019-01-26 21:58:42 +11:00
Dion Moult
a9f9cfec16 Make importIFC use IfcData instead of IfcAttributes. 2019-01-26 20:47:58 +11:00
Dion Moult
698704425e Now support boolean, floats, and length IFC types instead of just enum 2019-01-26 14:51:57 +11:00
Dion Moult
a186c663c2 Remove hardcoded ifc types and instead load from ifc_types.json 2019-01-26 13:35:56 +11:00
Dion Moult
00dba0008b Update ArchComponent and importIFC to use values from the new ifc_products dictionary 2019-01-26 13:35:17 +11:00
Dion Moult
9fdc516545 Add ifc_types.json which stores all of the ifc types 2019-01-26 13:33:17 +11:00
Dion Moult
eb74f8e6dc Bump IFC products to be a dictionary instead of a list 2019-01-26 13:33:01 +11:00
Dion Moult
374c1cdfa2 Add support for IFC enums, and minor variable name consistency cleanup 2019-01-25 22:48:44 +11:00
Dion Moult
d68a37e891 Add support for storing all IFC attributes as text attributes for now. Data is stored in IfcData as a JSON serialised string. 2019-01-25 22:22:20 +11:00
Dion Moult
857ac3a99d 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-25 22:16:37 +11:00
Dion Moult
665ef676bd Navigate to the json file in an os agnostic manner 2019-01-25 22:11:51 +11:00
triplus
8a44522550 Extend PySide2 wrapper to support QtUiTools
Reports started to emerge as ATM importing QtUiTools doesn't work on Qt5 builds:

https://forum.freecadweb.org/viewtopic.php?f=22&t=32947
https://forum.freecadweb.org/viewtopic.php?f=37&t=33629
2019-01-25 10:37:21 +01:00
wmayer
4a80a74680 fixes #0003788: Part-workbench extrude with taper angle delivers a wrong shape 2019-01-25 02:49:09 +01:00
Stian Skjelstad
0905206018 Detection of NETGEN_VERSION is needed if using Netgen package provided cmake file too.
Do not overwrite NETGEN_VERSION that might be cached. Use a new variable instead, NETGEN_VERSION_C.

Use cmake internal system to specify std=c++14, else you can end up with  `c++ -DFOO -std=c++14 -Ibar -std=c++11`, and the latter is used.
2019-01-24 14:52:21 +01:00
Stian Skjelstad
6e2990ce6d Netgen provided cmake file, has the include directories to use in plural.
Netgen provided cmake file, and the internal detection, had different casing
for the _FOUND variable

When detecting the Netgen include-directories, we only want the /include in
addition to the global one. To include a given header file, specify which
part of the library, or use the one from the project/include directory.
2019-01-24 14:52:03 +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