OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#56012] all Viepoints are saved to the last BCF
Eric Schubertf764d138f388
diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfileindex 01a1cd5d9c3..bc05096843d 100644--- a/docker/dev/backend/Dockerfile+++ b/docker/dev/backend/Dockerfile@@ -46,6 +46,7 @@ RUN apt updateRUN apt install watchexec-cliCOPY ./docker/dev/backend/scripts/setup /usr/sbin/setup+COPY ./docker/dev/backend/scripts/setup-bim /usr/sbin/setup-bimCOPY ./docker/dev/backend/scripts/run-app /usr/sbin/run-app# The following lines are needed to make sure the file permissions are setup correctly after the volumes are mounteddiff --git a/docker/dev/backend/scripts/setup-bim b/docker/dev/backend/scripts/setup-bimnew file mode 100755index 00000000000..34933eba841--- /dev/null+++ b/docker/dev/backend/scripts/setup-bim@@ -0,0 +1,36 @@+#!/bin/sh++apt-get install -y wget unzip++# https://learn.microsoft.com/en-gb/dotnet/core/install/linux-debian#debian-12+wget --quiet https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O /tmp/packages-microsoft-prod.deb+dpkg -i /tmp/packages-microsoft-prod.deb+rm /tmp/packages-microsoft-prod.deb++apt-get update -qq+apt-get install -y dotnet-runtime-6.0 # required for BIM edition++tmpdir=$(mktemp -d)+cd $tmpdir++# Install XKT converter+npm install -g @xeokit/[email protected]++# Install COLLADA2GLTF+wget --quiet https://github.com/KhronosGroup/COLLADA2GLTF/releases/download/v2.1.5/COLLADA2GLTF-v2.1.5-linux.zip+unzip -q COLLADA2GLTF-v2.1.5-linux.zip+mv COLLADA2GLTF-bin "/usr/local/bin/COLLADA2GLTF"++# IFCconvert+wget --quiet https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.6.0-517b819-linux64.zip+unzip -q IfcConvert-v0.6.0-517b819-linux64.zip+mv IfcConvert "/usr/local/bin/IfcConvert"++wget --quiet https://github.com/bimspot/xeokit-metadata/releases/download/1.0.1/xeokit-metadata-linux-x64.tar.gz+tar -zxvf xeokit-metadata-linux-x64.tar.gz+chmod +x xeokit-metadata-linux-x64/xeokit-metadata+cp -r xeokit-metadata-linux-x64/ "/usr/lib/xeokit-metadata"+ln -s /usr/lib/xeokit-metadata/xeokit-metadata /usr/local/bin/xeokit-metadata++cd /+rm -rf $tmpdirdiff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.tsindex a57630e39a8..60736b35cef 100644--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts@@ -74,6 +74,7 @@ export class BcfNewWpAttributeGroupComponent extends BcfWpAttributeGroupComponen}),).subscribe(() => {+ this.viewpointsService.resetBcfTopic();this.showIndex = this.galleryViewpoints.length - 1;});}diff --git a/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts b/frontend/src/app/features/bim/bcf/helper/viewpoints.service.tsindex 104f5e6a191..791a4ff861f 100644--- a/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts+++ b/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts@@ -42,7 +42,7 @@ import { HalResource } from 'core-app/features/hal/resources/hal-resource';@Injectable()export class ViewpointsService {- topicUUID:string|number;+ topicUUID:string|number|null = null;@InjectField() bcfApi:BcfApiService;@@ -114,8 +114,12 @@ export class ViewpointsService {);}+ public resetBcfTopic():void {+ this.topicUUID = null;+ }+public setBcfTopic$(workPackage:WorkPackageResource):Observable<string|number> {- if (this.topicUUID) {+ if (this.topicUUID !== null) {return of(this.topicUUID);}const topicHref = (workPackage.bcfTopic as HalResource)?.href;diff --git a/modules/bim/app/services/bim/ifc_models/update_service.rb b/modules/bim/app/services/bim/ifc_models/update_service.rbindex 151c0b84eeb..8650bbff790 100644--- a/modules/bim/app/services/bim/ifc_models/update_service.rb+++ b/modules/bim/app/services/bim/ifc_models/update_service.rb@@ -38,6 +38,7 @@ module Bimenddef after_perform(service_result)+ puts "update the model: #{service_result.result}"if service_result.success?# As the attachments association does not have the autosave option, we need to remove the# attachments ourselves