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
Yorik van Havre
86d8372056
Misc translation fixes from https://forum.freecadweb.org/viewtopic.php?p=281670
2019-01-23 18:20:43 -02:00
Dion Moult
c6537c14a9
Remove abstract IFC entities (as per IFC4 Add2)
2019-01-22 10:19:14 -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
1cbcc7b5a4
Arch: Prevision for forward compatibility
2019-01-20 19:32:12 -02:00
Yorik van Havre
b31902a8b6
Arch: Updated IFC property sets definitions
2019-01-20 15:30:54 -02:00
Yorik van Havre
23cf81cd51
Arch: Axis can now be referenced in sketches
2019-01-18 17:40:50 -02:00
luz.paz
da6282f57f
Crowdin: Experiment to remove obsolete translations from .ts file
...
Crowdin currently has an issue where typo strings that have been fixed in the FC source haven't been permeating in to the Crowdin UI. This maybe do to discrepency between lupdate and crowdin. This PR experiments with removing a few lingering obsolete translations in the main .ts file of the Arch and Path WBs. If this works then a follow-up PR will be made to remove all the rest of the obsolete strings.
2019-01-14 19:39:58 +01:00
luz.paz
3fb71fbe2a
[For v0.18] Crowdin fixes
...
https://crowdin.com/translate/freecad/568/en-en#1172237
https://crowdin.com/translate/freecad/568/en-en#1172239
https://crowdin.com/translate/freecad/568/en-en#195053
https://crowdin.com/translate/freecad/568/en-en#1172247
https://crowdin.com/translate/freecad/568/en-en#1172249
https://crowdin.com/translate/freecad/568/en-en#1172251
https://crowdin.com/translate/freecad/6766/en-en#6511058
https://crowdin.com/translate/freecad/6766/en-en#6511060
https://crowdin.com/translate/freecad/6766/en-en#6502381
+ random typo fixes
2019-01-13 02:24:50 +01:00
Yorik van Havre
88e871938c
Arch: Small bugfix in ifc exporter
2019-01-10 15:33:53 -02:00
Yorik van Havre
d8ae97e206
Arch: Fixed behaviour of alternative wall icon
2019-01-09 10:28:27 -02:00
Yorik van Havre
5cebe1b4c2
Arch: Fixed recursion loop in windows
2019-01-08 16:39:11 -02:00
Yorik van Havre
faf9c5bcac
Arch: Fixed Reference object that cannot be deleted
2019-01-08 15:44:45 -02:00
wmayer
3f47e67d91
Remove decode as returned object by translate() function is a unicode oject
2019-01-08 13:23:51 +01:00
cclauss
a8a02e881d
Drop depencence on six module
2019-01-07 15:51:34 +01:00
cclauss
00d8f39840
Fix file, long, raw_input, and xrange for Python 3
2019-01-07 15:42:37 +01:00
Yorik van Havre
d05d2c5da4
Arch: Fixed wrong movement of references on reload
2019-01-07 11:19:32 -02:00
Bernd Hahnebach
d80f851b96
Arch: import ifc, code formating, flake8, only the most important ones
2019-01-05 12:17:52 +01:00
Yorik van Havre
c83c7f3057
Arch: Fixed wire/edge bug in IFC import
2019-01-04 22:48:49 -02:00
Bernd Hahnebach
fc51b429d3
Arch: IFC, print code formating in the regard of Py3
2019-01-04 15:28:16 +01:00
wmayer
3e12a59d41
fix several Py3 issues
2019-01-03 18:11:37 +01:00
paullee
ba4520d259
Curvilinear Landing based on underlying curve edges supported; found sortEdges() 'problem'
...
Discussion:-
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=100#p277409
2019-01-02 17:26:34 -02:00
Yorik van Havre
80c1f70af9
Arch: small cosmetic fix in material editor
2018-12-27 12:56:49 -02:00
Yorik van Havre
bfb0a85ab5
Arch: Lowered tolerance of planar profiles for Arch structures
2018-12-27 12:29:03 -02:00
Yorik van Havre
39d446f60f
Updated translations from crowdin
2018-12-23 13:54:30 -02:00
Yorik van Havre
3cdecfb7b8
Arch: fixed wrong WP when double-clicking an Arch BuildingPart
2018-12-21 18:55:59 -02:00
Yorik van Havre
41eeeede6b
Arch: Fixed crash on creating new BuildingParts
2018-12-20 13:21:48 -02:00
Yorik van Havre
effdefbbf7
Arch: Fixed object transparency not adopting the material's one
2018-12-19 20:51:39 -02:00
Yorik van Havre
d012178482
Arch: Fixed display bug in BuildingPart
2018-12-19 16:33:48 -02:00
Yorik van Havre
b1e3ad9015
Arch: Small refactor in arch reference
2018-12-19 12:29:34 -02:00
Yorik van Havre
49b2c8f952
Arch: Fixed wrong elevation of imported IFC elements
2018-12-19 11:46:40 -02:00
Yorik van Havre
596655e3e7
Arch: more thorough file search in arch references
2018-12-18 21:49:27 -02:00
Yorik van Havre
d35d59a7d6
Arch: Allow to not zoom fit after importing IFC files
2018-12-18 11:00:56 -02:00
Yorik van Havre
17849c656e
Arch: Fixed remaining bugs in Schedule - Fixes #3590
2018-12-17 12:24:27 -02:00