<?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: setting hidden line  style on individual assembly occurrence in draft. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10701022#M130320</link>
    <description>&lt;P&gt;Files attached...&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 12:31:58 GMT</pubDate>
    <dc:creator>breinkemeyer</dc:creator>
    <dc:date>2021-10-20T12:31:58Z</dc:date>
    <item>
      <title>setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10688981#M130071</link>
      <description>&lt;P&gt;I need to hide the hidden lines on just the screw flights on the attached drawing.&amp;nbsp; is this accomplished in the browser or can I do it an easier way.&amp;nbsp; C#, VB or VBA will work.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 18:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10688981#M130071</guid>
      <dc:creator>breinkemeyer</dc:creator>
      <dc:date>2021-10-14T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Betreff: setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10691805#M130150</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change the selection priority for drawings with the little pulldown in the quick access toolbar to part selection. After this, if you hover over the screw flights, all lines should be highlighted. Right click and click on "hidden lines" in the context menu.&lt;/P&gt;&lt;P&gt;Or you can test the iLogic rule below. Start it and pick one line (if the line has visible or hidden line style is not relevant) and the hidden lines will be set to invisible.&lt;/P&gt;&lt;P&gt;To reset the invisible lines, right click on an empty space of the drawing view and select "show hidden lines".&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oApp As Inventor.Application= ThisApplication
Dim oDrawDoc As DrawingDocument = oApp.ActiveDocument
Dim oDrawCurveSeg As DrawingCurveSegment= oApp.CommandManager.Pick(kDrawingCurveSegmentFilter, "Pick a line of the component")
Dim oDrawCurve As DrawingCurve= oDrawCurveSeg.Parent
Dim oDrawView As DrawingView = oDrawCurve.Parent
Dim oEdgeProxy As EdgeProxy= oDrawCurve.ModelGeometry
Dim oOcc As ComponentOccurrence = oEdgeProxy.ContainingOccurrence
Dim oDrawCurves As DrawingCurvesEnumerator = oDrawView.DrawingCurves(oOcc)

For Each oDrawCurve In oDrawCurves
    For Each oDrawCurveSeg In oDrawCurve.Segments
        If oDrawCurveSeg.HiddenLine = True Then
            oDrawCurveSeg.Visible = False
        End If
    Next
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 20:34:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10691805#M130150</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-10-15T20:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10698280#M130271</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I should have mentioned this app is running with no user input.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 12:25:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10698280#M130271</guid>
      <dc:creator>breinkemeyer</dc:creator>
      <dc:date>2021-10-19T12:25:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10699577#M130300</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you have to tell us how to unique identify the screw flights. Upload the model, tell us how the component is named in browser or something else. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7B4B80143EBEB4F250CEEC82342F6CA1/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 21:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10699577#M130300</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-10-19T21:41:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10701022#M130320</link>
      <description>&lt;P&gt;Files attached...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 12:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10701022#M130320</guid>
      <dc:creator>breinkemeyer</dc:creator>
      <dc:date>2021-10-20T12:31:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10701960#M130331</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the files. I picked the part "Flight" in the part name to identify the parts we need.&lt;/P&gt;&lt;P&gt;The script is not perfect, but works so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Option Explicit on

Dim oApp As Inventor.Application= ThisApplication
Dim oDrawDoc As DrawingDocument = oApp.ActiveDocument
Dim oAssDoc As AssemblyDocument= oDrawDoc.ReferencedDocuments(1) 'we assume there is only one
Dim oObjColl As ObjectCollection = oApp.TransientObjects.CreateObjectCollection

Dim oOccs As ComponentOccurrencesEnumerator
Dim oOcc As ComponentOccurrence
Dim oDrawView As DrawingView
Dim oDrawCurves As DrawingCurvesEnumerator
Dim oDrawCurve As DrawingCurve
Dim oDrawCurveSeg As DrawingCurveSegment
Dim oRefedDoc As Document

Dim oTrans As Transaction = oApp.TransactionManager.StartTransaction(oDrawDoc, "HideLines")

For Each oDrawView In oDrawDoc.ActiveSheet.DrawingViews
    If oDrawView.ViewType = DrawingViewTypeEnum.kStandardDrawingViewType Then
        For Each oRefedDoc In oAssDoc.AllReferencedDocuments
            If InStr(oRefedDoc.FullFileName, "Flight") Then
                oOccs = oAssDoc.ComponentDefinition.Occurrences.AllReferencedOccurrences(oRefedDoc)
                For Each oOcc In oOccs
                    oDrawCurves = oDrawView.DrawingCurves(oOcc)
                    For Each oDrawCurve In oDrawCurves
                        For Each oDrawCurveSeg In oDrawCurve.Segments
                            If oDrawCurveSeg.HiddenLine = True Then
                                oDrawCurveSeg.Visible = False
                            End If
                        Next
                    Next
                Next
                oDrawCurves = Nothing
            End If
            oOccs = Nothing
        Next
    End If
Next

oTrans.End


&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:01:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10701960#M130331</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2021-10-20T18:01:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: setting hidden line  style on individual assembly occurrence in draft.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10702071#M130335</link>
      <description>&lt;P&gt;That got it, many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-hidden-line-style-on-individual-assembly-occurrence-in/m-p/10702071#M130335</guid>
      <dc:creator>breinkemeyer</dc:creator>
      <dc:date>2021-10-20T18:58:47Z</dc:date>
    </item>
  </channel>
</rss>

