2. Press F5.
3. Open a CAD file. You can navigate by mouse wheel and use toolbar buttons to work with the CAD file.
4. Close application, select in MS Studio Solution Explorer > ViewerMainForm.cs, select File > Type Here and type ChangeEntitiesColor:
5. Type the following lines:
![]() | |
---|---|
cadImage.DefaultColor = Color.Red; cadPictBox.Invalidate(); |
6. Run application, open a CAD file, then click File > ChangeEntitiesColor - you will see that the entities with default color are red. Entities with non-default color will save their colors in this case.