CADDrawMode.Black draws in "white"

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
peter.hentrich
Posts: 2
Joined: 26 Jun 2008, 10:21

CADDrawMode.Black draws in "white"

Post by peter.hentrich » 14 Oct 2008, 05:24

*** 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

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: CADDrawMode.Black draws in "white"

Post by support » 14 Oct 2008, 10:42

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply