Copying a screen

Can anyone tell you how to copy a screen from one project to another project without errors? I made the copy, but it is giving the error attached and does not open.

Try to export ais and then import that screen in your another project

I did exactly that, but when I go to the new project and open the copied screen, this error appears.

Hi dear,

What does the error report say?
Are you able to share the AIS file in this topic?

May be you have extensions in that screen inside project but when you import that screen in another project it shows error because you have to import those extensions in another project which are used in screen
Or if its not getting fixed share the ss

This error dialog doesn’t provide main issues/what’s the cause. I faced it multiple times, eg when connecting to companion, deleting blocks, trying to empty my packbag etc.

I know, it’s happened to me too, but I can assure you that more than once it has helped me solve or at least understand the problem.
That said, I agree that the rest of the time it hasn’t been useful at all :grin:

Explain it well :joy:

1 Like

Unfortunately it happened some time ago and I don’t really remember what it was about, but there was the name of a function that pointed me toward the cause of the problem.

RayzZz really :joy:

First, export your project as an AIA file. Then, open the first project using 7-Zip by selecting Open Archive. Inside the archive, you will find a folder named src. Open that folder and keep going inside the folders until you see the “.bky” and “.scm” files.

When you find them, you will see two files for each screen you want to copy, for example:
“Screen1.bky” and “Screen1.scm”

Now, copy those two files and place them in a folder on your desktop.

After that, go back and open the second project in the same way you opened the first one. Navigate to the same location inside the “src” folder. Then, paste the two copied files there.

That’s it. Now you can re-import your project again.

Important Notes:

  1. Both files must have the same screen name before the dot, such as:
    “Screen1.bky” and “Screen1.scm”
  2. The screen name must not conflict with an existing screen name in the second project. For example, if “Screen1” already exists, do not paste another screen with the same name.