<?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: Change FastenerSize of HoleClearanceInfo in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7879014#M82436</link>
    <description>&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its a workaround for a simple hole,&lt;/P&gt;&lt;P&gt;but if you have to &lt;SPAN&gt;distinguish&lt;/SPAN&gt; &lt;SPAN&gt;countersinks it&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;isn't that easy. You have to set more then one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value and it's not the same for cylindric and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cone sink.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think Autodesk should make the value writeable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway thank you for your solution in special circumstances it will&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;work for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 14:58:16 GMT</pubDate>
    <dc:creator>wolfgang_nickl</dc:creator>
    <dc:date>2018-03-23T14:58:16Z</dc:date>
    <item>
      <title>Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7871965#M82279</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to Change a Holedefinition of a&amp;nbsp;Clearance&amp;nbsp; Hole.&lt;/P&gt;&lt;P&gt;I can query the current size. In API docu it is&amp;nbsp;descript as Read-write,&lt;/P&gt;&lt;P&gt;but I can't set a new value. Open the attached file or&amp;nbsp;any part with&lt;/P&gt;&lt;P&gt;a clearance hole and start&amp;nbsp;the Sub below. The first Messagebox shows&lt;/P&gt;&lt;P&gt;the Size but it&amp;nbsp;results in an error when&amp;nbsp;I try to set a new value.&lt;/P&gt;&lt;P&gt;What is wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub subWNHolefeatureUpdate()
    Dim oWNPartDoc As PartDocument
    Set oWNPartDoc = ThisApplication.ActiveDocument
    Dim oWNHoleFeature As HoleFeature
    For Each oWNHoleFeature In oWNPartDoc.ComponentDefinition.Features.HoleFeatures
        MsgBox oWNHoleFeature.ClearanceInfo.FastenerSize
        On Error Resume Next
            oWNHoleFeature.ClearanceInfo.FastenerSize = "M6"
        MsgBox Err.Description
    Next
End Sub&lt;/PRE&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 14:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7871965#M82279</guid>
      <dc:creator>wolfgang_nickl</dc:creator>
      <dc:date>2018-03-21T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878215#M82413</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1211386"&gt;@wolfgang_nickl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, properties of HoleClearanceInfo for HoleFeature&amp;nbsp;are read only. Please log this wish list at idea station using below link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="margin: 0px; color: black; font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/tab/most-recent" target="_blank"&gt;&lt;SPAN&gt;https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/tab/most-recent&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="margin: 0px; color: black; font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;Thanks and regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 11:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878215#M82413</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-03-23T11:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878655#M82421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you need to create a new ClearanceInfo...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you should be able to do this with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim mhtns As ModelHoleThreadNotes = oPartCompDef.ModelAnnotations.ModelHoleThreadNotes&lt;/P&gt;&lt;P&gt;Dim newholeclinfo As HoleClearanceInfo = Nothing&lt;BR /&gt;&amp;nbsp;newholeclinfo = mhtns.CreateClearanceInfo("DIN" , "Countersunk Flat Head Screw DIN EN ISO 2009" , "M6")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then replace the complete HoleClearanceInfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if you try to get the holeClearanceinfo.FastenerStandard from the hole you already created it gives an error....&lt;/P&gt;&lt;P&gt;and also creating the new one does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with me trying to figure this out, my Inventor (2018.2.3) is crashing constantly, so I gues Autodesk have to fix things&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:36:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878655#M82421</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2018-03-23T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878695#M82423</link>
      <description>&lt;P&gt;It can be done differently,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look for clearance.xls in your style folder, you can read values from it to get fastener size and corresponding diameters.&lt;/P&gt;&lt;P&gt;Give to user fasteners sizes in combo, and when he choose one, your script will change hole diameter looking for corresponding one to chosen fastener.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub subWNHolefeatureUpdate()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oWNPartDoc As PartDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oWNPartDoc = ThisApplication.ActiveDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oWNHoleFeature As HoleFeature&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oWNHoleFeature = oWNPartDoc.ComponentDefinition.Features.HoleFeatures.Item(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'oWNHoleFeature.HoleDiameter.Value = 10 ' in cm - corresponding value read from xls&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oWNHoleFeature.HoleDiameter.Expression = "6,6"&amp;nbsp; - corresponding value read from xls&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oWNPartDoc.Update&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:44:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878695#M82423</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2018-03-23T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878833#M82426</link>
      <description>&lt;P&gt;Hello Jan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ModelAnnotations I think is the wrong point.&lt;/P&gt;&lt;P&gt;I want to change the size of the clearancehole and not&lt;/P&gt;&lt;P&gt;the 3D dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:18:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878833#M82426</guid>
      <dc:creator>wolfgang_nickl</dc:creator>
      <dc:date>2018-03-23T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878967#M82432</link>
      <description>&lt;P&gt;according to the Inventor Help, you should be able with this to edit the HoleFeature object&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:48:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7878967#M82432</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2018-03-23T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7879014#M82436</link>
      <description>&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its a workaround for a simple hole,&lt;/P&gt;&lt;P&gt;but if you have to &lt;SPAN&gt;distinguish&lt;/SPAN&gt; &lt;SPAN&gt;countersinks it&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;isn't that easy. You have to set more then one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value and it's not the same for cylindric and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cone sink.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think Autodesk should make the value writeable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway thank you for your solution in special circumstances it will&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;work for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7879014#M82436</guid>
      <dc:creator>wolfgang_nickl</dc:creator>
      <dc:date>2018-03-23T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change FastenerSize of HoleClearanceInfo</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7880152#M82478</link>
      <description>&lt;P&gt;i think it is only more complex approach... idk what you're working at but you must decide if it is worth it... sadly i don't know any other way to do it (beside complex ifeature)...&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 20:42:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-fastenersize-of-holeclearanceinfo/m-p/7880152#M82478</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2018-03-23T20:42:12Z</dc:date>
    </item>
  </channel>
</rss>

