<?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 Betreff: How to get &amp;quot;circle direction&amp;quot; of EdgeProxy? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13644708#M282</link>
    <description>&lt;P&gt;We probably won't see much difference (if any) when using both the Face &amp;amp; SurfaceEvaluator (instead of Plane &amp;amp; Plane.Normal), and 100% of the faces we encounter are 'planar', even when there are holes/voids/cutouts in the face, because that is a pretty stable scenario.&amp;nbsp; I have done some similar testing too using iLogic rules and the iLogic Log window, and had similar results.&amp;nbsp; I was mainly just passing along stuff I learned from Mike Deck (Inventor API guru) in one or more other forum discussions at some point in the past.&amp;nbsp; He is a software developer/programmer who has been with Autodesk for decades, and occasionally pops in to help with especially difficult or undocumented scenarios being discussed in this forum since its inception.&amp;nbsp; Also, you may have already seen this by now, but there is a 'Property' of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=GUID-SurfaceEvaluator" target="_blank" rel="noopener"&gt;SurfaceEvaluator&lt;/A&gt; named&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=SurfaceEvaluator_IsParamOnFace" target="_blank" rel="noopener"&gt;IsParamOnFace&lt;/A&gt;, which is pretty self explanatory, and can be useful in situations like these.&amp;nbsp; I don't do much of this sort of thing on radial, lofted, or otherwise curved surfaces, so not sure what the implications/importance of it may be in those situations.&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; Attached is one of my iLogic rule base test codes.&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2025 14:00:15 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2025-05-22T14:00:15Z</dc:date>
    <item>
      <title>How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629233#M273</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am currently failing to determine the direction in which a circle "is facing". The constraint-command shows me these directions, and I would like to read out these values via API.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bindlmi_0-1747202697937.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1533175i1951ACEC85B5648E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bindlmi_0-1747202697937.png" alt="bindlmi_0-1747202697937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? Unfortunately it is not .Geometry.Normal&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 06:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629233#M273</guid>
      <dc:creator>bindlmi</dc:creator>
      <dc:date>2025-05-14T06:08:07Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629451#M274</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4757919"&gt;@bindlmi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would look for the faces-collection of the selected circular edge. If there is a face with surfacetype = kplanesurface then you can use this face's Geometry.Normal.&lt;/P&gt;&lt;P&gt;If there is no plane surface, you only can get the circulrar edge's Geometry.Normal.&lt;/P&gt;&lt;P&gt;It seams, that this is the logic of the insert-constraint, but I'm not sure.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 08:36:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629451#M274</guid>
      <dc:creator>cidhelp</dc:creator>
      <dc:date>2025-05-14T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629531#M275</link>
      <description>&lt;P&gt;Thx for your suggestion, I've been thinking about that too. However, these values don't make any sense at all.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bindlmi_1-1747214695039.png" style="width: 542px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1533241i68F3A81021FA18A6/image-dimensions/542x339?v=v2" width="542" height="339" role="button" title="bindlmi_1-1747214695039.png" alt="bindlmi_1-1747214695039.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Strangely enough, surfaces 1 and 2 have the same normal vector, although surface 2 is clearly pointing downwards. And surface 3 actually points upwards. I also discovered the IsParamReversed-Value as a difference, but I don't know what it means&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 09:27:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629531#M275</guid>
      <dc:creator>bindlmi</dc:creator>
      <dc:date>2025-05-14T09:27:50Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629724#M276</link>
      <description>&lt;P&gt;I suggest that instead of using Face.Geometry.Normal, you use Face.&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=SurfaceEvaluator_GetNormal" target="_blank" rel="noopener"&gt;Evaluator.GetNormal&lt;/A&gt; or Face.&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=SurfaceEvaluator_GetNormalAtPoint" target="_blank" rel="noopener"&gt;Evaluator.GetNormalAtPoint&lt;/A&gt; methods, then use those Normals coordinates to create the Vector or UnitVector.&amp;nbsp; The Face itself, and the underlying Transient Geometry object that represents its shape, can be different orientations/normals.&amp;nbsp; The Face object is more stable, and its 'Normal' will pretty much always be pointing away from the material (from within the material to outside the material).&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 11:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13629724#M276</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-05-14T11:59:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13631846#M277</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;thanks, that seems to work. I don't understand the param(), but as long as it runs... (I found this via an example from the Inventor API Help).&lt;BR /&gt;It doesn't work for the conical surface, but I'll find another connection there (probably the cylinder axis)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bindlmi_0-1747310973333.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1533688iD85C88895821282B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bindlmi_0-1747310973333.png" alt="bindlmi_0-1747310973333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 12:13:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13631846#M277</guid>
      <dc:creator>bindlmi</dc:creator>
      <dc:date>2025-05-15T12:13:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13636853#M278</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm afraid I need more help after all. In C# I only get an empty array back. They are the same areas as on the screenshot before.&lt;/P&gt;&lt;P&gt;If it matters: I run through all Occurrences, and there through all HoleFeatures.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bindlmi_0-1747636032005.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1534691i432D876C3F4E17B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bindlmi_0-1747636032005.png" alt="bindlmi_0-1747636032005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why does it work in VBA, but not in C#?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 06:31:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13636853#M278</guid>
      <dc:creator>bindlmi</dc:creator>
      <dc:date>2025-05-19T06:31:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13636866#M279</link>
      <description>&lt;P&gt;Nevermind, forgot the "ref" in this line:&lt;/P&gt;&lt;P&gt;oFace.Evaluator.GetNormal(param, ref planeNormal);&lt;/P&gt;&lt;P&gt;It works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 06:38:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13636866#M279</guid>
      <dc:creator>bindlmi</dc:creator>
      <dc:date>2025-05-19T06:38:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13637948#M280</link>
      <description>&lt;P&gt;Glad you got it working OK.&amp;nbsp; I was going to reply to your post in Message 5 (on the 15th) about the 'params', but things got busy at work, and I got called away.&amp;nbsp; The 'params' portion of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=SurfaceEvaluator_GetNormal" target="_blank" rel="noopener"&gt;SurfaceEvaluator.GetNormal&lt;/A&gt; method seems to be sort of like a percentage grid of the overall face.&amp;nbsp; That method is usually OK to use when dealing with a relatively simple faces with no holes, voids, cutouts, or interruptions in them.&amp;nbsp; But when any of those may be involved, it is usually better to use the &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=SurfaceEvaluator_GetNormalAtPoint" target="_blank" rel="noopener"&gt;SurfaceEvaluator.GetNormalAtPoint&lt;/A&gt; method.&amp;nbsp; A common strategy for getting/setting the 'points' portion of that method, which is being used similarly to the 'params' in the other method, is to use the &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=Face_PointOnFace" target="_blank" rel="noopener"&gt;Face.PointOnFace&lt;/A&gt; property to get an Inventor.Point object that is guaranteed to be 'on' that Face, rather than in one of those holes, voids, cutouts, or interruptions.&amp;nbsp; Then use the X, Y, &amp;amp; Z coordinates of that Point as the coordinates of the 'points' array of Double it is asking for.&amp;nbsp; This will tell it to get the 'normal' at that exact point on that face, ensuring proper results, and avoiding a potential error.&amp;nbsp; The other 'evaluator' type objects you may encounter somewhere along the way are the &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-CurveEvaluator" target="_blank" rel="noopener"&gt;CurveEvaluator&lt;/A&gt; and the &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-Curve2dEvaluator" target="_blank" rel="noopener"&gt;Curve2dEvaluator&lt;/A&gt;.&amp;nbsp; The following online help page touches on these concepts, but does not go into great detail.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-0CA52532-DD70-4DFD-A79B-1DC2D370E6EC" target="_blank" rel="noopener"&gt;Programming Interface &amp;gt; Inventor API User's Manual &amp;gt; Part and Assembly Modeling &amp;gt; Understanding Solids - Working with the B-Rep (Boundary Representation)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another small detail that often trips some of us up in these types of situations, is when declaring and initializing the variables that the method(s) will be using.&amp;nbsp; In vb.net (and in iLogic rules, which use vb.net), it is necessary to declare the 'Normals' variable similar to this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oNormals() As Double = {}&lt;/LI-CODE&gt;
