Tue 31. Jul 2018, 10:21
Hi Karol,
I am not sure that I understand what you really like to do. What do you mean by export from documents to flow fragments?
For my understanding an export is a task that creates data that leaves the scope of articy:draft e.g. a JSON or XML file or something like that.
So it seems to me that you like to create a flow based on a document. If that is the case a simple drag and drop of a document (or some of its chapters) from the navigator to the flow might be the thing you like to do.
If you like to create new objects use the Session.Create...() methods. All these methods require a parent reference, so the method can check if the desired object can be created within that parent container and to automatically add it to the parents children list.
The Session.DeleteObject deletes an object, its own children, dependent objects like incoming or outgoing connections and unlinks the object from the children of its parent.