VC4 Visualization: how to adapt data points in text editor

Hello,
is there a possibility to modify the data points of a VC4 visualization directly in the corresponding files in a text editor before opening the VC4 object?
This would save a lot of time when VC4 Object is copied to another project.

something like

If I do this the copied VC4 looses all modified data point connections.

Best Regards
Valerio

Hi, try to add your project to git repository, change datapoint and save it. And check with git dif which files and parameters were modified.

Hi Jaroslav,
Thank you for your help.
I didn’t need to go over git to compare, I used FreeFileSync (the best file comparing tool).

It shows me that there is a file which I didn’t expect to be involved:
“.\Logical\VCShared\DataSources\DataSource.dso”

The process is still not clear for me.

Best Regards
Valerio

Hi Valerio, problem with file compare you can see the modified file. But with git you can immediately see not only the file but also what inside of the file was changed. I would go this way. But it is up to you. Tbh the things you are looking for is not documented, so if anyone does not have experiences with this, you have to drill down more to it by yourself. You can share with us your findings :slight_smile:

1 Like

Hi Jaroslav

Thanks for the hint (I did compare with winmerge).

Finally I didn’t figure out how to modify the DataSource.dso file successfully.
And I found following process it most efficiently:

  1. We have to reach a compilable status of the task controlling the VC-Object
    (In my projects I use to have only one task controlling one VC-Object).
  2. Copy the VC-Object from the source project.
  3. Open the VC-Object and work with the “find + replace” dialog over the entire VC-Object.
    The replacing process is checking if the new data point expression is valid and if not
    leaves the old expression. So the old not valid expressions are still there and the VC-
    Object can be saved in-between.
    (The find replace dialog is a bit buggy and causes the AS to crash. I think it is when
    searching for something which does not exist, but honestly I didn’t investigate, as I was
    happy to save a lot of engineering time.)

Best Regards
Valerio

1 Like

cool, thanks for your recapitulation.