<?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 iLogic code for Hinge hole command for Inventor in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123250#M69953</link>
    <description>&lt;P&gt;I want iLogic code for Hinge hole command for Inventor&lt;/P&gt;&lt;P&gt;Drill the Hinge hole into the side of cabinate at door front&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2019 04:54:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-02T04:54:56Z</dc:date>
    <item>
      <title>iLogic code for Hinge hole command for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123250#M69953</link>
      <description>&lt;P&gt;I want iLogic code for Hinge hole command for Inventor&lt;/P&gt;&lt;P&gt;Drill the Hinge hole into the side of cabinate at door front&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 04:54:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123250#M69953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-02T04:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for Hinge hole command for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123335#M69954</link>
      <description>&lt;P&gt;Could you be more specific?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 07:38:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123335#M69954</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-11-02T07:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for Hinge hole command for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123379#M69955</link>
      <description>&lt;P&gt;Code behaves as drills at center of the sheet metal&lt;BR /&gt;I want Drill on the side of cabinate at door.&lt;/P&gt;&lt;PRE&gt;Dim oSheetMetalDoc As PartDocument
oSheetMetalDoc = ThisApplication.ActiveEditDocument

' a reference to the component definition.
Dim oCompDef As SheetMetalComponentDefinition
oCompDef = oSheetMetalDoc.ComponentDefinition

' a reference to the sheet metal features collection.
Dim oSheetMetalFeatures As SheetMetalFeatures
oSheetMetalFeatures = oCompDef.Features

Dim oFace As Face

'Keep Selecting Faces, Hit Esc to finish
Do
    oFace = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAllPlanarEntities, "Select a face")
    If Not oFace Is Nothing Then 
        Exit Do
    End If
Loop While Not oFace Is Nothing

' Get the outer loop of the face.
Dim outerLoop As EdgeLoop
For Each outerLoop In oFace.EdgeLoops
    If outerLoop.IsOuterEdgeLoop Then
        Exit For
    End If
Next

' Create a workpoint at the edge mid-point
Dim oWorkPoint As WorkPoint
oWorkPoint = oCompDef.WorkPoints.AddAtCentroid(outerLoop)

Dim oPointPlacement As PointHolePlacementDefinition 
oPointPlacement = oCompDef.Features.HoleFeatures.CreatePointPlacementDefinition(oWorkPoint,oFace)

' Create the hole feature, 0.5 cm dia
Call oCompDef.Features.HoleFeatures.AddDrilledByThroughAllExtent( _
                        oPointPlacement, 0.5, kPositiveExtentDirection)
'turn off workpoint
oWorkPoint.Visible = False&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Nov 2019 08:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-hinge-hole-command-for-inventor/m-p/9123379#M69955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-02T08:53:54Z</dc:date>
    </item>
  </channel>
</rss>

