which styles are you going to copy? LinearStyles, DimensionStyles, DashStyles, etc...?
AFAIK, there is no direct API to copy any styles from one document to another, so my advice is to recreate/modify the styles in the new document with exactly the same properties like your template document.
thank you for answering.
I need to achieve the same functionality via API as an user can do by using interactively the style organizer: Copy defined styles from a defined template DFT document or from a defined material.mtl file into the current opened DFT document.
Adding a new DrawingStyle to the opened DFT document is supported by the API, as you mentioned, but recursively taking over all objects from the equivalent source DocumentStyle seems to be quite messy and time consuming (=expensive) to program/realize. I hoped to find in the API a way to assign whole objects.
Here the help info for using the style organizer interactively, what i would like to implement without user interaction:
On the Style dialog box, set the Style Type box to the type of style you want to organize.
On the Style dialog box, click the Organizer button.
On the Style Organizer dialog box, click the style in the File Name list that you want to copy.
Click the Copy button.