<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic rename sketched symbol in drawing resources. is it possible? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13189132#M174487</link>
    <description>&lt;P&gt;Hi.&lt;BR /&gt;I am wondering if it is possible to rename a sketch symbol (which is used on the drawing) in the model browser (drawing resources).&lt;BR /&gt;I saw that one can rename a title block, but I also read that the sketch symbols "name" is "read only".&lt;/P&gt;&lt;P&gt;In this example a title block is renamed, is that also possible with a sketch symbol? I could not figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'rename the definition in the Drawing Resources folder
	        oTitleBlock.Definition.Name = "D titleblock" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background why I want to rename a sketch symbol:&lt;BR /&gt;We have 4 different sketch symbols for welding data. Lets call them "A", "B", "D" and "E".&lt;BR /&gt;Those welding data stamps contain different information for example for normal steel or stainless steel, and so on...&lt;BR /&gt;It is always only one of these symbols on a drawing and in the drawings resources folder.&lt;BR /&gt;But now we concluded that these symbols contain too much unnecessary information and all should be replaced by only one more basic symbol.&lt;BR /&gt;So I made a rule that will replace the existing sketch symbol "A" with the new very basic symbol "A" that is stored on a sketch library template (.idw).&lt;BR /&gt;In my rule the name of the existing and the new symbol from the template has to be "A".&lt;BR /&gt;I want to also replace "B", "D" and "E" with the new very basic symbol "A", therefor I want to first rename "B", "D" and "E" to "A".&lt;BR /&gt;I hope I could explain the background well enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I am still using Inventor 2021&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 11:30:03 GMT</pubDate>
    <dc:creator>Jakob_Hamburg</dc:creator>
    <dc:date>2024-12-03T11:30:03Z</dc:date>
    <item>
      <title>rename sketched symbol in drawing resources. is it possible?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13189132#M174487</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;I am wondering if it is possible to rename a sketch symbol (which is used on the drawing) in the model browser (drawing resources).&lt;BR /&gt;I saw that one can rename a title block, but I also read that the sketch symbols "name" is "read only".&lt;/P&gt;&lt;P&gt;In this example a title block is renamed, is that also possible with a sketch symbol? I could not figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'rename the definition in the Drawing Resources folder
	        oTitleBlock.Definition.Name = "D titleblock" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background why I want to rename a sketch symbol:&lt;BR /&gt;We have 4 different sketch symbols for welding data. Lets call them "A", "B", "D" and "E".&lt;BR /&gt;Those welding data stamps contain different information for example for normal steel or stainless steel, and so on...&lt;BR /&gt;It is always only one of these symbols on a drawing and in the drawings resources folder.&lt;BR /&gt;But now we concluded that these symbols contain too much unnecessary information and all should be replaced by only one more basic symbol.&lt;BR /&gt;So I made a rule that will replace the existing sketch symbol "A" with the new very basic symbol "A" that is stored on a sketch library template (.idw).&lt;BR /&gt;In my rule the name of the existing and the new symbol from the template has to be "A".&lt;BR /&gt;I want to also replace "B", "D" and "E" with the new very basic symbol "A", therefor I want to first rename "B", "D" and "E" to "A".&lt;BR /&gt;I hope I could explain the background well enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I am still using Inventor 2021&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 11:30:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13189132#M174487</guid>
      <dc:creator>Jakob_Hamburg</dc:creator>
      <dc:date>2024-12-03T11:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: rename sketched symbol in drawing resources. is it possible?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13189395#M174491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3717904"&gt;@Jakob_Hamburg&lt;/a&gt;.&amp;nbsp; Yes, we should be able to rename individual&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SketchedSymbolDefinition" target="_blank" rel="noopener"&gt;SketchedSymbolDefinition&lt;/A&gt;&amp;nbsp;objects, which are directly obtained from the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingDocument_SketchedSymbolDefinitions" target="_blank" rel="noopener"&gt;DrawingDocument.SketchedSymbolDefinitions&lt;/A&gt;&amp;nbsp;property, which returns the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SketchedSymbolDefinitions" target="_blank" rel="noopener"&gt;SketchedSymbolDefinitions&lt;/A&gt;&amp;nbsp;collection object.&amp;nbsp; Those are what we see in the drawing resources folder.&amp;nbsp; Then there are the individual &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SketchedSymbol" target="_blank" rel="noopener"&gt;SketchedSymbol&lt;/A&gt;&amp;nbsp;objects, which are the individual 'placed instances' that are created from those definitions, and placed onto the sheets.&amp;nbsp; These are different objects than their definitions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=SketchedSymbolDefinition_Name" target="_blank" rel="noopener"&gt;SketchedSymbolDefinition.Name&lt;/A&gt;&amp;nbsp;(a Read/Write property with a String type value)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=Sheet_SketchedSymbols" target="_blank" rel="noopener"&gt;Sheet.SketchedSymbols&lt;/A&gt;&amp;nbsp;is a property of each Sheet object, representing the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SketchedSymbols" target="_blank" rel="noopener"&gt;SketchedSymbols&lt;/A&gt;&amp;nbsp;collection of them that have been placed on that specific Sheet, if any.&amp;nbsp; These are not the main definitions, but just 'placed instances' created from the main definition.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=SketchedSymbol_Name" target="_blank" rel="noopener"&gt;SketchedSymbol.Name&lt;/A&gt;&amp;nbsp;(a Read/Write property with a String type value)&lt;/P&gt;
&lt;P&gt;Just don't try to change the name of a definition that is currently being used by some existing placed instances which were created based upon that definition.&amp;nbsp; When there are placed instances referring to a definition, then you may have to delete all of those placed instances on all sheets first, before it will let you rename the definition that they were based on.&amp;nbsp; Plus, it most likely will not allow you to have two definitions with the same exact name, in the same drawing document.&amp;nbsp; But, you can replace an existing definition in your current drawing with one from the definitions template / library, with the same name.&amp;nbsp; Because the new one will be replacing the existing one, there will never be to of them in that drawing with the same name.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:28:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13189395#M174491</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-12-03T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: rename sketched symbol in drawing resources. is it possible?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13194205#M174546</link>
      <description>&lt;P&gt;Thank you very much for your explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I managed to rename the welded symbol.&lt;/P&gt;&lt;P&gt;(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.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just add my few lines of code to rename the sketch symbol here, maybe it is useful for someone.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;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 &amp;lt;&amp;gt; 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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 06:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rename-sketched-symbol-in-drawing-resources-is-it-possible/m-p/13194205#M174546</guid>
      <dc:creator>Jakob_Hamburg</dc:creator>
      <dc:date>2024-12-05T06:44:07Z</dc:date>
    </item>
  </channel>
</rss>

