Dion Moult
b89907c92c
Add json to cmakelists
2019-01-29 21:15:44 +11:00
Dion Moult
1c4a6e22d7
Add ArchIFC to CMakeLists otherwise nobody will get it
2019-01-29 21:15:44 +11:00
Dion Moult
c85514b2cf
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
3448bb477c
Fix a couple of broken properties
2019-01-29 21:15:44 +11:00
Dion Moult
6e7a0138cd
Migrate IfcAttributes to IfcData for backwards compatibility
2019-01-29 21:15:44 +11:00
Dion Moult
33078844e6
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
69f7789dca
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
2c1fca3e5e
Implement import and exporting of IFC attributes
2019-01-29 21:15:43 +11:00
Dion Moult
6da7f44916
Make importIFC use IfcData instead of IfcAttributes.
2019-01-29 21:15:43 +11:00
Dion Moult
a192e5411f
Now support boolean, floats, and length IFC types instead of just enum
2019-01-29 21:15:43 +11:00
Dion Moult
06ccc04f1c
Remove hardcoded ifc types and instead load from ifc_types.json
2019-01-29 21:15:43 +11:00
Dion Moult
9d3a988cda
Update ArchComponent and importIFC to use values from the new ifc_products dictionary
2019-01-29 21:15:43 +11:00
Dion Moult
f097b3a2bf
Add ifc_types.json which stores all of the ifc types
2019-01-29 21:15:43 +11:00
Dion Moult
84d39e8316
Bump IFC products to be a dictionary instead of a list
2019-01-29 21:15:43 +11:00
Dion Moult
8d04a4882c
Add support for IFC enums, and minor variable name consistency cleanup
2019-01-29 21:15:43 +11:00
Dion Moult
2924dd1779
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
171e713de0
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
7c8fb24338
Navigate to the json file in an os agnostic manner
2019-01-29 21:15:43 +11:00
Dion Moult
b81ab2718a
Fix incorrect directory for location of json file
2019-01-29 21:15:43 +11:00
Dion Moult
7f02b0924c
Load IFC from external JSON file for flexibility
2019-01-29 21:15:43 +11:00
Dion Moult
e2d2e723f9
Add extracted list of IFC products
2019-01-29 21:15:43 +11:00
Fredrik Johansson
93dd00cc39
Make startpage navigation buttons work initial load
2019-01-27 23:29:25 -02:00
carlopav
763b4f3d8c
Update DraftTools.py
...
Small fix to edit tool when editing arcs.
2019-01-27 23:26:22 -02:00
Fredrik Johansson
5caae5f430
Fix chrash when clicking link to allow internetaccess, and not having a open document
2019-01-27 11:35:43 +01:00
wmayer
f2dc59c3ab
add missing header file
2019-01-27 00:05:23 +01:00
wmayer
d2ddce6a2e
remove Standard_OVERRIDE which is unknown for older OCCT versions
2019-01-26 23:09:14 +01:00
wmayer
dbc09e3a23
fixes 0003020: 2D offset of circle are not in the right place
2019-01-26 22:52:40 +01:00
wmayer
9f96254e7e
improve whitespaces
2019-01-26 22:52:40 +01:00
Yorik van Havre
bf24b74629
Draft: Small fix to Edit tool
2019-01-26 18:47:51 -02:00
triplus
051454314b
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
4079c9603f
fixes #0003788 : Part-workbench extrude with taper angle delivers a wrong shape
2019-01-25 02:49:09 +01:00
Stian Skjelstad
80f82b59db
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
4c38d81d90
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
672b15a8da
FEM: constraint fluid boundary, fix bug of the delayed redrawing for BoundaryType changed
2019-01-24 14:19:49 +01:00
luz.paz
2b3ea642da
Crowdin: More grammatical and whitespace fixes
2019-01-24 13:30:03 +01:00
Markus Lampert
28a23c23bc
Set feed rates to constructs commands for a tags.
2019-01-24 10:13:44 -02:00
Markus Lampert
af4026bcd5
Added support for feeds and speeds to to cmdsForEdge.
2019-01-24 10:13:44 -02:00
wmayer
dedaa80762
fixes 0003771: Memory leak in Part.Face.Surface
2019-01-23 22:38:51 +01:00
Yorik van Havre
090fc64284
Misc translation fixes from https://forum.freecadweb.org/viewtopic.php?p=281670
2019-01-23 18:20:43 -02:00
Yorik van Havre
eb08c67a78
Draft: Fixed regression in snapping
2019-01-23 13:27:22 -02:00
sliptonic
96dee91d5e
fixes #3665
...
Applying patch from jurij
2019-01-22 20:26:59 +01:00
luz.paz
16ab8d3c8a
Fix source typos
2019-01-22 20:26:59 +01:00
luz.paz
86078f6bae
Path: Misc. comment typo and whitespace fixes
2019-01-22 20:26:58 +01:00
wmayer
ba14668e1a
add method multVec to MatrixPy class for better consistency
2019-01-22 15:57:10 +01:00
Dion Moult
47a2296c69
Remove abstract IFC entities (as per IFC4 Add2)
2019-01-22 10:19:14 -02:00
wandererfan
d7c22d92dd
Fix Compile Warning
...
- m_sectionFormat is not used yet and provokes a
warning message.
2019-01-22 10:15:04 -02:00
wandererfan
5a26558a9d
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
13bf2c9672
Arch: Fixed missing UIDs in IFC import
2019-01-22 00:11:49 -02:00
Yorik van Havre
3ade7b34af
Arch: Fixed multiple documents open bug in Reference object
2019-01-22 00:11:11 -02:00
Yorik van Havre
ca2e3c2324
Draft: Small cosmetic fix in edit points
2019-01-22 00:10:31 -02:00