Commit Graph

10009 Commits

Author SHA1 Message Date
Andrej730 ae47de8851 Fix #4319
StringProperty search keyword was introduced only in Blender 3.3
2024-04-16 11:38:49 +02:00
Gorgious56 27349290b7 Fix section cut planes not working anymore on Blender < 4.0.0 2024-04-16 11:38:49 +02:00
krande 288455416b add missing typename 2024-04-16 11:38:46 +02:00
Gorgious56 73ae2b7055 #4308 : Fix section cutaway shader links incorrectly linking when removing a section 2024-04-16 11:38:20 +02:00
Gorgious56 fc2009d000 Fix #4308 : Section cutaway shader : Update API for 4.0 breaking changes + draw line decorator for more than one section cutaway 2024-04-16 11:38:20 +02:00
Andrej730 f522e2beb7 some typing 2024-04-16 11:38:20 +02:00
Andrej730 075b9e4775 Fix bug in ExtractElements recipe adding a lot unrelated products
if you'd add a type product and it had material that were used in bunch of ther products
example - https://community.osarch.org/discussion/1965/error-extracting-ifcslab-or-ifccolumn
2024-04-16 11:38:20 +02:00
Massimo Fabbro 2f75b7edf8 Minor fix 2024-04-16 11:38:20 +02:00
Andrej730 80dcbb2e46 fix bugs in c5c7363a9 2024-04-16 11:38:20 +02:00
Andrej730 1e4693346a fix project name for IfcAdvancedHouse 2024-04-16 11:38:20 +02:00
Andrej730 c706ae0292 UI info message when patch execution was finished 2024-04-16 11:38:20 +02:00
Andrej730 f61738112e ifctester Attribute.filter not to check subtypes attributes
if attribute is already found in the super type
2024-04-16 11:38:20 +02:00
Andrej730 e5b63853ef 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-04-16 11:38:20 +02:00
Andrej730 41996daaa7 ifctester - some typing 2024-04-16 11:38:20 +02:00
Andrej730 e5810dbc7c CMake - disable optimization for RelWithDebInfo with ENABLE_BUILD_OPTIMIZATIONS=Off 2024-04-16 11:38:16 +02:00
Andrej730 dea29a3ec7 Fixed #4310 2024-04-16 11:35:32 +02:00
Andrej730 317dbc0ab8 Fix bug removing relating object of IfcRelNests
it was unlinking current collection of the related object and related objects were missing after
2024-04-16 11:35:31 +02:00
Andrej730 e289f23c40 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-04-16 11:35:31 +02:00
Ryan Schultz 53cc393697 proposed fix for #4311 2024-04-16 11:35:31 +02:00
Massimo Fabbro 6c9383d968 See #4007. Now clone opening works also when a opening hosts a window or a door 2024-04-16 11:35:31 +02:00
Massimo Fabbro 2a52f0fadd Clone opening now deletes also old opening placement 2024-04-16 11:35:31 +02:00
Massimo Fabbro 65a5c2c1f5 Small refactor clone opening operator in order to better understand and reuse it rebase 2024-04-16 11:35:31 +02:00
Gorgious56 1f10b2415e Assigning an ifc class to an object now displays a message if the object is not in OBJECT mode 2024-04-16 11:35:31 +02:00
Andrej730 e2ef636209 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
2024-04-16 11:35:31 +02:00
Andrej730 7c81633113 bump py version in run-cmake.bat after c0d84713b 2024-04-16 11:35:31 +02:00
Andrej730 8c707f3b48 Fix issue building IfcOpenHouse for IFC4 2024-04-16 11:35:31 +02:00
Andrej730 9560e0b3b2 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.
2024-04-16 11:35:26 +02:00
Andrej730 4418c1327d 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-04-16 11:33:55 +02:00
Andrej730 3dd94889fa ifcopenshell installation notion about compiling only specific schemas 2024-04-16 11:33:53 +02:00
Andrej730 070f869932 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-04-16 11:32:42 +02:00
Andrej730 c4bf4d7d92 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-04-16 11:32:04 +02:00
Andrej730 d82fbcd66c 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-04-16 11:30:23 +02:00
Andrej730 b503463a02 ifcpatch.execute - make input attribute optional
e.g. MergeDuplicateTypes  doesn't use it in the code either way
2024-04-16 11:29:01 +02:00
dependabot[bot] 39eed06e90 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-04-16 11:29:01 +02:00
marwiss b11ca61462 Correct protocol to encrypted HTTPS 2024-04-16 11:29:00 +02:00
marwiss 7ee66de043 Replace existing code in src/opencdeserver with code from the "Kontroll OpenCDE API:s server" POC project on https://github.com/marwiss/Kontroll 2024-04-16 11:29:00 +02:00
Andrej730 10ef4293f3 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-04-16 11:29:00 +02:00
Andrej730 ad76c3ae82 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.
2024-04-16 11:28:59 +02:00
Andrej730 7fc8119956 add a note on get_info_2() #4270 2024-04-16 11:28:59 +02:00
Andrej730 182e428452 Fixed #4259
Result of DeepDiff contain ordered sets. Also added fallback for usual sets to lists just in case, should be safe.
2024-04-16 11:28:59 +02:00
Andrej730 7d31791034 Fixed error adding a boolean
It occured if active object was IFC object and second selected object was just Blender object.
2024-04-16 11:28:59 +02:00
Andrej730 6d07a157a9 black format 2024-04-16 11:28:59 +02:00
Andrej730 cdf866dc81 Fix test Model.get_manual_booleans after we added pset to store them 2024-04-16 11:28:59 +02:00
Andrej730 5d020f36d3 Fix #4267 and add tests
Crash was caused by unmark_manual_booleans accessing boolean element after they were deleted from IFC
2024-04-16 11:28:59 +02:00
Andrej730 af593b6663 Update ui.py 2024-04-16 11:28:59 +02:00
Andrej730 1e96df4311 display active representation presentation layer in UI
example - https://i.imgur.com/mpnoqPH.png
2024-04-16 11:28:59 +02:00
Andrej730 e8055ec396 remove_representation to consider representation item's layers too
and purge layers if they are out of items as they become invalid
2024-04-16 11:28:59 +02:00
Andrej730 a4d6b2cab3 Small presentation layers UI fixes 2024-04-16 11:28:59 +02:00
Andrej730 8091b25fcd access layer assignments from inverse attribute instead of going through representation inverses 2024-04-16 11:28:59 +02:00
Andrej730 fd48196bcb test for removing representation items 2024-04-16 11:28:59 +02:00