Massimo Fabbro
8a48769760
Minor fix
2024-02-13 17:15:25 +01:00
Andrej730
7e55872ca8
fix bugs in c5c7363a9
2024-02-13 17:58:12 +05:00
Andrej730
edbe1d80bf
fix project name for IfcAdvancedHouse
2024-02-13 13:50:29 +05:00
Andrej730
bd093303c4
UI info message when patch execution was finished
blenderbim-240213
2024-02-13 12:33:36 +05:00
Andrej730
c5c7363a93
ifctester Attribute.filter not to check subtypes attributes
...
if attribute is already found in the super type
2024-02-13 12:25:32 +05:00
Andrej730
5014fef129
Fix #4314
...
It was looking for IFC entities with the attribute from Attribute.name but wasn't considering ifc subclasses that inherit from that entity.
2024-02-13 12:24:58 +05:00
Andrej730
d710a01df5
ifctester - some typing
2024-02-13 12:24:58 +05:00
Andrej730
23c65742e1
CMake - disable optimization for RelWithDebInfo with ENABLE_BUILD_OPTIMIZATIONS=Off
2024-02-12 14:23:21 +05:00
Andrej730
d8f52afa6c
Fixed #4310
2024-02-12 12:15:27 +05:00
Andrej730
29ce8d5d80
Fix bug removing relating object of IfcRelNests
...
it was unlinking current collection of the related object and related objects were missing after
blenderbim-240212
2024-02-12 12:01:04 +05:00
Andrej730
5e5de0bbd8
root.remove_product - fix some cases producing invalid ifc #4313
...
always remove IfcRelNests
1) if product is RelatingObject
2) if product is the only RelatedObject
2024-02-12 11:40:25 +05:00
Ryan Schultz
b9b58f5726
proposed fix for #4311
2024-02-11 13:36:23 -06:00
Massimo Fabbro
5c7271ddc8
See #4007 . Now clone opening works also when a opening hosts a window or a door
blenderbim-240211
2024-02-11 14:43:12 +01:00
Massimo Fabbro
2db35556e9
Clone opening now deletes also old opening placement
2024-02-11 14:43:12 +01:00
Massimo Fabbro
2449656311
Small refactor clone opening operator in order to better understand and reuse it rebase
2024-02-11 14:43:12 +01:00
Gorgious56
c66cf0a22b
Assigning an ifc class to an object now displays a message if the object is not in OBJECT mode
2024-02-09 17:26:48 +01:00
Andrej730
e1a1ba62c5
add fallback to the previous schema versions for docs and mappings
...
before it was breaking part of BlenderBIM UI if we would open IFC4X1 file
blenderbim-240209
2024-02-09 12:12:02 +05:00
Andrej730
6489f4dc1d
bump py version in run-cmake.bat after c0d84713b
2024-02-08 16:39:27 +05:00
Andrej730
beab99bb0d
Fix issue building IfcOpenHouse for IFC4
2024-02-07 13:34:19 +01:00
Andrej730
8b50f1bcd6
Fix bug in IfcHierarchyHelper.addRelatedObject
...
Noticed that `file.addRelatedObject<IfcSchema::IfcRelDefinesByType>(door_style, door);` was resulting in list with `door` assigned as RelatingObject and `door_style` assigned as RelatedObjects.
blenderbim-240207
2024-02-07 17:10:16 +05:00
Andrej730
4617834578
MergeDuplicateTypes - fix error occuring if ifcopenshell.api is not imported
...
error was:
File "\site-packages\ifcpatch\__init__.py", line 78, in execute
patcher.patch()
File "\site-packages\ifcpatch\recipes\MergeDuplicateTypes.py", line 73, in patch
self.assign_type(element, original_type)
File "\site-packages\ifcpatch\recipes\MergeDuplicateTypes.py", line 114, in assign_type
ifcopenshell.api.run("owner.update_owner_history", self.file, **{"element": types[0]})
^^^^^^^^^^^^^^^^
AttributeError: module 'ifcopenshell' has no attribute 'api'
2024-02-07 12:20:11 +05:00
Andrej730
426dcbee43
ifcopenshell installation notion about compiling only specific schemas
2024-02-07 12:20:11 +05:00
Andrej730
2a12151c07
cmake - clean up trailing spaces
2024-02-07 12:16:55 +05:00
Andrej730
c08958c1bd
fix cmake warning with CMP0144 policy
...
The warning was:
```
CMake Warning (dev) at CMakeLists.txt:299 (find_package):
Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
variables. Run "cmake --help-policy CMP0144" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
CMake variable BOOST_ROOT is set to:
\IfcOpenShell\_deps\boost_1_74_0
For compatibility, find_package is ignoring the variable, but code in a
.cmake module might still use it.
```
2024-02-07 12:16:55 +05:00
Andrej730
e355a33d48
bump required cmake version to remove deprecation warning
...
deprecation warning:
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
2024-02-07 12:16:55 +05:00
Andrej730
ece9e2fdd1
build-deps - bump boost version to avoid "missing .b2 issue"
...
issue was mentioned in #2524 and resulted in error below trying to build boost dependency
```
'.\b2' is not recognized as an internal or external command,
operable program or batch file.
```
2024-02-07 12:16:54 +05:00
Andrej730
c0d84713bc
bump python version in windows build dependencies
...
they seem to switch to .exe from .msi starting from 3.5+, changed amd prefix. Also fixed version parsing line for two digits minor versions
2024-02-07 12:16:54 +05:00
Andrej730
ca9f165b6a
ifcpatch.execute - make input attribute optional
...
e.g. MergeDuplicateTypes doesn't use it in the code either way
2024-02-07 12:16:54 +05:00
dependabot[bot]
8f9c97a663
Bump fastapi from 0.101.0 to 0.109.1 in /src/opencdeserver/api/app
...
Bumps [fastapi](https://github.com/tiangolo/fastapi ) from 0.101.0 to 0.109.1.
- [Release notes](https://github.com/tiangolo/fastapi/releases )
- [Commits](https://github.com/tiangolo/fastapi/compare/0.101.0...0.109.1 )
---
updated-dependencies:
- dependency-name: fastapi
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-07 09:31:38 +11:00
marwiss
4ed8310b93
Correct protocol to encrypted HTTPS
2024-02-06 09:55:11 +11:00
marwiss
31be899dc9
Replace existing code in src/opencdeserver with code from the "Kontroll OpenCDE API:s server" POC project on https://github.com/marwiss/Kontroll
2024-02-06 09:55:11 +11:00
Andrej730
6d7a6eeda7
fixed bug removing representation item
...
if you'd click on "remove item" button for some item it wouldn't remove the corresponding item but would go for removing active item instead
2024-02-02 14:53:10 +05:00
Andrej730
c520e0eeb5
some refactor for bbim drawings svg serialization
...
Made some changes to svg serialization code by moving chunks of code so `.generate_linework()` will be easier to read
- moved gathering linework contexts to a separate method
- moved common code for elements serialization to a function
- replaced self.yield_from_iterator(it) with it.__iter__
Functionally code is exactly the same.
blenderbim-240202
2024-02-02 12:56:06 +05:00
Andrej730
73817acdff
add a note on get_info_2() #4270
blenderbim-240201
2024-02-01 17:19:35 +05:00
Andrej730
3d7e8d7c6c
Fixed #4259
...
Result of DeepDiff contain ordered sets. Also added fallback for usual sets to lists just in case, should be safe.
blenderbim-240130
2024-01-30 15:41:08 +05:00
Andrej730
a701840826
Fixed error adding a boolean
...
It occured if active object was IFC object and second selected object was just Blender object.
2024-01-30 14:40:07 +05:00
Andrej730
5de2ac9042
black format
2024-01-30 14:36:35 +05:00
Andrej730
573e2626ad
Fix test Model.get_manual_booleans after we added pset to store them
2024-01-30 14:36:35 +05:00
Andrej730
9de59afd49
Fix #4267 and add tests
...
Crash was caused by unmark_manual_booleans accessing boolean element after they were deleted from IFC
2024-01-30 14:36:35 +05:00
Andrej730
74a9671075
Update ui.py
2024-01-30 14:36:35 +05:00
Andrej730
799658ff41
display active representation presentation layer in UI
...
example - https://i.imgur.com/mpnoqPH.png
2024-01-30 14:36:35 +05:00
Andrej730
bd64f42a54
remove_representation to consider representation item's layers too
...
and purge layers if they are out of items as they become invalid
2024-01-30 14:36:35 +05:00
Andrej730
8eab7f155e
Small presentation layers UI fixes
2024-01-30 14:36:35 +05:00
Andrej730
5351966430
access layer assignments from inverse attribute instead of going through representation inverses
2024-01-30 14:36:35 +05:00
Andrej730
2663c079f4
test for removing representation items
2024-01-29 16:47:17 +05:00
Andrej730
6747bd9c8f
UI to remove representation items
...
example - https://i.imgur.com/jJDpIQP.png
2024-01-29 16:47:16 +05:00
Andrej730
6ece295be4
tests for creating shape aspects and adding items
2024-01-29 15:52:40 +05:00
Andrej730
64a9f85f25
create new shape aspects from UI
...
example - https://i.imgur.com/BJJZWrC.png
2024-01-29 15:52:39 +05:00
Andrej730
d8fa853308
edit shape aspect attributes from UI
...
example - https://i.imgur.com/SzUEn6r.png
2024-01-29 15:52:39 +05:00
Andrej730
ce37c49624
Fix #4262 after 0da3270c7
blenderbim-240129
2024-01-29 11:13:22 +05:00