Color change on file loading

1
LeonardoT
9/1/2022 1:07 PM

I am trying to load a dxf file with this code

C# Code:
        string _sFileName = "9CAEKOMT15299.DXF";

        DxfModel _oDxfModel = new();

        try
        {
            _oDxfModel = CadReader.Read(_sFileName);
        }
        catch (Exception _oException)
        {
            Console.Error.WriteLine("Error occurred: " + _oException.Message);
            Environment.Exit(1);
        }

        DxfWriter.Write(_sFileName + "_copy.dxf", _oDxfModel);

The problem is that by simply coping the file with the code above, there are a bunch of changes imported in the "_copy" version.

The most visible change is that the colors of all the entities of the entire file change to an orange one without setting it.

How do i make it so that there are no changes between copies?

Wout
9/1/2022 1:14 PM

Hi,

The orange color is a limitation of the evaluation version of the software (it's written on the CadLib web page).

- Wout

1