Commit Graph

1935 Commits

Author SHA1 Message Date
Yorik van Havre
3cc1a327ce Updated master translation files 2019-02-08 19:16:21 -02:00
GeneGH
2549d1cfc4 Repair pythonopen in line 126 for Python3
Python 3 is fussy about match of data type for a file open or write. Python 2 does not seem to care if a string is written with a 'wb' indicating a binary type, but Python 3 flags it as an error.
2019-02-08 11:06:05 -02:00
furti
1610046905 Fix missing door symbols in getSVG
The ArchSectionPlane has a built in SVG Cache. But the door symbols and
a few other things are not inside the cache. This things not inside the
cache rely on the presence of a cutface. But this cutface was only built
when the cache is not available.

So the First invocation after the cache was cleared added the symbols.
The next invocations of the method, with a cached SVG did not calculate
the symbols again, because the cutfaces where missing.

This commit fixes it by calculating the cutfaces independent from the
cache.

Reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=33987
2019-02-08 11:05:17 -02:00
Yorik van Havre
f9fbd6362d Arch: Fixed py3/encoding bug 2019-02-07 21:05:09 -02:00
paullee
4ffd00e520 Fix Right Align Railing Offset Bug 2019-02-06 10:13:37 -02:00
Yorik van Havre
34c1f38cfa Arch: Small bugfix in spaces 2019-02-04 22:35:16 -02:00
Syres916
f07f996c48 Collada Export Py3 Fixes
To allow successful Collada Export for Py3 and Py2, tested import of DAE file with colours from Blender to ensure no regression on the import side. Note: I had to download Pycollada to enable testing in Conda build.
2019-02-04 22:20:47 -02:00
Yorik van Havre
b68f571e93 Arch: Fixed encoding bug in OBJ importer 2019-02-04 13:35:00 -02:00
Yorik van Havre
303e518c93 Arch: Small bugfix in IFC exporter 2019-02-04 13:25:14 -02:00
Yorik van Havre
f74784cebc Arch: Fixed duplicate IfcSurfaceStyle names in IFC export 2019-02-01 18:38:21 -02:00
Yorik van Havre
95dda429eb Updated translations 2019-02-01 13:54:10 -02:00
luz.paz
8e15d0f888 Crowdin: Arch/ArchFloor.py grammar and refinement 2019-01-30 11:08:03 -02:00
luz.paz
b1b81f6df3 Crowdin: Arch/ArchStairs.py missing paranthesis fix 2019-01-30 11:08:03 -02:00
Dion Moult
c9d08b7311 Remove dependency on ifcopenshell at runtime and introduce new IfcVersion config 2019-01-29 21:15:44 +11:00
Dion Moult
471eb4cad3 Add json to cmakelists 2019-01-29 21:15:44 +11:00
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
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