Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Dion Moult
10d30b0de7
Document api modules and require explicit imports of API submodules
2024-05-08 17:00:35 +10:00
Bruno Postle
b718bd19bd
fix TypeError
...
File "/usr/lib64/python3.12/site-packages/ifcopenshell/api/project/assign_declaration.py", line 126, in execute
related_definitions = set(has_context.RelatedDefinitions) - objects_with_contexts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'set' and 'list'
2024-05-06 09:05:56 +01:00
Dion Moult
d11ec67129
Generate functions for all API usecases for better static code features. See #2693 .
2024-05-06 14:43:43 +10:00
Dion Moult
a213ab6760
Fix docstrings to reference datatype as it would be used for users
2024-05-06 08:39:48 +10:00
Andrej730
ac29e152bb
project.unassign_declaration - support batching #4474
2024-05-03 16:28:10 +05:00
Andrej730
de690a385c
project.assign_declaration - support batching #4474
2024-05-03 16:28:10 +05:00
Andrej730
59cc9c0a16
material.assign_material - support batching #4474
2024-04-12 17:41:37 +05:00
Andrej730
df4943205a
type.assign_type - support batching #4474
2024-04-10 18:58:44 +05:00
Andrej730
8c28f52e6a
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-03-05 14:18:18 +05:00
Andrej730
50648fd350
append_asset - keep preexisting contexts valid #4280
...
issue occurred with ifcpatch ExtractElements - it was adding project from other ifc file (with the contexts) and then adding some elements from it using `append_asset`. During `append_asset` it was considering existing context with the duplicated one and was partially purging it.
2024-03-04 18:04:24 +05:00
Andrej730
4f3ba7ae22
some typing
2024-02-14 14:25:55 +05:00
Andrej730
a33a1700dc
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-02-14 14:23:50 +05:00
Dion Moult
14f1acadb7
See #3974 . WIP review to ensure history removal in API.
2023-11-27 18:31:55 +11:00
Bruno Postle
8f650c56e5
Revert 1d972a6 as no datetime.UTC on CI server
2023-11-23 21:59:23 +00:00
Bruno Postle
1d972a6a6f
fix python 3.12 utcnow() deprecation warning
...
Warning is:
/usr/lib64/python3.12/site-packages/ifcopenshell/api/project/create_file.py:61:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version.
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
2023-11-23 21:16:24 +00:00
Dion Moult
0f68679295
Fix #2753 . Disable mapping representations when appending assets via the ExtractElements recipe to be more forgiving (and faster) on invalid models.
2023-08-09 00:13:16 +10:00
Dion Moult
346071185f
Fix bug where appending a product from a library which had relationships to types caused a bunch of types to be pulled in unintentionally
2023-03-24 20:53:55 +11:00
Dion Moult
00fc71dcbe
Fix #2837 . Shared subelements mistakenly caused the subelement append loop to break early. The solution is to traverse one level at a time.
2023-03-24 17:36:46 +11:00
Dion Moult
ae09adf854
Fix #2424 . Bug where indirect assets (e.g. importing a type using a material) with relationships had their relationships duplicated
2023-02-24 13:01:26 +11:00
Dion Moult
c8ba96cde8
Make syntax highlighting explicit in docs
2023-01-10 10:16:28 +11:00
Dion Moult
a89c061b58
Write docs for project API module
2022-12-14 17:28:34 +11:00
Dion Moult
6558f68cd4
Minor fix
2022-11-13 15:32:24 +11:00
Dion Moult
4fd5806f70
Minor documentation tweaks
2022-11-13 15:30:35 +11:00
Dion Moult
516bd37518
Fix #2550 . Bug where material styles weren't included when appending from a library
2022-11-07 16:20:23 +11:00
Dion Moult
a34c0cb35c
Fix a variety of IFC validation errors in entity creation and asset appending
2022-10-14 18:19:35 +11:00
Dion Moult
dff35c173d
You can now delete a type when managing types
2022-10-11 15:31:31 +11:00
Dion Moult
c7af6c4482
Fix #2420 . Bug where project library assets sharing relationships with other assets would pull in other assets
2022-09-18 23:19:23 +10:00
Dion Moult
68ef6458d7
Fix #2379 . Regressions where context adding never had any tests and failed.
2022-09-05 11:13:31 +10:00
Dion Moult
af4cb22756
Fix bug where appended assets sometimes duplicated geometry contexts
2022-09-03 22:16:35 +10:00
Bruno Postle
eec4c23017
Transfer psets and style representations when appending a material
2022-07-27 09:53:22 +10:00
Dion Moult
f451c51451
Fix bug where some appended assets created invalid graphs due to poor purging
2022-06-09 18:59:20 +10:00
Dion Moult
f0a00cbc94
#2185 Set up auto generated API reference documentation via sphinx-autoapi
2022-05-09 15:35:52 +10:00
Dion Moult
126ba8d88f
Fix #2032 . Fix bug where certain elements could not be extracted or appended.
2022-02-09 15:16:22 +11:00
Dion Moult
810c71dfa2
IfcOpenShell-python licensing and black. See #1082 .
2022-01-19 12:18:33 +11:00
Dion Moult
1bbbc82b72
Fix #1962 . You can now easily append product assets using the API.
2022-01-18 17:44:50 +11:00
Dion Moult
1187ad5fea
Implement new ICOM-based UI for managing process inputs, outputs, and resources
2021-08-24 18:08:06 +10:00
Dion Moult
3e2b66ef2f
You can now edit psets of profiles
2021-08-14 13:01:22 +10:00
Dion Moult
305465a898
You can now import profile definitions from a library
2021-08-14 12:05:59 +10:00
Dion Moult
869bb22830
You can now import a cost schedule from an IFC project library
2021-08-10 09:35:09 +10:00
Dion Moult
a83952cec2
You can now import materials from a project library
2021-08-09 11:17:17 +10:00
Dion Moult
7abccbd713
Deleting a material set from a type now also purges usages from type instances
2021-08-08 20:56:31 +10:00
Dion Moult
176e22af8b
Fix bug to prevent users from appending a project library asset twice
2021-08-07 18:37:45 +10:00
Dion Moult
a968f2b04d
The BIM Tool can now create profiled members.
2021-07-18 17:20:16 +10:00
Dion Moult
2d6e941c41
New documentation for project create_file usecase
2021-07-18 12:56:49 +10:00
Dion Moult
2f1f332d31
Fix #1522 . Appending from project libraries now supports material properties and styles.
2021-06-18 15:54:01 +10:00
Dion Moult
feac601340
Fix #1513 . Materials now are included when importing types from a project library.
2021-06-06 10:05:24 +10:00
Dion Moult
7890ded698
Fix #1429 . MVDs now reflect the full DesignTransferView by default.
2021-05-28 09:49:57 +10:00
Dion Moult
78314b1ec7
Forgot to commit append_asset usecase, also minor fixes
2021-04-21 20:49:58 +10:00
Dion Moult
ae0789e4ec
New assign / unassign declaration usecase, minor code & formatting cleanup
2021-04-07 13:15:16 +10:00