<?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 ToExtent.ToEntity Issues In Getting the Distance Between Faces in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/toextent-toentity-issues-in-getting-the-distance-between-faces/m-p/8788531#M97417</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having trouble with the function in my title, namely ToExtent.Entity from an ExtrudeFeature. On the GUI side, I have created a sketch and extrusion, selected the type to be "To", and selected another FACE to essentially create a hole in my shape. I can verify by ExtrudeDefinition.ExtentType that I am dealing with a ToExtent object, as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I am having issues getting the extrude distance from this. I am trying to the get the distance by getting a reference to the "To" face, by using the property ToExtent.ToEntity. I thought that this would get a reference to the Face which I selected during its creation, however this is not the case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know the issue? I can post code if required, however the issue seems to lie in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;FONT style="background-color: #ffffff;"&gt;Face oFace2 = oTo.ToEntity as Face;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Philip&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 21:20:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-13T21:20:11Z</dc:date>
    <item>
      <title>ToExtent.ToEntity Issues In Getting the Distance Between Faces</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/toextent-toentity-issues-in-getting-the-distance-between-faces/m-p/8788531#M97417</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having trouble with the function in my title, namely ToExtent.Entity from an ExtrudeFeature. On the GUI side, I have created a sketch and extrusion, selected the type to be "To", and selected another FACE to essentially create a hole in my shape. I can verify by ExtrudeDefinition.ExtentType that I am dealing with a ToExtent object, as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I am having issues getting the extrude distance from this. I am trying to the get the distance by getting a reference to the "To" face, by using the property ToExtent.ToEntity. I thought that this would get a reference to the Face which I selected during its creation, however this is not the case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know the issue? I can post code if required, however the issue seems to lie in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;FONT style="background-color: #ffffff;"&gt;Face oFace2 = oTo.ToEntity as Face;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Philip&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 21:20:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/toextent-toentity-issues-in-getting-the-distance-between-faces/m-p/8788531#M97417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-13T21:20:11Z</dc:date>
    </item>
  </channel>
</rss>

