Andrej730
13be6ccd45
Sort imports
2025-12-19 18:53:14 +05:00
Andrej730
8cfd6b1754
Unify doc-strings (remove type/rtype)
...
As this information is already provided in type hints and we don't need to maintain it in two places.
2025-06-30 18:55:14 +05:00
Andrej730
bdcebd0f98
document.add_information - error handling in case project is not found
2025-06-27 18:51:15 +05:00
Andrej
1608677d40
ifcopenshell.api.run to use explicit kwargs instead of unpacking
2025-06-10 18:54:35 +05:00
Andrej730
0e8810c1f5
typing
2025-03-14 18:19:02 +05:00
Andrej730
17642ca4e9
typing
2025-02-18 18:50:34 +05:00
Dion Moult
07060fc769
Replace all ifcopenshell.api.run with ifcopenshell.api static functions.
2024-06-28 12:36:31 +10:00
Andrej730
4a5d1eba0b
specify exported api methods in __all__
...
It's py.types requirement, similar to 6e2edbf
Example issue without __all__:
import ifcopenshell
import ifcopenshell.api.project
# "create_file" is not exported from module "ifcopenshell.api.project"
ifcopenshell.api.project.create_file()
2024-06-03 17:44:05 +05:00
Andrej730
bb8e84e5ec
typing
2024-05-15 17:18:33 +05:00
Dion Moult
8e6c372a4f
Fix ability to run tests and segfaulting test
2024-05-11 15:00:30 +10:00
Andrej730
2d35869c41
typing
2024-05-09 18:00:17 +05:00
Andrej730
359dab573b
document.remove_information to support ifc2x3 #4636
2024-05-09 14:02:10 +05:00
Andrej730
c5a7a8680e
fix removing references in ifc2x3 #4636
2024-05-08 18:18:03 +05:00
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
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
721466c429
typing
2024-04-25 18:05:47 +05:00
Dion Moult
ac64d0c400
Fix #3581 . Invalid new document references.
2024-04-16 08:06:10 +10:00
Andrej730
5da68721d6
document.unassign_document - support batching #4474
2024-04-15 17:24:31 +05:00
Andrej730
097f44284f
document.assign_document - support batching #4474
2024-04-15 17:24:31 +05:00
Andrej730
59b496d4b5
typing
2024-04-12 17:41:36 +05:00
Dion Moult
6e932ec2fb
Fix #3974 . Bug where orphaned histories would be left in API remove operations.
2023-11-28 10:46:03 +11:00
Dion Moult
14f1acadb7
See #3974 . WIP review to ensure history removal in API.
2023-11-27 18:31:55 +11:00
Dion Moult
b708100c03
See #3581 . Fix failing IOS tests.
2023-08-24 22:12:44 +10:00
Andrej730
793b28e43b
Remove empty IfcDocumentInformationRelationship #3581
2023-08-14 11:09:26 +05:00
Dion Moult
92221e19c3
Fix bug where unassigning a document was too aggressive and deleted relationships where it shouldn't.
2023-04-10 22:30:33 +10:00
Dion Moult
b3c7971ea9
Purge all data classes from API.
2023-02-01 15:44:08 +11:00
Dion Moult
c8ba96cde8
Make syntax highlighting explicit in docs
2023-01-10 10:16:28 +11:00
Dion Moult
b23f445946
Add API documentation for document module
2022-11-23 10:56:41 +09:00
Dion Moult
16b05d9981
Fix support for document references in IFC2X3
2022-10-19 20:17:10 +11: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
456f45b346
You can now use relative paths when browsing for file URIs.
2022-03-15 18:58:51 +11:00
Dion Moult
233e73f9f6
Removing documents now removes all subdocuments recursively and references
2022-03-15 14:45:18 +11:00
Dion Moult
db85aa90d3
You can now add document references that are part of a document information
2022-03-15 14:43:24 +11:00
Dion Moult
6fb1e34ab4
You can now add IFC subdocuments or supersede documents
2022-03-15 14:41:47 +11:00
Dion Moult
9cc683ea6e
Fix bug where ownership history was not tracked on document association.
2022-03-14 20:39:39 +11:00
Dion Moult
e343494ab4
Document information is now always assigned to the project by default.
2022-03-14 20:39:11 +11:00
Dion Moult
810c71dfa2
IfcOpenShell-python licensing and black. See #1082 .
2022-01-19 12:18:33 +11:00
Dion Moult
865c0f4895
Run black, and add black to a "qa" target to make it a standardised process.
2021-09-09 21:27:31 +10:00
Dion Moult
406b8b4540
IfcOpenShell API now uses kwargs to improve user syntax. See #1399 .
2021-03-27 19:14:46 +11:00
Jesusbill
9c00872a57
replace settings=None with {}
2021-03-25 00:54:42 +01:00
Dion Moult
d77bc6bdaa
First attempt at ripping out agnostic code into ifcopenshell.api namespace. See #1399 .
2021-03-25 10:48:48 +11:00