Andrej730
5eb9cb2ee4
len(get_inverse) -> get_total_inverses
2025-02-24 18:52:35 +05:00
Andrej730
6eda4e389c
typing
2025-02-24 18:52:34 +05:00
Andrej730
cf1647a451
Fix bugs in 17642ca4e9
2025-02-21 17:31:33 +05:00
Andrej730
67bac441ad
typing
2025-02-19 18:31:06 +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
13d61f0135
rename sequence.assign_workplan for consistency
2024-06-26 17:17:34 +05:00
Andrej730
6552463ed9
sequence.remove_task to remove IfcRecurrencePattern
2024-06-10 16:55:21 +05:00
Andrej730
d56da70cae
sequence.assign_recurrence_pattern - fix bug assigning pattern to a task time recurring
...
It wasn't considering that IfcTaskTimeRecurring might be just created and IfcTaskTimeRecurring.Recurrence is None resulting in error below
File "\api\sequence\assign_recurrence_pattern.py", line 120, in assign_recurrence_pattern
if len(file.get_inverse(settings["parent"].Recurrence)) == 1:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\file.py", line 524, in get_inverse
inverses = [entity_instance(e, self) for e in self.wrapped_data.get_inverse(inst.wrapped_data)]
AttributeError: 'NoneType' object has no attribute 'wrapped_data'
2024-06-10 16:55:21 +05:00
Andrej730
6cab7d964e
sequence.remove_work_time to remove IfcRecurrencePattern
...
Previously it was leaving them orphaned.
2024-06-10 16:55:21 +05:00
Andrej730
1343741cfd
sequence.remove_work_calendar to remove related work times
...
Previously they were leaved orphaned
2024-06-10 16:55:20 +05:00
Andrej730
7c713eee65
nest.remove_task to clean up ownerhistory in more cases
...
1) It wasn't removing ownerhistory in the case if task was RelatingObject in IfcRelNests
2) Replaced handling of IfcRelNests as an inverse with direct api calls.
3) Added some basic tests.
2024-06-10 15:51:03 +05:00
Andrej730
61c2a2c6c6
remove_work_schedule to unassign a work schedule from a work plan #4819
2024-06-07 17:15:51 +05:00
Andrej730
5c41baeaf1
remove_work_plan - unassign work schedules #4819
2024-06-07 17:15:51 +05: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
f576aadee1
typing
2024-05-24 19:15:51 +05:00
Andrej730
bb8e84e5ec
typing
2024-05-15 17:18:33 +05:00
Andrej730
845d772a08
move sequence.get_related_products to util module
2024-05-10 19:18:09 +05:00
Andrej730
1e630ede08
ifc2x3 tests
2024-05-10 19:18:09 +05:00
Andrej730
c50d1ea2fe
typing
2024-05-10 19:18:08 +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
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
889c9a9e9f
typing
2024-04-22 17:30:25 +05:00
Vukas Pajic
58b39d3926
fix: address test fails
2024-04-11 13:03:13 +02:00
Vukas Pajic
946c868388
fix: cascade_schedule correctly handles timelag with IfcRatioMeasure
2024-04-11 11:35:34 +02:00
Andrej730
06b84cfa24
nest.unassign_object - support batching #4474
2024-04-09 18:33:25 +05:00
Andrej730
97db95085a
nest.assign_object - support batching #4474
2024-04-09 18:33:25 +05:00
Andrej730
d1bcec7a6a
typing
2024-04-09 18:33:25 +05:00
Andrej730
cd11d2de27
aggregate.assign_object - support batching #4474
2024-04-08 17:49:48 +05:00
Dion Moult
0bc83fedae
Use indices instead of WorkTimeDatesInterface
...
Checking start/end dates are done very, very often in date calculations (often looping through every day in a date range). So I'd prefer more opaque code but less overhead.
2024-03-31 22:11:17 +11:00
Andrej730
c1cd228911
Fix #4342
2024-02-22 16:19:19 +05:00
Andrej730
551f3b0d8d
Fix issues editing work time in ifc4x3 #4295
2024-02-20 12:38:29 +05:00
Dion Moult
40b6b3bf17
Fix #4224 . Fix sequencing lint bugs.
2024-01-16 10:47:50 +11: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
taylor
ef56c6ce7e
Fixed model reference
2023-10-05 10:17:03 +02:00
Sigma Dimensions (Yass)
b5b8b5df26
cascade schedule when adding a sequence relationship
2023-09-20 01:15:06 +01:00
Sigma Dimensions (Yass)
ef11ae6540
fix calculating critical path to consider:
...
- parent tasks with sequence assignments #3772
- tasks that are constrained by a schedule start
2023-09-20 01:10:34 +01:00
Sigma Dimensions (Yass)
a3802c25c0
fix cascading schedule when parent tasks have sequence relationships #3772
2023-09-20 01:05:19 +01:00
Sigma Dimensions (Yass)
d3bcb8c6b9
updating a duration will not auto update schedule usage
2023-08-24 15:51:33 +01:00
Dion Moult
72cf5cfc59
Minor fix to allow edit_work_time to work seamlessly for IFC4X3.
2023-08-18 23:01:24 +10:00
Sigma Dimensions (Yass)
fe01d252db
WIP - Scheduling UI improvements
2023-08-10 22:07:34 +01:00
Sigma Dimensions
eb54f5a0cb
ios api task fix: remove orphan IfcRelNests when deleting tasks
2023-05-21 12:45:04 +01:00
Sigma Dimensions
64fd6a1f52
fix copying relationships when duplicating tasks
2023-05-03 19:43:05 +01:00
Sigma Dimensions
9422f804fb
minor fix
2023-05-03 04:22:02 +01:00
Sigma Dimensions
ca77a895e0
IOS.API consider removing baseline tasks when deleting tasks
2023-05-02 02:31:48 +01:00
Sigma Dimensions
0f447f964e
IOS.API usecase to create a work schedule baseline
2023-05-02 02:30:38 +01:00