Hi @ReneRepina. Yes, that is possible. Below is a link to the method for doing that.
SketchedSymbolDefinition.CopyTo
The second thing it asks for is 'Optional', and a Boolean, asking if you want to 'Replace' an existing instance of this definition, if one already exists in the 'destination' DrawingDocument.
PS. Here is a quick example of how to use it:
When you have an old drawing open, run this rule, and it will open your 'template' (or just another) drawing (invisibly), get the specific SketchedSymbolDefinition from it, copy it to your current drawing, and replace existing (if any) in the process, then dispose of the template drawing it opened invisibly, then update the current drawing.
Sub Main
Dim oDDoc As DrawingDocument = TryCast(ThisDoc.Document, Inventor.DrawingDocument)
If oDDoc Is Nothing Then Return
Dim oTDDoc As DrawingDocument = ThisApplication.Documents.Open("C:\Temp\MyDrawingTemplate.idw", False)
Dim oTSSDef As SketchedSymbolDefinition = oTDDoc.SketchedSymbolDefinitions.Item("MySketchedSymbolDefinition")
Dim oSSDef As SketchedSymbolDefinition = oTSSDef.CopyTo(oDDoc, True)
oTDDoc.ReleaseReference()
oDDoc.Update2(True)
End Sub
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.
Wesley Crihfield

(Not an Autodesk Employee)