<?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: API problem with Revolve Feature property extent and other  properties in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760146#M157455</link>
    <description>Jim,&lt;BR /&gt;
&lt;BR /&gt;
I don't know what the problem could be.  I just installed the initial &lt;BR /&gt;
release of Inventor 11 on another machine and the pulled SP1 and SP2 from &lt;BR /&gt;
autodesk.com.  I tested getting the extents from the revolved features with &lt;BR /&gt;
each version and it worked in all cases.  I'm not sure what else to try.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API</description>
    <pubDate>Tue, 12 Sep 2006 22:04:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-12T22:04:24Z</dc:date>
    <item>
      <title>API problem with Revolve Feature property extent and other properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760139#M157448</link>
      <description>I have noticed a problem with the API for the revolvefeature when trying to access the extent and extenttype properties of a revolvefeature.  I am using Inventor 11 SP2.&lt;BR /&gt;
&lt;BR /&gt;
The extenttype property of the revovle feature returns 20481 (Which is not an Angle or Full Sweep extent type). It is a enum specifying that a join was used to create object. I suspect this is the problem. I also noticed that the operation parameter does not return 20481.&lt;BR /&gt;
&lt;BR /&gt;
When you try to get the extent properties or even set an object to the extent of the revolve feature, you get the following run-time error:&lt;BR /&gt;
&lt;BR /&gt;
"Run-Time error '-2147467259 (80004005)': Method 'Extent' of object '_IRxRevolveFeature' failed"&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Mon, 11 Sep 2006 14:25:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760139#M157448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760140#M157449</link>
      <description>Jim,&lt;BR /&gt;
&lt;BR /&gt;
I was unable to reproduce this problem.  I created a simple part that &lt;BR /&gt;
contained two revolved features; one was a full revolved and the other was &lt;BR /&gt;
defined with an angle.  The ExtentType and Extent properties worked as &lt;BR /&gt;
expected in both cases.  Can you post a part that demonstrates this problem?&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIMSFALCONE&gt; wrote in message news:5324509@discussion.autodesk.com...&lt;BR /&gt;
I have noticed a problem with the API for the revolvefeature when trying to &lt;BR /&gt;
access the extent and extenttype properties of a revolvefeature.  I am using &lt;BR /&gt;
Inventor 11 SP2.&lt;BR /&gt;
&lt;BR /&gt;
The extenttype property of the revovle feature returns 20481 (Which is not &lt;BR /&gt;
an Angle or Full Sweep extent type). It is a enum specifying that a join was &lt;BR /&gt;
used to create object. I suspect this is the problem. I also noticed that &lt;BR /&gt;
the operation parameter does not return 20481.&lt;BR /&gt;
&lt;BR /&gt;
When you try to get the extent properties or even set an object to the &lt;BR /&gt;
extent of the revolve feature, you get the following run-time error:&lt;BR /&gt;
&lt;BR /&gt;
"Run-Time error '-2147467259 (80004005)': Method 'Extent' of object &lt;BR /&gt;
'_IRxRevolveFeature' failed"&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim&lt;/JIMSFALCONE&gt;</description>
      <pubDate>Mon, 11 Sep 2006 17:11:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760140#M157449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760141#M157450</link>
      <description>Brian,&lt;BR /&gt;
&lt;BR /&gt;
I appreciate the prompt response. &lt;BR /&gt;
I have added an attachment containing a screenshot of the problem and a sample ipart.  Just to let you know a few more details:  My code still works for finding Extrusions and Sweeps extents.  It only fails on revolve features.  I added some code to the ipart and checked on some other users computers at SP2 and see the same problem occurring.  Thank you again.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Mon, 11 Sep 2006 19:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760141#M157450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T19:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760142#M157451</link>
      <description>I tested the file you posted and I'm not seeing the problem.  Using the &lt;BR /&gt;
program below&lt;BR /&gt;
&lt;BR /&gt;
Public Sub RevolveExtent()&lt;BR /&gt;
    Dim oDoc As PartDocument&lt;BR /&gt;
    Set oDoc = ThisApplication.ActiveDocument&lt;BR /&gt;
&lt;BR /&gt;
    Dim oRev As RevolveFeature&lt;BR /&gt;
    Debug.Print "kAngleExtent = 20738, kFullSweepExtent = 20739"&lt;BR /&gt;
    For Each oRev In oDoc.ComponentDefinition.Features.RevolveFeatures&lt;BR /&gt;
        Debug.Print oRev.Name &amp;amp; ", Extent Type: " &amp;amp; oRev.ExtentType&lt;BR /&gt;
    Next&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
I get the following results:&lt;BR /&gt;
&lt;BR /&gt;
kAngleExtent = 20738, kFullSweepExtent = 20739&lt;BR /&gt;
Revolution1, Extent Type: 20738&lt;BR /&gt;
Revolution2, Extent Type: 20738&lt;BR /&gt;
&lt;BR /&gt;
Can you try that file again on your computer?  I'm running Inventor 11 SP2.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIMSFALCONE&gt; wrote in message news:5325081@discussion.autodesk.com...&lt;BR /&gt;
Brian,&lt;BR /&gt;
&lt;BR /&gt;
I appreciate the prompt response.&lt;BR /&gt;
I have added an attachment containing a screenshot of the problem and a &lt;BR /&gt;
sample ipart.  Just to let you know a few more details:  My code still works &lt;BR /&gt;
for finding Extrusions and Sweeps extents.  It only fails on revolve &lt;BR /&gt;
features.  I added some code to the ipart and checked on some other users &lt;BR /&gt;
computers at SP2 and see the same problem occurring.  Thank you again.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim&lt;/JIMSFALCONE&gt;</description>
      <pubDate>Mon, 11 Sep 2006 21:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760142#M157451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T21:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760143#M157452</link>
      <description>Brian,&lt;BR /&gt;
