Page 1 of 1
Logging?
Posted: 21 Jun 2016, 16:49
by roman
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
Re: Logging?
Posted: 21 Jun 2016, 17:23
by support
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
Re: Logging?
Posted: 27 Jun 2016, 08:58
by roman
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
Re: Logging?
Posted: 27 Jun 2016, 14:10
by support
Hello Roman,
Yes, it would be helpful if you can post the code of your program.
Mikhail
Re: Logging?
Posted: 28 Jun 2016, 09:19
by roman
Hello Mikhail,
I just sent you an email with my code,
thank you for your help,
Roman
Re: Logging?
Posted: 28 Jun 2016, 18:35
by support
Hello Roman,
We have received the source code of your project. Thanks for your e-mail.
Mikhail
Re: Logging?
Posted: 05 Jul 2016, 12:04
by roman
Hello,
could you reproduce my issue? Do you have any idea what causes the error?
thank you
Roman
Re: Logging?
Posted: 06 Jul 2016, 21:24
by support
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
Re: Logging?
Posted: 07 Jul 2016, 15:06
by roman
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;
}