Plot Styles

1
wschuler
1/13/2015 7:40 PM

This a feature request for plot styles support.

wschuler
1/29/2015 2:10 PM

In case anyone else is looking for this, this seems to help somewhat:

Visual Basic Code:
                Dim Z As New WW.Cad.Drawing.CtbFile("[insert filename here].ctb")

                While I < pModel.Layers.Count

                    If pModel.Layers(I).Color.ColorType = WW.Cad.Model.ColorType.ByColorIndex AndAlso _
                        pModel.Layers(I).PlotEnabled = True Then
                        Dim lEntry As WW.Cad.Drawing.CtbFile.ColorEntry
                        lEntry = Z.GetEntry(pModel.Layers(I).Color.ColorIndex)
                        If Not lEntry Is Nothing Then
                            pModel.Layers(I).Color = WW.Cad.Model.Color.CreateFrom(lEntry.Color)
                        End If
                    End If
                    If pModel.Layers(I).PlotEnabled = False Then
                        pModel.Layers(I).Enabled = False
                    End If

                    I += 1
                End While

1