Page 1 of 1

CADDrawMode.Black draws in "white"

Posted: 14 Oct 2008, 05:24
by peter.hentrich
*** Applies to: cadimport.net ext v6.3 VB editor cadimport.dll ver. 6.3.2942.31653 ***

The following should draw the entities in black but instead draws it in white:
Me.cadImage1.DrawMode = CADImport.CADDrawMode.Black

Solution:
Cycle through the CAD layers and change each colour as follows:

Code: Select all

' colourize the layers of the drawing
Dim cntLrs As Int16 = arrLayerNames.Count
Dim i As Int16
For i = 0 To cntLrs - 1
    Me.cadImage1.SetLayerColor(i, Color.Black, False)
Next

Re: CADDrawMode.Black draws in "white"

Posted: 14 Oct 2008, 10:42
by support
Hello Peter,

Some times entities define their parameters like color, line weight etc. by a layer where they lay. In this case these parameters have a value equal to CADConst.clByLayer. Thus when they change respective layer's parameter, entities with CADConst.clByLayer take new state respectivly to the changes. Otherwise they stay unchanged.

Sergey.