ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
HKH. Kemper19/01/2011

Does anybody know the API code to select a bend line of a viewport in a drawing and then hide it?

A part of the code I 've written:

Set flatview = swdraw.GetFirstView
While Not flatview Is Nothing
    If flatview.IsFlatPatternView Then GoTo gevondenSheet2
    Set flatview = flatview.GetNextView
Wend
gevondenSheet2:
BendlinesArr = flatview.GetBendLines
Set swSketchSegment = BendlinesArr(0)
swSketchSegment.Select4 True, Nothing   <<<<Solidworks crashes with this command

swApp.ActiveDoc.BlankSketch

Is there an other method to hide the bend lines of a sheet metal view?

Thanks.

Henk