How can I select the edges of a view in a Drawing?

Hello, programmers ?

   How can I select the edges of a view in a Drawing?

  Thanks in advance

Bruno Neves

SolidworksApi macros
Answers 2
BN
BN 2013-11-19 Best Answer

I want to adjust the Thickness of some lines using the method  SetLineWidth. To do this, I need to select some edges (or all edges of a view).

The method SetLineThickness does not work for me because it affects anothers views.

BN
BN 2013-11-19

I've got it.

            Dim vEdges = view.GetVisibleEntities(Nothing, swViewEntityType_Edge)

            Dim flag As Boolean = False

            For Each v In vEdges

                Dim edg As Entity = v

                edg.Select4(flag, Nothing)

                flag = True           

            Next