Andrej730
eaf6256048
TesselateElements - avoid processing queries that affect no elements
...
Previously it was failing with
File "\ifcopenshell\geom\main.py", line 119, in __init__
self.this = initializer(
File "\ifcopenshell\ifcopenshell_wrapper.py", line 2467, in construct_iterator_with_include_exclude
return _ifcopenshell_wrapper.construct_iterator_with_include_exclude(settings, file, elems, include, num_threads)
TypeError: Attribute of type AGGREGATE OF STRING needs a python sequence of strs
2024-04-17 14:54:42 +02:00
Andrej730
cbc7271885
add_mesh_representation - option to force faceted breps
2024-04-17 14:54:42 +02:00
Andrej730
acafc910f7
typing
2024-04-17 14:54:42 +02:00
Benoit DAMAY
3f4a7e6097
removing debug print from previous commit
2024-04-17 14:46:07 +02:00
Benoit DAMAY
df478f6ed7
replacing os.rename() by shutil.move in ifcpatch
2024-04-17 14:46:07 +02:00
Andrej730
ac4669f841
fix duplicated ifcstyleditems using append_asset
...
since we don't use `file.add` to add inverse items and we use `file.create_entity` it was duplicating new elements, added optional parameter that makes it possible to track already added relationships between `append_asset`s.
2024-04-17 14:42:55 +02:00
Andrej730
cbf95b2080
typing
2024-04-17 14:42:55 +02:00
Andrej730
a7b731e6df
Optimise patch - lazy import toposort
...
to fix empty Optimise patch description in BlenderBIM
2024-04-17 14:42:55 +02:00
Dion Moult
c48e167758
New IfcPatch recipe to extract flattened properties and relationships to SQLite for simple queries
2024-04-17 14:42:54 +02:00
Andrej730
f522e2beb7
some typing
2024-04-16 11:38:20 +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
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
krande
5a61173052
update name of function to make its purpose more clear
2024-04-16 11:16:08 +02:00
krande
5c75cc6a39
initial proposal for updating units conversion
2024-04-16 11:16:08 +02:00
Dion Moult
77bc031800
New SetWorldCoordinateSystem patch. Autodesk software is starting to pay attention to this attribute which I find really confusing.
2024-04-16 11:16:08 +02:00
Martin15135215
46f7241da5
add cff for ifcpatch
2024-04-16 11:12:08 +02:00
Dion Moult
298363c175
Fix bug in TessellateElements patch recipe where sometimes the patch would run forever.
2024-04-16 11:10:58 +02:00
Dion Moult
b9f33e06bd
Fix #4072 . IDS reports now include filename.
2024-04-16 11:10:57 +02:00
Dion Moult
f7e3d54618
FixRevitTINs patch now also flips normals for surface TINs instead of solid TINs.
...
Minor fixes to use view_layer.object.active etc instead of context.active_object when running via Blender UI (it seems when you run the patch recipe from the Blender UI at least in later versions, context does not have an "active_object" property.
2024-04-16 11:09:32 +02:00
Dion Moult
e3742cefb0
Minor IfcPatch doc fix where examples had a missing argument
2024-04-16 11:05:27 +02:00
Dion Moult
be584d9155
New IfcPatch recipe to tessellate elements to account for bugs in other vendors.
2024-04-16 11:05:27 +02:00
Dion Moult
15f06dee29
Fix missing LGPL license blocks in IfcPatch
2024-04-16 11:05:27 +02:00
Dion Moult
fd53adfa49
New ConvertNestToAggregate patch recipe
2024-04-16 11:05:26 +02:00
Dion Moult
9985ffb413
Purge data recipe now also purges shape aspect names and layers.
2024-04-16 11:05:26 +02:00
Dion Moult
cc338d8acc
Forgot rabbit branding.
2024-04-16 11:05:24 +02:00
Dion Moult
0f0d600f3f
New data purging IfcPatch recipe
2024-04-16 11:05:24 +02:00
Dion Moult
9c99085413
You can now edit rendering styles in the style manager
2024-04-16 11:04:28 +02:00
Dion Moult
3cb1791525
New IfcPatch recipe to fix Revit bug with occurrence based classifications
2024-04-16 10:37:19 +02:00
Dion Moult
8df28ca8a1
New IfcPatch recipe to fix Revit bug with hardcoded Uniformat classification
2024-04-16 10:37:19 +02:00
Dion Moult
a405b36167
ResetAbsoluteCoordinates IfcPatch recipe can now choose whether to reset placements, geometry, or both points.
2024-04-16 10:34:29 +02:00
Dion Moult
2e8c218415
IfcPatch now uses the new facet selector syntax.
2024-04-16 10:25:00 +02:00
Dion Moult
3e7afbed08
Minor doc improvements and SQL/stream code cleanup
2024-04-15 13:30:42 +02:00
Dion Moult
7d83eb114a
The user can now toggle between rotate before / after translating in OffsetObjectPlacements
2024-04-15 13:30:42 +02:00
Dion Moult
8896a74d1b
Fix #3121 . Merge equivalent contexts when merging projects in MergeProject Ifcpatch recipe.
2024-04-15 13:30:42 +02:00
Dion Moult
af796d5f9d
Ifc2Sql patch now can store inverses for efficient queries.
2024-04-15 13:25:50 +02:00
Dion Moult
aafb905199
Build testing prototype of an SQLite based file / entity_instance.
2024-04-15 12:04:43 +02:00
Dion Moult
ef98bd5120
Convert Ifc2Sql script to IfcPatch recipe and add geometry support
2024-04-15 12:04:43 +02:00
Dion Moult
a572bcfcb9
IfcPatch can now support patches that write to arbitrary files or have no output.
2024-04-15 12:04:43 +02:00
Massimo Fabbro
8e8c9d4170
Remove old patch file
2024-04-15 10:34:41 +02:00
Massimo Fabbro
512abbec7c
IfcPatch ReplaceDrawingPath recipie improved: now it's possible to use it on Linux and on Windows
2024-04-15 10:34:41 +02:00
Massimo Fabbro
3204c130eb
Now it's possible to fix drawing reference path problem saved in Windows and opened in Linux
2024-04-15 10:34:41 +02:00
Dion Moult
b18503d1e6
FixRevitTINs patch recipe now also purges non up-facing polygons as Revit doesn't handle them very well.
2024-04-15 09:25:48 +02:00
Vukas Pajic
d9cee04769
Fix #2755
2023-02-09 11:00:25 +01:00
Vukas Pajic
5df0cf39a0
minor fix
2023-02-08 12:06:16 +01:00
Vukas Pajic
1b85928810
allow user to specify output directory for "SplitByBuildingStorey"
2023-02-08 10:42:05 +01:00
Dion Moult
3f8314bcf3
Minor fix.
2023-02-07 12:37:10 +11:00
Dion Moult
5879d14803
See #2737 . Fix bug where convert length unit patch did not work outside Blender session.
2023-02-07 09:05:20 +11:00
Dion Moult
bf3063ec00
You can now convert ArchiCAD spaces across multiple stories to Revit rooms
2023-01-25 13:55:38 +11:00
Jesusbill
4845d191f4
Minor fixes to docs
2023-01-10 01:06:49 +01:00
Dion Moult
da84cc5925
Add documentation for IfcPatch and all recipes
2023-01-10 10:18:13 +11:00