&lt;BR /&gt;
I copied and pasted your code into a new ipt and have found that it works on Inventor 11 (No service pack installed), Inventor 11 (SP1) and then on upgrade to SP2 I found that it stopped working and starts giving you the incorrect entitytype 20481 instead of 20738 or 20739.  Please advise.  It is now occurring on qty (3) seats updated from liveupdate.  &lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Tue, 12 Sep 2006 17:42:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760143#M157452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760144#M157453</link>
      <description>I did all my testing on Inventor 11 SP2.  I used the part you posted to test &lt;BR /&gt;
with.  Do you see problems with this part?&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIMSFALCONE&gt; wrote in message news:5326483@discussion.autodesk.com...&lt;BR /&gt;
Brian,&lt;BR /&gt;
&lt;BR /&gt;
I copied and pasted your code into a new ipt and have found that it works on &lt;BR /&gt;
Inventor 11 (No service pack installed), Inventor 11 (SP1) and then on &lt;BR /&gt;
upgrade to SP2 I found that it stopped working and starts giving you the &lt;BR /&gt;
incorrect entitytype 20481 instead of 20738 or 20739.  Please advise.  It is &lt;BR /&gt;
now occurring on qty (3) seats updated from liveupdate.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim&lt;/JIMSFALCONE&gt;</description>
      <pubDate>Tue, 12 Sep 2006 18:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760144#M157453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T18:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760145#M157454</link>
      <description>Brain,&lt;BR /&gt;
&lt;BR /&gt;
I tried both that part and a newly created part on various computers at SP2 all with the same result of it functioning prior to applying SP2 on both SP0 and SP1.  Upon going from SP1 to SP2 on a clean Inventor 11 install and using liveupdate to apply SP1 and SP2 it works up until SP2 is applied then it starts giving the run time error when trying to grab hold of the extent object or the extenttype returns an invalid enum.  It is strange that it doesn't have problems with the sweep feature extents or extrusion feature extents.  I guess I will just keep trying on other machines.  Is there a way to remove a service pack if I need to?  &lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Tue, 12 Sep 2006 18:50:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760145#M157454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T18:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760146#M157455</link>
      <description>Jim,&lt;BR /&gt;
&lt;BR /&gt;
I don't know what the problem could be.  I just installed the initial &lt;BR /&gt;
release of Inventor 11 on another machine and the pulled SP1 and SP2 from &lt;BR /&gt;
autodesk.com.  I tested getting the extents from the revolved features with &lt;BR /&gt;
each version and it worked in all cases.  I'm not sure what else to try.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API</description>
      <pubDate>Tue, 12 Sep 2006 22:04:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760146#M157455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T22:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760147#M157456</link>
      <description>Brian,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all of the time that you put into this, we appreciate it.  I have tried it on both windows XP and windows 2000 machines and at this point with the same results of it not working.  I am going to just have our IT department reformat a computer and start from scratch and try it from a clean computer not hooked into our company policy setup or domain and see if I can at least see it working when we transition from SP1 to SP2.  I will post another reply with the results.  &lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Wed, 13 Sep 2006 12:24:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760147#M157456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T12:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760148#M157457</link>
      <description>Brian,&lt;BR /&gt;
&lt;BR /&gt;
We did some further testing on a couple other machines and have the following results for your information:&lt;BR /&gt;
&lt;BR /&gt;
The problem occurs between SP1 and SP2 when installed using the liveupdate (Which is from the communication center link) that installs while Inventor is running.  In all cases where this is used, the error with the revolve extent occurs.&lt;BR /&gt;
&lt;BR /&gt;
The problem does not occur when you install downloaded service packs from the autodesk website and install them without inventor running.  &lt;BR /&gt;
&lt;BR /&gt;
Please advise.  Is there a way to uninstall a service pack (or can they be re-installed)?  Thanks&lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Thu, 14 Sep 2006 13:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760148#M157457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-14T13:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: API problem with Revolve Feature property extent and other  properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760149#M157458</link>
      <description>Hi Jim,&lt;BR /&gt;
&lt;BR /&gt;
I would have never figured out that one.  Good job.  I think the best &lt;BR /&gt;
solution is to uninstall SP2 and reinstall it using the version you get from &lt;BR /&gt;
the Autodesk website.  You can uninstall service packs by using the "Add or &lt;BR /&gt;
Remove Programs" utility and checking the "Show Updates" button at the top &lt;BR /&gt;
of the dialog.  This is shown in the attached image.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API</description>
      <pubDate>Thu, 14 Sep 2006 16:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/api-problem-with-revolve-feature-property-extent-and-other/m-p/1760149#M157458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-14T16:30:07Z</dc:date>
    </item>
  </channel>
</rss>

