<?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: Adding Text to Inventor Dimension with iLogic or VBA in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793277#M126320</link>
    <description>&lt;P&gt;You may work with radius dims and with linear dims if declare object variable oDim as base class GeneralDimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need staked text you may use XML tag &amp;lt;Stack&amp;gt; (see Inventor API Help for “XML Tags for FormattedText“ for more information).&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Here is updated sample:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub DIM_ChangeText_2()
  Dim oDoc As DrawingDocument
  Set oDoc = ThisApplication.ActiveDocument
  Dim oSSet As SelectSet
  Set oSSet = oDoc.SelectSet
  'reference to the selected dimension
  Dim oDim As GeneralDimension
  Set oDim = oSSet.Item(1)
 
  'reference to the DimensionText object
  Dim oDimensionText As DimensionText
  Set oDimensionText = oDim.Text
 
  'change dimension text
  oDimensionText.FormattedText = "&amp;lt;DimensionValue/&amp;gt; &amp;lt;Stack&amp;gt;AAA/BBB&amp;lt;/Stack&amp;gt;"
  Beep
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2014 15:05:50 GMT</pubDate>
    <dc:creator>Vladimir.Ananyev</dc:creator>
    <dc:date>2014-02-04T15:05:50Z</dc:date>
    <item>
      <title>Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4781563#M126317</link>
      <description>&lt;P&gt;Does anyone know how to add pre-defined text to a Selected Dimension with either iLogic or VBA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to create lots of drawing with a lot of dimensions with the same wording.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Layout is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;DIM&amp;gt; Maximum&lt;/P&gt;&lt;P&gt;Product Width&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is select the Dimension, and then click and button on a form (or VBA USerform) that adds pre-defined text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone been able to do this as it will make my life a lot simpler..&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4781563#M126317</guid>
      <dc:creator>ccoomes</dc:creator>
      <dc:date>2014-01-29T10:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4790535#M126318</link>
      <description>&lt;P&gt;You may change&amp;nbsp;&lt;SPAN&gt;DimensionText.FormattedText property in the selected dimension.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try the following VBA sample. It adds "&lt;SPAN&gt;ZZZ" string to the selected dimension text.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub DIM_ChangeText()
  Dim oDoc As DrawingDocument
  Set oDoc = ThisApplication.ActiveDocument
  Dim oSSet As SelectSet
  Set oSSet = oDoc.SelectSet
  'reference to the selected dimension
  Dim oDim As LinearGeneralDimension
  Set oDim = oSSet.Item(1) 
  'refrence to the DimensionText object
  Dim oDimensionText As DimensionText
  Set oDimensionText = oDim.Text
  'print text content
  Debug.Print oDimensionText.Text
  Debug.Print oDimensionText.FormattedText
  'change text
  oDimensionText.FormattedText = "&amp;lt;DimensionValue/&amp;gt; ZZZ"
  Beep
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 11:11:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4790535#M126318</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-03T11:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793239#M126319</link>
      <description>&lt;P&gt;Vladimir,&lt;/P&gt;&lt;P&gt;i removed set in code to make ilogic and code working just perfect. Here is questions:&lt;/P&gt;&lt;P&gt;Code doesn't work with radius dim, and would be nice if text could be in next row. Can this be done?&lt;/P&gt;&lt;P&gt;Also multi value of text to choose which text to pick.&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 14:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793239#M126319</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-04T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793277#M126320</link>
      <description>&lt;P&gt;You may work with radius dims and with linear dims if declare object variable oDim as base class GeneralDimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need staked text you may use XML tag &amp;lt;Stack&amp;gt; (see Inventor API Help for “XML Tags for FormattedText“ for more information).&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Here is updated sample:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub DIM_ChangeText_2()
  Dim oDoc As DrawingDocument
  Set oDoc = ThisApplication.ActiveDocument
  Dim oSSet As SelectSet
  Set oSSet = oDoc.SelectSet
  'reference to the selected dimension
  Dim oDim As GeneralDimension
  Set oDim = oSSet.Item(1)
 
  'reference to the DimensionText object
  Dim oDimensionText As DimensionText
  Set oDimensionText = oDim.Text
 
  'change dimension text
  oDimensionText.FormattedText = "&amp;lt;DimensionValue/&amp;gt; &amp;lt;Stack&amp;gt;AAA/BBB&amp;lt;/Stack&amp;gt;"
  Beep
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793277#M126320</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-04T15:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793499#M126321</link>
      <description>&lt;P&gt;It is working but i prefer text to be below dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793499#M126321</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-04T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793541#M126322</link>
      <description>&lt;P&gt;No problem. &amp;nbsp;Try this:&lt;/P&gt;
