When I switch the frontstage toTwo Viewports, an error occurs: "IModel is not open for rpc". #6708
Unanswered
JingWang111
asked this question in
Q&A
Replies: 1 comment 3 replies
-
When defining |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My code is as follows:
When viewFlag =="syncViewport", I will execute the SyncViewportProps class. However, an error occurs in the code viewState = await iModel?.views.load(defaultViewId); with the message "Uncaught (in promise) Bad Request: IModel is not open for rpc". The defaultViewId is valid and the same as the one used to load the default view.
And I have found another issue: when I comment out the onIModelConnected={_onIModelConnection} in the component, executing the SyncViewportProps class has no problems. What is the reason for this, and how can it be solved?
Beta Was this translation helpful? Give feedback.
All reactions