Always White color

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Raoulvg
Posts: 5
Joined: 22 Jun 2009, 17:05

Always White color

Post by Raoulvg » 22 Jun 2009, 17:39

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?

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

Re: Always White color

Post by support » 23 Jun 2009, 15:23

Hello.
You can set color of any entity in "View -> Options" menu or in the "Properties" window of a demo.

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

Raoulvg
Posts: 5
Joined: 22 Jun 2009, 17:05

Re: Always White color

Post by Raoulvg » 23 Jun 2009, 16:39

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

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

Re: Always White color

Post by support » 23 Jun 2009, 17:15

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Raoulvg
Posts: 5
Joined: 22 Jun 2009, 17:05

Re: Always White color

Post by Raoulvg » 24 Jun 2009, 13:22

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)

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

Re: Always White color

Post by support » 24 Jun 2009, 14:56

Thank you for forum participation. If you have more questions, we will be glad to help.

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

Post Reply