3 Replies Latest reply on Feb 5, 2014 3:47 AM by Mohammed Elkalakhi

    Getting bend lines of a flat pattern feature

    Mohammed Elkalakhi

      Hello,

       

      Does any one know how to get all bend lines of flat pattern feature ?

       

      Thanks,

        • Re: Getting bend lines of a flat pattern feature
          Ganesh Devkhile

          Hi

          If you want to do manual ....Capture.JPG

            • Re: Getting bend lines of a flat pattern feature
              Artem Taturevych

              You can find the sketch of the flat pattern and then check all segments within this sketch via this method: SketchLine::GetBendLineDirection to find all bend lines

                • Re: Getting bend lines of a flat pattern feature
                  Mohammed Elkalakhi

                  I used this method but I am not sure if the sketch of bend lines is always the first subfeature of the flatten pattern feature.

                   

                   

                  Public Function GetBendLines(flatPatternFeat As Feature) As List(Of SketchLine)
                  
                          Dim result As List(Of SketchLine)
                          Dim subFeat As Feature
                          Dim swSkecth As Sketch
                          Dim sketchSgms() As Object
                  
                          Try
                  
                              subFeat = flatPatternFeat.GetFirstSubFeature()
                              swSkecth = subFeat.GetSpecificFeature2()
                              sketchSgms = swSkecth.GetSketchSegments()
                  
                              If sketchSgms Is Nothing Then Return Nothing
                              For Each sketchLine As SketchLine In sketchSgms
                                  If result Is Nothing Then result = New List(Of SketchLine)
                                  result.Add(sketchLine)
                              Next
                  
                              Return result
                  
                          Catch ex As Exception
                              Throw ex
                          End Try
                  
                      End Function