&lt;PRE&gt;oDimensionText.FormattedText = "&amp;lt;DimensionValue/&amp;gt;&amp;lt;br/&amp;gt;AAA&amp;lt;br/&amp;gt;BBB&amp;lt;br/&amp;gt;CCC"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/80925i39CC8EADDC3A45F6/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Dim.PNG" title="Dim.PNG" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793541#M126322</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-04T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793589#M126323</link>
      <description>&lt;P&gt;Vladimir,&lt;/P&gt;&lt;P&gt;as always you made this perfect.&lt;/P&gt;&lt;P&gt;I do have final question.Can we make this so text to be pulled either from excel or from multi value parameter.There is a lot text in drawing s as TYP., O.C. etc etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:08:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793589#M126323</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-04T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793729#M126324</link>
      <description>&lt;P&gt;Let’s suppose we have created the following iLogic rule in the drawing document.&amp;nbsp; (Of course, you may change dimension text from the rule in the model document. It’s up to you.)&lt;/P&gt;
&lt;P&gt;This rule:&lt;/P&gt;
&lt;P&gt;1) finds the reference to the model file that was used to create the drawing.&lt;/P&gt;
&lt;P&gt;2) read the value of the text parameter in the model document. This parameter could be multivalue one. &amp;nbsp;Here parameter value is saved in the string variable Value. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) finds the reference to the dimension object.&amp;nbsp; (Here I used the second dimension in the active sheet - for simplicity).&lt;/P&gt;
&lt;P&gt;4) changes dimension text adding the string Value below the current dimension text.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;'get model document (part or assembly) from the parent DrawingDocument
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
'save text parameter "MyText" value in the string variable Value
Dim Value As String = Parameter(modelName, "MyText")
'Note:  this string Value could be read from any source (e.g., excel sheet).

Dim oDoc As DrawingDocument = ThisDrawing.Document
Dim oSheet As Sheet =  ActiveSheet.Sheet
'reference to some dimension
Dim oDim As GeneralDimension = oSheet.DrawingDimensions.Item(2)
'refrence to the DimensionText object
Dim oDimensionText As DimensionText = oDim.Text

'create text that should be placed below the dimension
Dim St As String = "&amp;lt;br/&amp;gt;" &amp;amp; Value

'change dimension text
oDimensionText.FormattedText = "&amp;lt;DimensionValue/&amp;gt;" &amp;amp; St&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Now if you run this rule you will see the model parameter value in the second line of dimension text.&lt;/P&gt;
&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:57:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793729#M126324</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-04T17:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793799#M126325</link>
      <description>&lt;P&gt;I do have 3 views in my sheet. Code is working, but why is working only on one dimension. If i need on secon dim. to add text it happend nothing. No error but no changes.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 18:19:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4793799#M126325</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-04T18:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4794961#M126326</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Select at least one dimension and run the following rule.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It filters GeneralDimension objects (ignoring any other selected entities) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and then modifies dimension text in all selected dimensions as was described earlier.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Button on iLogic form should be useful to initiate rule execution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;'get model document (part or assembly) from the parent DrawingDocument
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
'save text parameter "MyText" value in the string variable Value
Dim Value As String = Parameter(modelName, "MyText")
'Note:  this string Value could be read from any source (e.g., excel sheet).

