.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

color.FromNames doesn't work

3 REPLIES 3
Reply
Message 1 of 4
gilseorin
346 Views, 3 Replies

color.FromNames doesn't work

Hi,all.
What is wrong with my code?
It dosn't work.
Thanks in advance.

LayerTableRecord.Color= Color.FromNames("RAL 1004","RAL CLASSIC")
3 REPLIES 3
Message 2 of 4
jerrywinters
in reply to: gilseorin

I have issued a support request with Autodesk on this. When the color is loaded "FromNames", the ColorMethod stays at "ByLayer" instead of changing to "ByColor". When it is manually changed by selecting from a ColorBook in the Layer Manager, it shows up as "ByColor".

I have attached a VB.NET project for those wishing to mess around with this issue.

I'll let you know when I hear from Autodesk if someone else doesn't post a solution sooner.

Take care.

Jerry
Message 3 of 4
krispy
in reply to: gilseorin

any solution on this? trying to get it to work with pantone colours
Message 4 of 4
c.j.mckeown
in reply to: gilseorin

Does anyone know if this issue has been resolved?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost