<?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: It bugs or Still need User Define &amp;quot;FormatText&amp;quot; at Drawing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/it-bugs-or-still-need-user-define-quot-formattext-quot-at/m-p/7595150#M95539</link>
    <description>&lt;P&gt;I agree that this seems like a bug. I believe if you go with...&lt;/P&gt;&lt;PRE&gt;oHoleThreadNote.FormattedHoleThreadNote = "&amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty'&amp;gt;&amp;lt;/HoleProperty&amp;gt; &amp;lt;/StyleOverride&amp;gt;&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;THRU&amp;lt;/StyleOverride&amp;gt;"&lt;/PRE&gt;&lt;P&gt;you will get what you want. I basically removed all attributes from &amp;lt;HoleProperty&amp;gt; and then it seems to work. Why all those attributes are there when they aren't correct, I have no idea.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 19:06:24 GMT</pubDate>
    <dc:creator>clutsa</dc:creator>
    <dc:date>2017-12-04T19:06:24Z</dc:date>
    <item>
      <title>It bugs or Still need User Define "FormatText" at Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/it-bugs-or-still-need-user-define-quot-formattext-quot-at/m-p/7580905#M95538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Have a little issue, when you use FormattedText in HoleThreadNotes, GeneralDimension or else. I call with "Data = oHoleThreadNote.FormattedHoleThreadNote", and get the "result". It showing HTML data.&lt;/P&gt;&lt;P&gt;Now when I set it back with little modfy (First modify--Add I Line): the result in Hole/Thread dimension are showing Tolerance that I don't need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Question is, are User still need redefine the HTML data again?, im checking with difference method when im using GeneralDimension, the HTML data is not showing Tolerance, Font Style etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are is Bug or any comment from expert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you call example my code:&lt;/P&gt;&lt;P&gt;Public Sub ShowTextFormat()&lt;BR /&gt;Dim oDWGDoc As DrawingDocument&lt;BR /&gt;Set oDWGDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oSht As Sheet&lt;BR /&gt;Set oSht = oDWGDoc.ActiveSheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oDWGView As DrawingView&lt;BR /&gt;Dim oDwgNote As DrawingNotes&lt;BR /&gt;Set oDwgNote = oSht.DrawingNotes&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim oGenNot As GeneralNote&lt;BR /&gt;Dim oGenDim As GeneralDimension&lt;/P&gt;&lt;P&gt;Dim oHoleThreadNote As HoleThreadNote&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Each oDWGView In oSht.DrawingViews&lt;BR /&gt;For Each oHoleThreadNote In oDwgNote.HoleThreadNotes&lt;BR /&gt;'Data = oHoleThreadNote.FormattedHoleThreadNote&lt;BR /&gt;'GetData = InputBox("Get Data", , Data)&lt;/P&gt;&lt;P&gt;'Result= &amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty' Precision='2' AlternatePrecision='2' UpperTolerance='0.000000' LowerTolerance='0.000000' ToleranceType='kSymmetricTolerance' TolerancePrecision='2' ToleranceAlternatePrecision='2'&amp;gt;&amp;lt;/HoleProperty&amp;gt; THRU&amp;lt;/StyleOverride&amp;gt;&lt;BR /&gt;'First Modify (add 1 line) = &amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty' Precision='2' AlternatePrecision='2' UpperTolerance='0.000000' LowerTolerance='0.000000' ToleranceType='kSymmetricTolerance' TolerancePrecision='2' ToleranceAlternatePrecision='2'&amp;gt;&amp;lt;/HoleProperty&amp;gt;&amp;lt;/StyleOverride&amp;gt;&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;THRU&amp;lt;/StyleOverride&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'oHoleThreadNote.FormattedHoleThreadNote = "&amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty' Precision='2' AlternatePrecision='2' UpperTolerance='0.000000' LowerTolerance='0.000000' ToleranceType='kSymmetricTolerance' TolerancePrecision='2' ToleranceAlternatePrecision='2'&amp;gt;&amp;lt;/HoleProperty&amp;gt;&amp;lt;/StyleOverride&amp;gt;&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;THRU&amp;lt;/StyleOverride&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Result after First Modify are showing tolerance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'After second Modify with no Tolerance = &amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty' &amp;gt;&amp;lt;/HoleProperty&amp;gt;&amp;lt;/StyleOverride&amp;gt; &amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;THRU&amp;lt;/StyleOverride&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'oHoleThreadNote.FormattedHoleThreadNote = "&amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty' &amp;gt;&amp;lt;/HoleProperty&amp;gt;&amp;lt;/StyleOverride&amp;gt; &amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;THRU&amp;lt;/StyleOverride&amp;gt;"&lt;BR /&gt;Next 'next Hole Thread Note&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;For Each oGenDim In oSht.DrawingDimensions.GeneralDimensions&lt;BR /&gt;MsgBox oGenDim.Text.FormattedText&lt;BR /&gt;Next 'general dimension&lt;BR /&gt;Next 'next drawing view&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 04:50:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/it-bugs-or-still-need-user-define-quot-formattext-quot-at/m-p/7580905#M95538</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2017-11-29T04:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: It bugs or Still need User Define "FormatText" at Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/it-bugs-or-still-need-user-define-quot-formattext-quot-at/m-p/7595150#M95539</link>
      <description>&lt;P&gt;I agree that this seems like a bug. I believe if you go with...&lt;/P&gt;&lt;PRE&gt;oHoleThreadNote.FormattedHoleThreadNote = "&amp;lt;StyleOverride Font='AIGDT' FontSize='0.25'&amp;gt;n&amp;lt;/StyleOverride&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;&amp;lt;HoleProperty HolePropertyID='kHoleDiameterHoleProperty'&amp;gt;&amp;lt;/HoleProperty&amp;gt; &amp;lt;/StyleOverride&amp;gt;&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride Font='Tahoma' FontSize='0.25'&amp;gt;THRU&amp;lt;/StyleOverride&amp;gt;"&lt;/PRE&gt;&lt;P&gt;you will get what you want. I basically removed all attributes from &amp;lt;HoleProperty&amp;gt; and then it seems to work. Why all those attributes are there when they aren't correct, I have no idea.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 19:06:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/it-bugs-or-still-need-user-define-quot-formattext-quot-at/m-p/7595150#M95539</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2017-12-04T19:06:24Z</dc:date>
    </item>
  </channel>
</rss>

