<?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 Tolerance Prefix in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726822#M158162</link>
    <description>Dear all&lt;BR /&gt;
&lt;BR /&gt;
I want to get the prefix of an General Dimension Tolerance object.&lt;BR /&gt;
How can i do this.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG</description>
    <pubDate>Fri, 04 Aug 2006 17:55:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-08-04T17:55:57Z</dc:date>
    <item>
      <title>Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726822#M158162</link>
      <description>Dear all&lt;BR /&gt;
&lt;BR /&gt;
I want to get the prefix of an General Dimension Tolerance object.&lt;BR /&gt;
How can i do this.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG</description>
      <pubDate>Fri, 04 Aug 2006 17:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726822#M158162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-04T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726823#M158163</link>
      <description>I'm not sure what you mean by the prefix of a General Dimension tolerance. &lt;BR /&gt;
A general dimension has the dimension value and you can prefix or suffix &lt;BR /&gt;
text to this value.  In addition you can add a tolerance, which is appended &lt;BR /&gt;
after everything.  The API provides access to all of this.  To get the text &lt;BR /&gt;
you can use the Text property of the GeneralDimension object.  This returns &lt;BR /&gt;
a DimensionText object.  From this object you can use the Text or &lt;BR /&gt;
FormattedText properties to get the text of the dimension including any &lt;BR /&gt;
prefix and suffix.  In either case you'll need to extract the bits you need &lt;BR /&gt;
from the returned string since it combines everything together.  The &lt;BR /&gt;
FormattedText property returns a string that fully defines the dimension &lt;BR /&gt;
text, including any formatting.&lt;BR /&gt;
&lt;BR /&gt;
The tolerance information is seperate and is accessed through the Tolerance &lt;BR /&gt;
property of the GeneralDimension object.  This returns a Tolerance object. &lt;BR /&gt;
It supports several properties that will allow you to determine the type of &lt;BR /&gt;
tolerance and get the tolerance values.  Hopefully this helps.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;JESG&gt; wrote in message news:5259490@discussion.autodesk.com...&lt;BR /&gt;
Dear all&lt;BR /&gt;
&lt;BR /&gt;
I want to get the prefix of an General Dimension Tolerance object.&lt;BR /&gt;
How can i do this.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG&lt;/JESG&gt;</description>
      <pubDate>Sat, 05 Aug 2006 03:12:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726823#M158163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-05T03:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726824#M158164</link>
      <description>Dear Brian,&lt;BR /&gt;
&lt;BR /&gt;
sorry for  the bad description. &lt;BR /&gt;
I wont to get the prefix of the tolerance shown in the drawing.&lt;BR /&gt;
In the moment i get the dimension Value and the associated tolerance ( H7/ ) i also get the lower and upper tolerance now i want to get the associated prefix.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG</description>
      <pubDate>Sat, 05 Aug 2006 06:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726824#M158164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-05T06:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726825#M158165</link>
      <description>I'm sorry but I'm still not sure what you're trying to get.  Can you post a &lt;BR /&gt;
picture of an example dimension with the information you want to extract &lt;BR /&gt;
identified?&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;JESG&gt; wrote in message news:5259929@discussion.autodesk.com...&lt;BR /&gt;
Dear Brian,&lt;BR /&gt;
&lt;BR /&gt;
sorry for  the bad description.&lt;BR /&gt;
I wont to get the prefix of the tolerance shown in the drawing.&lt;BR /&gt;
In the moment i get the dimension Value and the associated tolerance ( H7/ ) &lt;BR /&gt;
i also get the lower and upper tolerance now i want to get the associated &lt;BR /&gt;
prefix.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG&lt;/JESG&gt;</description>
      <pubDate>Tue, 08 Aug 2006 21:01:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726825#M158165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-08T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726826#M158166</link>
      <description>Dear Brian,&lt;BR /&gt;
&lt;BR /&gt;
sorry that I bother you agian.&lt;BR /&gt;
I need to get the prefix in ( + / - ) in the brackets.&lt;BR /&gt;
See the attached image.&lt;BR /&gt;
&lt;BR /&gt;
Kindest regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG</description>
      <pubDate>Wed, 09 Aug 2006 18:18:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726826#M158166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-09T18:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726827#M158167</link>
      <description>Here's some code that dumps out all of the dimension values.  Remember that &lt;BR /&gt;
