Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Thank you very much for your explanation.

 

Now I managed to rename the welded symbol.

(If I rename it in the drawing resources folder luckily also the instance on the drawing sheet gets renamed by inventor. When I afterwards update the drawing symbol from my template, the sketch symbol gets updated/changed.) 

 

I just add my few lines of code to rename the sketch symbol here, maybe it is useful for someone.

Dim oDrawDoc As DrawingDocument = ThisDoc.Document 

'This is the name of the symbol
Dim SymbolName As String = "Welding Data"
Dim oldSymbolName As String = "Welding Data Stainless Steel"
'check file type 
If ThisDoc.Document.DocumentType <> kDrawingDocumentObject Then
Return
End If


Dim oSymbolDef As SketchedSymbolDefinition = Nothing
Try
	oSymbolDef = ThisDrawing.Document.SketchedSymbolDefinitions.Item(oldSymbolName)
	oSymbolDef.Name = SymbolName
	
Catch
	'MsgBox ("was no symbol there")
End Try