Logging?

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
roman
Posts: 43
Joined: 11 Aug 2011, 11:43

Logging?

Post by roman » 21 Jun 2016, 16:49

Hello,

I just just upgraded to the newest version (trial) of the CADImport.dll, but selecting a text gives me the following exception. This exception can't be clicked away, it is thrown again forever.

Is there any log or logging possibility to get to the root of this exception?

Thank you
Attachments
Error
Error
Capture.PNG (9.36 KiB) Viewed 46453 times

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

Re: Logging?

Post by support » 21 Jun 2016, 17:23

Hello Roman,

Unfortunately, it is not possible to trace the root of exception using logging. Please, post a code which throws the exception and if this problem occurs only with a certain drawing file, post it here as well or (in case the file contains confidential information) send to the Technical Support e-mail.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

roman
Posts: 43
Joined: 11 Aug 2011, 11:43

Re: Logging?

Post by roman » 27 Jun 2016, 08:58

Hello Mikhail,

it's not possible to send you code. The error occurs when I try to select a CADText entity with the mouse. Should I send you my programcode, so you can test and reproduce the problem.

Roman

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

Re: Logging?

Post by support » 27 Jun 2016, 14:10

Hello Roman,

Yes, it would be helpful if you can post the code of your program.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

roman
Posts: 43
Joined: 11 Aug 2011, 11:43

Re: Logging?

Post by roman » 28 Jun 2016, 09:19

Hello Mikhail,

I just sent you an email with my code,

thank you for your help,

Roman

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

Re: Logging?

Post by support » 28 Jun 2016, 18:35

Hello Roman,

We have received the source code of your project. Thanks for your e-mail.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

roman
Posts: 43
Joined: 11 Aug 2011, 11:43

Re: Logging?

Post by roman » 05 Jul 2016, 12:04

Hello,

could you reproduce my issue? Do you have any idea what causes the error?

thank you
Roman

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

Re: Logging?

Post by support » 06 Jul 2016, 21:24

Hello Roman,

We would like to clarify some details. I've just sent you an e-mail from support@cadsofttools.com regarding this matter.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

roman
Posts: 43
Joined: 11 Aug 2011, 11:43

Re: Logging?

Post by roman » 07 Jul 2016, 15:06

Hello,

I found the cause of the exception:

the following code falied selecting the thext

Code: Select all

protected ulong AddText(string text, DPoint pos, Color color, double height, float rotation)
        {
            var cadText = new CADText();
                    
            cadText.Color = color;
            cadText.Point = pos;
            cadText.Height = height;
            cadText.Angle = rotation;
            cadText.Text = text;
            cadText.LineWeight = 0.01;
            
            AddEntity(cadText);
            return cadText.Handle;
        }
This code works, I just changed CADText with CADMText.... :?:

Code: Select all

protected ulong AddText(string text, DPoint pos, Color color, double height, float rotation)
        {
            var cadText = new CADMText();
          
            cadText.Color = color;
            cadText.Point = pos;
            cadText.Height = height;
            cadText.Angle = rotation;
            cadText.Text = text;
            cadText.LineWeight = 0.01;
            
            AddEntity(cadText);
            return cadText.Handle;
        }

Post Reply