Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Style of a drawing VB API

  • Thread starter Thread starter Redox
  • Start date Start date
R

Redox

Guest
Hello,

i try to change the Style of a View, but my code does not work :-(

I need to change all shaded Views of a sheet, but the following code does not do anything.
I even don't get an error?
Code:
            view2Ds = drawing.List2DViews
            For i As Integer = 0 To view2Ds.Count - 1
                view2D = view2Ds.Item(i)

                viewDisplay = view2D.Display

                If view2D.Display.Style = EpfcDisplayStyle.EpfcDISPSTYLE_SHADED Or view2D.Display.Style = EpfcDisplayStyle.EpfcDISPSTYLE_SHADED_WITH_EDGES Then
                    view2D.Display.Style = EpfcDisplayStyle.EpfcDISPSTYLE_NO_HIDDEN
                    view2D.Regenerate()
                End If

            Next

Anybody an idea?

Many thanks
Sebastian

System Creo 3.0 M40
 

Part and Inventory Search

Sponsor

Back
Top