&lt;P&gt;...instead of just like this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oNormals() As Double&lt;/LI-CODE&gt;
&lt;P&gt;...even though we are not setting any initial values to it, and want the method to set its values.&amp;nbsp; This did not seem to be necessary in VBA, and is not that obvious in any of the 'official' documentation that this needs to be done, but when not done, it will usually throw an error.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 11:53:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13637948#M280</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-05-19T11:53:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13643797#M281</link>
      <description>&lt;P&gt;I understand your concern that you could run into an error with the random params.&lt;BR /&gt;The approach with the PointOnFace seems more logical.&lt;/P&gt;&lt;P&gt;I once tried to force an error, but I didn't succeed. I tested different params and specifically tried to hit a hole, but without “success”. Even very high values could be processed, although my face is not that big.&lt;/P&gt;&lt;P&gt;Here is a comparison showing that both methods produce the same result (at least for my test part). I've selected the top face, the front, the right and the bottom.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bindlmi_0-1747894540632.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1536063i991A911BA26691DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bindlmi_0-1747894540632.png" alt="bindlmi_0-1747894540632.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bindlmi_1-1747894634842.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1536064iB483E358A0F84C46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bindlmi_1-1747894634842.png" alt="bindlmi_1-1747894634842.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 06:18:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13643797#M281</guid>
      <dc:creator>bindlmi</dc:creator>
      <dc:date>2025-05-22T06:18:11Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to get "circle direction" of EdgeProxy?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13644708#M282</link>
      <description>&lt;P&gt;We probably won't see much difference (if any) when using both the Face &amp;amp; SurfaceEvaluator (instead of Plane &amp;amp; Plane.Normal), and 100% of the faces we encounter are 'planar', even when there are holes/voids/cutouts in the face, because that is a pretty stable scenario.&amp;nbsp; I have done some similar testing too using iLogic rules and the iLogic Log window, and had similar results.&amp;nbsp; I was mainly just passing along stuff I learned from Mike Deck (Inventor API guru) in one or more other forum discussions at some point in the past.&amp;nbsp; He is a software developer/programmer who has been with Autodesk for decades, and occasionally pops in to help with especially difficult or undocumented scenarios being discussed in this forum since its inception.&amp;nbsp; Also, you may have already seen this by now, but there is a 'Property' of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=GUID-SurfaceEvaluator" target="_blank" rel="noopener"&gt;SurfaceEvaluator&lt;/A&gt; named&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=SurfaceEvaluator_IsParamOnFace" target="_blank" rel="noopener"&gt;IsParamOnFace&lt;/A&gt;, which is pretty self explanatory, and can be useful in situations like these.&amp;nbsp; I don't do much of this sort of thing on radial, lofted, or otherwise curved surfaces, so not sure what the implications/importance of it may be in those situations.&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; Attached is one of my iLogic rule base test codes.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 14:00:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-get-quot-circle-direction-quot-of-edgeproxy/m-p/13644708#M282</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-05-22T14:00:15Z</dc:date>
    </item>
  </channel>
</rss>

