Page 1 of 1

Always White color

Posted: 22 Jun 2009, 17:39
by Raoulvg
Hello.

Everything seems to be working fine, except I always get the color white it doesn't matter what kind of object i use.
I used all of the color option from the cadobjects and tried it in cadimporter.net 6.3 and 7.0 beta.

Can you help me?

Re: Always White color

Posted: 23 Jun 2009, 15:23
by support
Hello.
You can set color of any entity in "View -> Options" menu or in the "Properties" window of a demo.

Alexander.

Re: Always White color

Posted: 23 Jun 2009, 16:39
by Raoulvg
Hello,

Sorry for the misunderstanding. I made my own demo application to look if everything that i want can be done with this Cadimporter.NET.
I have some Autocad Drawings that i want to convert to mapinfo MIF files and I want to use the normal colors that are in the autocad DWG file.
The problem is for example CADText.color.name gives back white all the time and they are not white in my DWG file.

Thank you and regards,
Raoul

Re: Always White color

Posted: 23 Jun 2009, 17:15
by support
Hello.
If you using such code:
Raoulvg wrote: ... CADText.color.name ...
then that is a problem. Please call color property like this:

Code: Select all

 CADText_object_name.Color
Also pay attention to texts, because they can be CADText and CADMText objects. You need to call corresponding property.

Alexander.

Re: Always White color

Posted: 24 Jun 2009, 13:22
by Raoulvg
Thank you for your help and fast replies.

I solved the problem to add the following code in my cadentity I saw it in one of the demo project.

Code: Select all

Dim cl As Color = CADConst.EntColor(ent, cadParams.insert)

Re: Always White color

Posted: 24 Jun 2009, 14:56
by support
Thank you for forum participation. If you have more questions, we will be glad to help.

Alexander.