Dim oDoc As DrawingDocument = ThisDrawing.Document
Dim oSSet As SelectSet = oDoc.SelectSet

If oSSet.Count = 0 Then
    MessageBox.Show("Select at least one dimension please", "DIM", _
        MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
    For Each obj As Object In oSSet
        'filter dimensions, ignore other selected entities
        If TypeOf obj Is GeneralDimension Then
            'reference to the selected dimension
            Dim oDim As GeneralDimension = obj
            'refrence to the DimensionText object
            Dim oDimensionText As DimensionText = oDim.Text        
            'change dimension text
            oDimensionText.FormattedText = "&amp;lt;DimensionValue/&amp;gt;" &amp;amp; "&amp;lt;br/&amp;gt;" &amp;amp; Value
        End If
    Next
End If
Beep
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Cheers,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 06:46:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4794961#M126326</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-05T06:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795405#M126327</link>
      <description>&lt;P&gt;Yes, it is working. Time saver. Thanks a lot Vladimir.&lt;/P&gt;&lt;P&gt;Before, ending this case one more question. If parameter MyText is made as Multivalue, what in code need to be changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 10:55:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795405#M126327</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-05T10:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795441#M126328</link>
      <description>&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Do not worry - In my own tests&amp;nbsp;&lt;/SPAN&gt;parameter MyText was created as Multivalue. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So nothing should be changed. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;Enjoy!&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do not forget to mark this iLogic rule as a solution please.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:28:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795441#M126328</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-05T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795525#M126329</link>
      <description>&lt;P&gt;I can't see Mark as solution button to accept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795525#M126329</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-05T12:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795599#M126330</link>
      <description>&lt;P&gt;Sign in and you will see Accept as Solution button in the right bottom corner of every post.&lt;/P&gt;
&lt;P&gt;Another way - via Options drop-down list...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:05:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795599#M126330</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2014-02-05T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795629#M126331</link>
      <description>I'm signed in. I know, I'm always accepting. But there is not such option. I do have reply - quick reply button and in options there is not that option too. Is this because someone else start with this post?</description>
      <pubDate>Wed, 05 Feb 2014 13:17:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795629#M126331</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-05T13:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795639#M126332</link>
      <description>&lt;P&gt;I have not been able to try the code suggested, but I will this afternoon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what I got to work. &amp;nbsp;I know it checks to see if the Dimensions value is hidden, but I could not figure out how to remve this bit and get it to work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does however allow you to select more than 1 Dimension and I use the chr(10) to get the text onto a second line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is based in VBA and not iLogic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Set a reference to the select set of the active document.&lt;BR /&gt;Dim oDoc As DrawingDocument&lt;BR /&gt;Set oDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;Dim oDrawingDims() As DrawingDimension&lt;BR /&gt;&lt;BR /&gt;Dim oItemsCount As String&lt;BR /&gt;oItemsCount = oDoc.SelectSet.Count&lt;BR /&gt;&lt;BR /&gt;Dim oDimText As String&lt;BR /&gt;oDimText = " Maximum" &amp;amp; Chr(10) &amp;amp; "Product Width"&lt;BR /&gt;&lt;BR /&gt;If Not oItemsCount = 1 Then&lt;BR /&gt;Call MessageBoxes.NotASingleDimension&lt;BR /&gt;Exit Sub&lt;BR /&gt;Else&lt;BR /&gt;Dim a As Long&lt;BR /&gt;a = 0&lt;BR /&gt;Dim i As Long&lt;BR /&gt;For i = 1 To oDoc.SelectSet.Count&lt;BR /&gt;If Not oDoc.SelectSet.Item(i) Is Nothing Then&lt;BR /&gt;If TypeOf oDoc.SelectSet.Item(i) Is DrawingDimension Then&lt;BR /&gt;a = a + 1&lt;BR /&gt;ReDim Preserve oDrawingDims(0 To a)&lt;BR /&gt;Set oDrawingDims(a) = oDoc.SelectSet.Item(i)&lt;BR /&gt;Else&lt;BR /&gt;Call MessageBoxes.NotASingleDimension&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;Dim b As Long&lt;BR /&gt;For b = 1 To a&lt;BR /&gt;If oDrawingDims(b).HideValue = False Then&lt;BR /&gt;oDrawingDims(b).Text.FormattedText = oDimText&lt;BR /&gt;Else&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4795639#M126332</guid>
      <dc:creator>ccoomes</dc:creator>
      <dc:date>2014-02-05T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4796119#M126333</link>
      <description>&lt;P&gt;Changed code just a hair. Now parameter is in dwg and parameter is multi value parameter.&lt;/P&gt;&lt;P&gt;I made form with rule and parameters so i can choose which text to use with dimension.&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment --&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;dwgParam&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;modelName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;MyText&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;save text parameter "MyText" value in the string variable Value&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;String&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;DocName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;MyText&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisDrawing&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Document&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSSet&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSSet&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;MessageBox&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Show&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Select at least one dimension please&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;DIM&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;MessageBoxButtons&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;OK&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;MessageBoxIcon&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Information&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Else&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Each&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;obj&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Object&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSSet&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;filter dimensions, ignore other selected entities&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;TypeOf&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;obj&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Is&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;GeneralDimension&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;reference to the selected dimension&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;GeneralDimension&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;obj&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;refrence to the DimensionText object&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDimensionText&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;DimensionText&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;BR /&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;change dimension text&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDimensionText&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FormattedText&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;&amp;lt;DimensionValue/&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;&amp;lt;br/&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Beep&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;!-- EndFragment --&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:46:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4796119#M126333</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2014-02-05T16:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4850387#M126334</link>
      <description>&lt;P&gt;Vladimir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used your code. Many thanks. I have a question which is hopefully a very small modification of this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to amend this code so that instead of inserting the current parameter value into the dimension, it will insert a 'reference' to the parameter, so that if the parameter value changes, the value shown in the dimension will update automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I insert a parameter into the dimension text&amp;nbsp;using the dimension text formatting dialog box, the value will change when the parameter changes. Could your code be amended to achieve the same result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2014 19:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/4850387#M126334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-02T19:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/5441412#M126335</link>
      <description>&lt;P&gt;MisterZS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This method worked very well for me, I have been able to edit it to my needs and create a form which makes it easy to add text from a multi value paramter stored in the idw. This also has made it easy to save to our template so all new drawings we make have this function with the form and rule in the idw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I have been unable to change the rule to be able to add the text before the dimension value for only certain parameter selections. For example a&amp;nbsp;diameter symbol needs to come before. I would like in the form when I select the&amp;nbsp;diamter symbol from the multi value parameter, the rule to then place that symbol before the text. If that could be done I'd be very grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 14:46:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/5441412#M126335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-12T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text to Inventor Dimension with iLogic or VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/5645777#M126336</link>
      <description>&lt;P&gt;hello mr.Vladimir Ananyev&lt;/P&gt;
&lt;P&gt;I have two part documents in an assembly and i have model parameters in assembly. i want link the model parameter which is in the assembly document to the dimension text as we do manually by editing dimension text.&lt;/P&gt;
&lt;P&gt;And how did you get this one... &amp;nbsp;" value = Parameter(ModelName,"mytext") &amp;nbsp;"&lt;/P&gt;
&lt;P&gt;i tried writing this line in my project, but after entering parameter its not allowing me to keep (...), so can i know how you gave model name and parameter name inside brackets ?&lt;/P&gt;
&lt;P&gt;If possible can you give some good code how to link parameters to dimension text please.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 05:23:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-text-to-inventor-dimension-with-ilogic-or-vba/m-p/5645777#M126336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T05:23:22Z</dc:date>
    </item>
  </channel>
</rss>

