<?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 Re: How to batch-edit view labels in existing drawing? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9567951#M141435</link>
    <description>&lt;P&gt;Hi! Another way to do it is to use the Drawing Batch Update tool included in the SDK tool in&amp;nbsp;C:\Users\Public\Documents\Autodesk\Inventor 2021\SDK.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 21:21:26 GMT</pubDate>
    <dc:creator>johnsonshiue</dc:creator>
    <dc:date>2020-06-08T21:21:26Z</dc:date>
    <item>
      <title>How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9565954#M141433</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have in front of me an old company drawing with 23 sheets, and many more base-views with labels. I need to edit these view labels to match our current template's "view label defaults". This will show some model iProperties such as &amp;lt;Part Number&amp;gt;, &amp;lt;Filename&amp;gt; etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I can &lt;STRONG&gt;automatically change&lt;/STRONG&gt; &lt;STRONG&gt;all the existing view labels&lt;/STRONG&gt; to the new format that I want? I know how to do it manually, but that's what I'm trying to avoid in order to save some time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Autodesk Inventor Professional 2020&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;64-Bit Edition&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Build: 310, Release: 2020.2.1 - Date: Fri 01/10/2020&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 01:38:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9565954#M141433</guid>
      <dc:creator>hubert.baissac</dc:creator>
      <dc:date>2020-06-08T01:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9566969#M141434</link>
      <description>&lt;P&gt;You would likely need to use ilogic to loop through each and modify as needed..&lt;/P&gt;
&lt;P&gt;This thread should get you started..&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-code-to-change-view-label-text/td-p/3625130" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-code-to-change-view-label-text/td-p/3625130&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:37:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9566969#M141434</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2020-06-08T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9567951#M141435</link>
      <description>&lt;P&gt;Hi! Another way to do it is to use the Drawing Batch Update tool included in the SDK tool in&amp;nbsp;C:\Users\Public\Documents\Autodesk\Inventor 2021\SDK.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9567951#M141435</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2020-06-08T21:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9570618#M141436</link>
      <description>&lt;P&gt;Thanks for that &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt;&amp;nbsp;. I will look into it&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 22:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9570618#M141436</guid>
      <dc:creator>hubert.baissac</dc:creator>
      <dc:date>2020-06-09T22:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9570620#M141437</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had no idea SDK tools existed. I gave this a go but it looks like the batch update tool will not update existing view labels. Unless I am doing something wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 22:24:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9570620#M141437</guid>
      <dc:creator>hubert.baissac</dc:creator>
      <dc:date>2020-06-09T22:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9570708#M141438</link>
      <description>&lt;P&gt;OK so I've had a go at modifying the iLogic code written by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&amp;nbsp;on the below forum as directed by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt;&amp;nbsp;:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-code-to-change-view-label-text/m-p/3633048#M40331" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-code-to-change-view-label-text/m-p/3633048#M40331&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First and foremost I don't have much experience with iLogic, but I have tinkered a bit with it before. The code attached does work, much to my surprise, and is &lt;STRONG&gt;nearly&lt;/STRONG&gt;&amp;nbsp;what I'm after.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only property missing in my labels is &lt;STRONG&gt;&amp;lt;FILENAME&amp;gt;.&amp;nbsp;&lt;/STRONG&gt;It's a model property that can easily be added when editing a view label, but I can't find it in the "Inventor iProperty Name Table" (see attached), and therefore I can't refer to it in the iLogic code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone have a solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oSSet As SelectSet = ThisDoc.Document.SelectSet
If oSSet.Count = 0 Then
	MessageBox.Show("You must select a drawing view first", "iLogic")
Exit Sub
End If

'Reference to the drawing view from the 1st selected object
Dim oView As DrawingView = TryCast(oSSet.Item(1), DrawingView)

If oView IsNot Nothing Then
oView.ShowLabel = True
'format the model iproperties
oTitle = "&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Inventor Summary Information' Property='Title' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='2'&amp;gt;TITLE&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
oDescription = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Design Tracking Properties' Property='Description' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='29'&amp;gt;DESCRIPTION&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
oComments = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Inventor Summary Information' Property='Comments' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='6'&amp;gt;COMMENTS&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
oPartNumber = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Design Tracking Properties' Property='Part Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'&amp;gt;PART NUMBER&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
'oStringMass = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.35'&amp;gt;EST UNIT MASS = &amp;lt;PhysicalProperty PhysicalPropertyID='72449' Precision='2'&amp;gt;MASS&amp;lt;/PhysicalProperty&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
'oStringScale = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.3'&amp;gt;(Scale &amp;lt;DrawingViewScale/&amp;gt;)&amp;lt;/StyleOverride&amp;gt;"

'add to the view label
oView.Label.FormattedText = oTitle &amp;amp; oDescription &amp;amp; oComments &amp;amp; oPartNumber    

Else
	MessageBox.Show("The selected object is not a drawing view", "iLogic")
End If


&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 23:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9570708#M141438</guid>
      <dc:creator>hubert.baissac</dc:creator>
      <dc:date>2020-06-09T23:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9571697#M141439</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4669561"&gt;@hubert.baissac&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSSet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SelectSet&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;SelectSet&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSSet&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt; = 0 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"You must select a drawing view first"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;'Reference to the drawing view from the 1st selected object&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;TryCast&lt;/SPAN&gt;(&lt;SPAN&gt;oSSet&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1), &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;)

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ShowLabel&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;'format the model iproperties&lt;/SPAN&gt;
&lt;SPAN&gt;oTitle&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Inventor Summary Information' Property='Title' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='2'&amp;gt;TITLE&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;oDescription&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Design Tracking Properties' Property='Description' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='29'&amp;gt;DESCRIPTION&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;oComments&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Inventor Summary Information' Property='Comments' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='6'&amp;gt;COMMENTS&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;oPartNumber&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;&amp;lt;Property Document='model' PropertySet='Design Tracking Properties' Property='Part Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'&amp;gt;PART NUMBER&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;oFileName&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oSSet&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN&gt;ReferencedFile&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;


&lt;SPAN&gt;'add to the view label&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Label&lt;/SPAN&gt;.&lt;SPAN&gt;FormattedText&lt;/SPAN&gt; = &lt;SPAN&gt;oTitle&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oDescription&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oComments&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oPartNumber&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oFileName&lt;/SPAN&gt;   

&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"The selected object is not a drawing view"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 12:18:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9571697#M141439</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2020-06-10T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9571767#M141440</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4669561"&gt;@hubert.baissac&lt;/a&gt;&amp;nbsp; And if what you really wanted was the filename and Windows path of the file then replace the oFileName line in the code above with this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;oFileName = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Underline='False' FontSize='0.2'&amp;gt;" &amp;amp; oSSet.Item(1).ReferencedFile.FullFileName &amp;amp; "&amp;lt;/StyleOverride&amp;gt;"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jun 2020 12:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9571767#M141440</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2020-06-10T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to batch-edit view labels in existing drawing?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9573153#M141441</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt;&amp;nbsp;Legend! That does exactly what I want it to.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help, this will speed things up dramatically.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 23:35:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-batch-edit-view-labels-in-existing-drawing/m-p/9573153#M141441</guid>
      <dc:creator>hubert.baissac</dc:creator>
      <dc:date>2020-06-10T23:35:49Z</dc:date>
    </item>
  </channel>
</rss>