the API returns values using database units, so in this case everything is &lt;BR /&gt;
returned in centimeters.&lt;BR /&gt;
&lt;BR /&gt;
Public Sub DimInfo()&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    Dim oDim As DrawingDimension&lt;BR /&gt;
    Set oDim = ThisApplication.ActiveDocument.SelectSet.Item(1)&lt;BR /&gt;
    If Err Then&lt;BR /&gt;
        MsgBox "A dimension must be selected."&lt;BR /&gt;
        Exit Sub&lt;BR /&gt;
    End If&lt;BR /&gt;
    On Error GoTo 0&lt;BR /&gt;
&lt;BR /&gt;
    Debug.Print "Dim Value: " &amp;amp; oDim.ModelValue&lt;BR /&gt;
    Debug.Print "Hole Tolerance: " &amp;amp; oDim.Tolerance.HoleTolerance&lt;BR /&gt;
    Debug.Print "Tolerance Value: +"; oDim.Tolerance.Upper &amp;amp; _&lt;BR /&gt;
                        "/-" &amp;amp; oDim.Tolerance.Lower&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;JESG&gt; wrote in message news:5263668@discussion.autodesk.com...&lt;BR /&gt;
Dear Brian,&lt;BR /&gt;
&lt;BR /&gt;
sorry that I bother you agian.&lt;BR /&gt;
I need to get the prefix in ( + / - ) in the brackets.&lt;BR /&gt;
See the attached image.&lt;BR /&gt;
&lt;BR /&gt;
Kindest regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG&lt;/JESG&gt;</description>
      <pubDate>Thu, 10 Aug 2006 17:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726827#M158167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-10T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726828#M158168</link>
      <description>Dear Brian,&lt;BR /&gt;
&lt;BR /&gt;
thank you for your quick answer.&lt;BR /&gt;
The problem is that I don't want to set the + and - via code.&lt;BR /&gt;
I need a way to get this information from the objects.&lt;BR /&gt;
In the most cases the code you have posted will work but in the case where the sign' s are switched not. How does Inventor the job ?&lt;BR /&gt;
&lt;BR /&gt;
Kindest regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG</description>
      <pubDate>Fri, 11 Aug 2006 04:17:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726828#M158168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-11T04:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tolerance Prefix</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726829#M158169</link>
      <description>I looked at this again and the program I sent you earlier wouldn't provide &lt;BR /&gt;
the desired result.  Whether the value is + or - is indicated in the value &lt;BR /&gt;
itself.  It's not a seperate prefix.  For example any + values will be &lt;BR /&gt;
returned as positive values and any - values will be returned as negative &lt;BR /&gt;
values.  Since you get these values using the Upper and Lower properties you &lt;BR /&gt;
also know what the value represents.&lt;BR /&gt;
&lt;BR /&gt;
The reason the program is incorrect is because it adds the "-" symbol.  If &lt;BR /&gt;
the Lower property returned a negative value it would have displayed as &lt;BR /&gt;
"--.02".  For negative numbers you'll automatically get the "-" sign.  For &lt;BR /&gt;
positive numbers you'll have to add the "+" sign to it if you want it.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;JESG&gt; wrote in message news:5265741@discussion.autodesk.com...&lt;BR /&gt;
Dear Brian,&lt;BR /&gt;
&lt;BR /&gt;
thank you for your quick answer.&lt;BR /&gt;
The problem is that I don't want to set the + and - via code.&lt;BR /&gt;
I need a way to get this information from the objects.&lt;BR /&gt;
In the most cases the code you have posted will work but in the case where &lt;BR /&gt;
the sign' s are switched not. How does Inventor the job ?&lt;BR /&gt;
&lt;BR /&gt;
Kindest regards,&lt;BR /&gt;
&lt;BR /&gt;
JesG&lt;/JESG&gt;</description>
      <pubDate>Fri, 11 Aug 2006 23:56:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/tolerance-prefix/m-p/1726829#M158169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-11T23:56:03Z</dc:date>
    </item>
  </channel>
</rss>

