Petru Conduraru
694a44e638
ifc4d: tolerate activities without a CalendarObjectId in P6 import ( #5617 )
...
Importing a Primavera P6 XML crashed with
`AttributeError: 'NoneType' object has no attribute 'text'` in
P62Ifc.parse_activity_xml, which read
activity.find("pr:CalendarObjectId").text unconditionally. CalendarObjectId
is optional on a P6 Activity; when omitted, the activity inherits the
project's ActivityDefaultCalendarObjectId.
Capture the project default in parse_xml and fall back to it when an
activity has no CalendarObjectId (`calendar_id or self.default_calendar_id`).
Verified on the reporter's attached file (20241021 Cronograma.xml): 3 of 14
activities lack a CalendarObjectId and reproduced the exact crash on
v0.8.0; after the fix parse_xml completes and those activities resolve to
the project default calendar "2" (a valid calendar in the file). An
activity with an explicit CalendarObjectId keeps its own value.
Fixes the P6 re-import crash reported in #5617 (that issue tracks several
Gantt items; this addresses the import AttributeError).
Generated with the assistance of an AI coding tool.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-13 17:15:36 +10:00
Andrej730
953c5fddc6
bonsai - sort imports
2026-01-26 17:13:18 +05:00
Andrej730
6d4eb06d89
black .
2026-01-26 17:10:03 +05:00
Andrej730
72f8218fcd
ruff - check for more unused imports
2026-01-26 17:10:02 +05:00
Andrej730
13be6ccd45
Sort imports
2025-12-19 18:53:14 +05:00
Andrej730
b784cb06ae
Revert "Make zip strict argument optional to support Python 3.9"
...
This reverts commit 3bdce4fbc3 .
2025-12-19 18:43:17 +05:00
Andrej730
abfb56350d
control.assign_control to support batching
2025-09-09 15:42:32 +05:00
Andrej
1608677d40
ifcopenshell.api.run to use explicit kwargs instead of unpacking
2025-06-10 18:54:35 +05:00
Andrej
8b4683aef1
replace api.run with static methods
2025-06-09 18:03:19 +05:00
Andrej
7d4176d105
Fix Ruff UP006 (deprecated annotation symbols)
2025-06-09 18:03:18 +05:00
Andrej
3bdce4fbc3
Make zip strict argument optional to support Python 3.9
2025-05-30 18:13:11 +05:00
Andrej
0663c5130a
typing
2025-05-29 19:14:42 +05:00
Andrej730
83a351b1c7
black .
2025-02-18 18:50:33 +05:00
Andrej730
69eca15195
resources import/export - support resource quantities
2024-11-22 17:13:05 +05:00
Andrej730
4ef1afa8bb
resources - support importing/exporting ScheduleUsage
2024-11-22 16:57:54 +05:00
Andrej730
164e5c69ca
bim.export_resources #5760
...
Simple export for resources to csv file, supports just the same fields that import currently does.
Location - https://i.imgur.com/Ssz7BwZ.png
2024-11-22 16:57:26 +05:00
Andrej730
dd0d0ed1af
typing
2024-11-15 18:25:46 +05:00
Andrej730
d0b3ecad42
csv2ifc - add header validation
2024-11-14 18:30:47 +05:00
Andrej730
dfb0f1e828
typing
2024-11-14 18:30:47 +05:00
Andrej730
fb5d37b04b
Fix support for python 3.10 #5662
2024-10-31 18:28:24 +05:00
Andrej730
fb6d2b8de2
pp2ifc - preserve original ids
...
Now we're going to use bar ids instead their detalization ids (e.g. expanded task ids, task ids, milestone ids) because it is the way how it works in the software pp file originates from.
2024-09-19 17:21:51 +05:00
Andrej730
ddca950f65
pp2ifc - save calendar identification for pp file to ifc
2024-09-19 17:21:51 +05:00
Andrej730
96756d63d4
pp2ifc refactor and add support for more languages #5417
2024-09-19 17:21:50 +05:00
Andrej730
d5592ed2eb
fix ifc4d copyright license
2024-08-14 16:49:34 +05:00
Dion Moult
e7b791f4a2
Run black on utils
2024-07-26 12:16:36 +10:00
Dion Moult
0ecc3d3e2a
Share common makefile instructions, use venv for running build, and separate dist/build dirs
2024-07-18 23:43:12 +10:00
DimitriosThe
20f8181ac3
Update csv4d2ifc.py ( #4935 )
...
Please correct me if I am wrong:
while trying to create relationships I saw that in def create_rel_sequence (line 194) there is a parameter missing which should reflect the "rel_type", otherwise and according to "assign_sequence.py" the sequence_type remains
def assign_sequence(
file: ifcopenshell.file,
relating_process: ifcopenshell.entity_instance,
related_process: ifcopenshell.entity_instance,
sequence_type: str = "FINISH_START",
2024-07-01 11:18:13 +10:00
Dion Moult
2d5be6cf89
Search replace 0.7.0 with 0.8.0
2024-06-27 11:49:12 +10:00
Dion Moult
b9269b5a11
Distribute Ifc4D on PyPI
2024-06-26 13:02:18 +10:00
Vukas Pajic
61af868c7a
sync with latest
2024-04-18 10:45:31 +02:00
Vukas Pajic
f7a97622c5
Additional metadata as property set #4425
...
https://github.com/IfcOpenShell/IfcOpenShell/issues/4425
2024-04-18 10:45:31 +02:00
Sigma Dimensions (Yass)
bc833e43ae
fix construction schedule import without IfcProject #4412
2024-04-17 14:46:06 +02:00
Sigma Dimensions (Yass)
37b282d330
Fix CSV workschedule import - handle date-related attributes more gracefully
2024-04-16 11:16:08 +02:00
Sigma Dimensions (Yass)
c5879f2c57
improved template for resource csv imports
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
788f2d2044
MSP calendar exceptions are now also imported #3766
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
d7887de3e5
fix msp .xml import: exception days for a standard working week #3766
2024-04-16 10:37:16 +02:00
Martin15135215
2b72291e71
CITATION.cff for ifc4d
2024-04-15 11:07:37 +02:00
Andrej730
75d3da9908
Fixed all unit.add_si_unit uses after fd87747
...
Now they were causing `TypeError: Usecase.__init__() got an unexpected keyword argument 'name'`
2024-04-15 09:25:48 +02:00
Sigma Dimensions
8083a635a8
You can now import work schedules from csv
2023-03-28 04:04:48 +00:00
Erik Abrahamsson
d9afb0f8a2
Fix translation of days in Powerproject importer
2022-11-12 08:32:19 +11:00
Dion Moult
a7febaa9b0
Fix astapowerproject import to ifc which seemed mostly broken for some reason
2022-11-11 11:38:09 +11:00
garylzimmer
3b81c158f3
Added auto renaming for null project name ( #2478 )
...
Sorry it took me almost a year to implement @aothms excellent suggestion!
https://github.com/IfcOpenShell/IfcOpenShell/issues/1954#issuecomment-1002463624
2022-10-07 20:36:25 +11:00
bosonprojets
4689cc858a
BBIM Feature to import resources data from CSV
2022-09-09 02:23:53 +01:00
Sigma Dimensions
b44a1cb2e2
Fix 4d import context
2022-09-05 01:46:19 +01:00
Dion Moult
ce3a6bba0f
Fix bug where MS Project files with optional weekdays failed to import
2022-06-10 19:07:58 +10:00
Dion Moult
a4434413d2
Fix bug where rooted tasks with no subactivities would not export correctly to P6
2022-05-31 15:36:13 +10:00
Dion Moult
d2ad4b2b68
Allow rooted tasks when exporting schedules to P6XML
2022-05-29 11:15:37 +10:00
Dion Moult
67522e03d1
Fix import error bugs when importing P6XML to enterprise environments
2022-05-27 17:17:31 +10:00
Dion Moult
3cf9017f27
New IFC2MSP conversion tool in IFC4D to convert IFC to Microsoft Project
2022-02-21 19:56:06 +11:00
Dion Moult
21479482b4
Fix bug where MS project durations expressed in hours were not parsed correctly
2022-02-21 19:55:32 +11:00