Using DanEDU.FamilyDocument.AddSharedParameter I can successfully add shared parameters and values BUT if the shared parameter already exists it fails.
How to check if a parameter exits first?
In addition to this I want to add a value to the shared parameter without overwriting any existing value - is this possible?
@erfajo I have tried to update to your latest version and hit a few issues. it was failing to open and close the documents so I removed that section and ran it on the open document, it appears to run correctly:
Almost as though the family get swallowed by the AddSharedParameter script!
Ah, after a lot of testing I believe I have found the issue, if all the parameters are already in the family it exits the script with a null meaning it hangs as the rest of the blocks never run.
Just to confirm the node works fine if there is at least one parameter to add but the process hangs if all the parameters you are trying to add already exist.
This is because in this case the output is an error message rather than the original document so the following nodes have nothing to work with and of course the Application.CloseDocument node fails as there is no document to close.
I got round it by commenting out the final if statement: