I want to import a view with all generated objects (for example valves, DI's, AI's, ...) in stead of dragging and dropping (and renaming the embedded view) for each object separate. In the export of the view I change the view.json with the generated objects. But if I import this again with this objects, it's an 'unknown' screen, maybe because the thumbnail.png is the old one? Has someone advice on this?
How are you modifying the files?
Like this, or with some extral program?
Its definlty not about the thumbnail. but the gateway/designer do take some time to update these files if changed. Try restarting the gateway and designer to see if the changes went through.
If a restart doesnt help than your file is maybe badly constructed, see if there are any logs
If you're getting an "unable to get the view config" error, then there's something wrong with the view.json file that you're importing.
I'd definitely run a system.project.requestScan() after importing that file. It will refresh all project resources, including your view.json.
Modifying/Generating the view.json file with generation tool. But started to add 1 object. Now I just exported a project and then adjusted a name "" and imported the same file again followed with the system.project.requestScan (to be sure there are no faults in the json file). The name is not changing. I'm just changing the view.json now and import => This project has already the following: .... => Overwrite All
Found this solution: It’s probably easier to do do piecemeal modifications entirely from the designer. Shift + Right Click a view node and you can copy/paste the view JSON directly. Thanks