When setting viewpoint directly request focus for OP window back

pull/8669/head
Wieland Lindenthal 4 years ago
parent 5a468b8f6d
commit c6f3c71ba8
  1. 5
      frontend/src/app/modules/bim/revit_add_in/revit-bridge.service.ts

@ -71,7 +71,10 @@ export class RevitBridgeService extends ViewerBridgeService {
public showViewpoint(workPackage:WorkPackageResource, index:number) {
this.viewpointsService
.getViewPoint$(workPackage, index)
.subscribe((viewpoint:BcfViewpointInterface) => this.sendMessageToRevit('ShowViewpoint', this.newTrackingId(), JSON.stringify(viewpoint)));
.subscribe((viewpoint:BcfViewpointInterface) => {
this.sendMessageToRevit('ShowViewpoint', this.newTrackingId(), JSON.stringify(viewpoint));
this.sendMessageToRevit("SetBrowserToForeground", this.newTrackingId(), '');
});
}
sendMessageToRevit(messageType:string, trackingId:string, messagePayload?:any) {

Loading…
Cancel
Save