Skip to content

Snapshot Creation #126

Answered by scsewall
sajidhashmi asked this question in Q&A
Discussion options

You must be logged in to vote

The createFrom() API takes an IModelDb parameter (an open iModel) instead of a file name to ensure that you have permission to open the file before allowing its contents to be copied. You would just call one of the open methods on the seed file before passing the returned IModelDb into createFrom().

Your error message suggests that the iModel that you are trying to copy has a password or encryption key protecting its contents. The first step would be to confirm whether or not that is true.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by calebmshafer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants