<?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 Unwrap - Fx Parameter in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677331#M129824</link>
    <description>&lt;P&gt;How to get automatic dimension in the Fx table?&lt;/P&gt;&lt;P&gt;When the dimensions of the model change fx is changed.&lt;/P&gt;&lt;P&gt;Do you have any rules in Ilogic or VB that automatically put in the fx table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.05.0000.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975331i1B3AFAF7C6A22487/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.05.0000.PNG" alt="03.05.0000.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Oct 2021 08:32:40 GMT</pubDate>
    <dc:creator>ivanildo.b</dc:creator>
    <dc:date>2021-10-09T08:32:40Z</dc:date>
    <item>
      <title>Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677331#M129824</link>
      <description>&lt;P&gt;How to get automatic dimension in the Fx table?&lt;/P&gt;&lt;P&gt;When the dimensions of the model change fx is changed.&lt;/P&gt;&lt;P&gt;Do you have any rules in Ilogic or VB that automatically put in the fx table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.05.0000.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975331i1B3AFAF7C6A22487/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.05.0000.PNG" alt="03.05.0000.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 08:32:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677331#M129824</guid>
      <dc:creator>ivanildo.b</dc:creator>
      <dc:date>2021-10-09T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677698#M129829</link>
      <description>&lt;P&gt;I can not give you exact that.&lt;/P&gt;
&lt;P&gt;I have an add in that creates a user parameter ie Length; Width and Thickness, but no dimension in the sketch.&lt;/P&gt;
&lt;P&gt;would that help you?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1633790765861.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975398i609D45DE384AFBA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1633790765861.png" alt="bradeneuropeArthur_0-1633790765861.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 14:46:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677698#M129829</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-09T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677738#M129834</link>
      <description>&lt;P&gt;I'm trying another way.&lt;BR /&gt;Insert dimension to capture and use in the fx table?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.05.0001.PNG" style="width: 876px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975407iA87A5D667803B141/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.05.0001.PNG" alt="03.05.0001.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 15:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677738#M129834</guid>
      <dc:creator>ivanildo.b</dc:creator>
      <dc:date>2021-10-09T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677740#M129835</link>
      <description>I understood that yes. But the projecten loop is not always dimensionable!</description>
      <pubDate>Sat, 09 Oct 2021 15:18:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10677740#M129835</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-09T15:18:59Z</dc:date>
    </item>
    <item>
      <title>Betreff: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10678094#M129842</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there always only one Unwrap feature?&lt;/P&gt;&lt;P&gt;Is there always only one WorkSurface?&lt;/P&gt;&lt;P&gt;Is the unwrapped surface always a circle?&lt;/P&gt;&lt;P&gt;If so, you can use iLogic below to get the radius as parameter "radius". Add this rule to the event trigger "on model geometry change". Every time you change the model, the parameter will be updated.&lt;/P&gt;&lt;P&gt;This rule is for this one specific situation your screenshot shows.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oPartDoc As PartDocument = ThisDoc.Document
Dim oUOM As UnitsOfMeasure = oPartDoc.UnitsOfMeasure
Dim oCompdef As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oWorkSurface As WorkSurface = oCompdef.WorkSurfaces.Item(1)
Dim oSurfaceBody As SurfaceBody = oWorkSurface.SurfaceBodies.Item(1)
Dim oEdge As Edge = oSurfaceBody.Edges.Item(1)
Dim oCircle As Circle = oEdge.Geometry
Dim dRadius As Double = oUOM.ConvertUnits(oCircle.Radius ,"cm",oUOM.LengthUnits)
Dim oParam As UserParameter
Try
	oCompdef.Parameters.UserParameters.Item("radius").Expression=dRadius &amp;amp; oUOM.LengthUnits	
Catch
	oCompdef.Parameters.UserParameters.AddByExpression("radius", dRadius, oUOM.LengthUnits )
End Try

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 21:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10678094#M129842</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-10-09T21:57:45Z</dc:date>
    </item>
    <item>
      <title>Betreff: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10678553#M129848</link>
      <description>&lt;P&gt;Thanks for the attention!&lt;BR /&gt;I'm trying to understand your answer.&lt;BR /&gt;I took the test, I was doubted.&lt;BR /&gt;I'm sending a drawing to explain it better.&lt;BR /&gt;The result of the routine has to be radius 575 mm. Thank you for your attention! &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.05.0004.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975520iE426B855E8D89EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.05.0004.PNG" alt="03.05.0004.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.05.0003.PNG" style="width: 752px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975521iC4E962C780BB8C38/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.05.0003.PNG" alt="03.05.0003.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 09:47:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10678553#M129848</guid>
      <dc:creator>ivanildo.b</dc:creator>
      <dc:date>2021-10-10T09:47:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10679074#M129850</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In such a case it would be much more helpful to upload the ipt file. I think there are some dimensions missing (please see picture).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Questions.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975595iF8FED5B9A1170677/image-size/large?v=v2&amp;amp;px=999" role="button" title="Questions.jpg" alt="Questions.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, when your parts are always a revolve, there could be an alternative way we can try.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oApp As Inventor.Application=ThisApplication
Dim oPartDoc As PartDocument = ThisDoc.Document
Dim oUOM As UnitsOfMeasure = oPartDoc.UnitsOfMeasure
Dim oCompdef As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oWorkSurface As WorkSurface = oCompdef.WorkSurfaces.Item(1)
Dim oSurfaceBody As SurfaceBody = oWorkSurface.SurfaceBodies.Item(1)
Dim oEdge As Edge = oSurfaceBody.Edges.Item(1)
Dim dLoopLength As Double=oApp.MeasureTools.GetLoopLength(oEdge)
Dim dRadius As Double = oUOM.ConvertUnits(dLoopLength / 2 / System.Math.PI,"cm",oUOM.LengthUnits)

Dim oParam As UserParameter
Try
	oCompdef.Parameters.UserParameters.Item("diam").Expression=dRadius &amp;amp; oUOM.LengthUnits	
Catch
	oCompdef.Parameters.UserParameters.AddByExpression("diam", dRadius, oUOM.LengthUnits )
End Try

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 19:44:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10679074#M129850</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-10-10T19:44:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10679113#M129852</link>
      <description>&lt;P&gt;&lt;SPAN&gt;R. Krieg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RKW Solutions GmbH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="http://www.rkw-solutions.com" target="_blank"&gt;www.rkw-solutions.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total joy. Excellent! Wonderful! Problem solved!&lt;/P&gt;&lt;P&gt;What path should I take so that in the future I can solve a similar problem?&lt;/P&gt;&lt;P&gt;Thanks for your attention in helping me!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ivanildo&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 20:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10679113#M129852</guid>
      <dc:creator>iva.btblan</dc:creator>
      <dc:date>2021-10-10T20:25:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10680952#M129896</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As long as the unwrapped face is a circle, take the second scipt. The first isn't stable and would not use it anymore.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 16:56:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10680952#M129896</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-10-11T16:56:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: Unwrap - Fx Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10680992#M129900</link>
      <description>&lt;P&gt;Excellent! Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unwrap-fx-parameter/m-p/10680992#M129900</guid>
      <dc:creator>ivanildo.b</dc:creator>
      <dc:date>2021-10-11T17:10:23Z</dc:date>
    </item>
  </channel>
</rss>

