AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Material true color dxf code help

0 REPLIES 0
Reply
Message 1 of 1
royboy666
509 Views, 0 Replies

Material true color dxf code help

Here is a partial entity listing for a material whos RGB color is r249 g150 b134:

 

((-1 . <Entity name: 7ef0b498>) (0 . "MATERIAL") (5 . "173") (102 .
"{ACAD_XDICTIONARY") (360 . <Entity name: 7ef0b4a0>) (102 . "}") (102 .
"{ACAD_REACTORS") (330 . <Entity name: 7ef09e10>) (102 . "}") (330 . <Entity
name: 7ef09e10>) (100 . "AcDbMaterial") (1 . "template") (2 . "") (70 . 1) (40
. 1.0) (90 . -1023830394) (71 . 1) (41 . 1.0) (91 . -1023830394) (42 . 1.0) (72
. 0) (3 . "") (73 . 2) (74 . 1) (75 . 1) (43 . 1.0) (43 . 0.0) (43 . 0.0) (43 .
0.0) (43 . 0.0) (43 . 1.0) (43 . 0.0) (43 . 0.0) (43 . 0.0) (43 . 0.0) (43 .
1.0) (43 . 0.0) (43 . 0.0) (43 . 0.0) (43 . 0.0) (43 . 1.0) (44 . 0.1) (76 . 1)
(45 . 1.0) (92 . -1028609617) (46 . 1.0) (77 . 0) (4 . "") (78 . 2) (79 . 1)

 

90 is ambient, 91 diffuse, 92 specular.Ambient & diffuse are same rgb value noted above.

The 420 value via the acad_truecolordlg function is (420 . 16356998).

 

I am creating a utility that creates materials from the command prompt via lisp, how in the world do they figure NEGATIVE 1 billion (1023830394) to represent this true color value? I need sustitute this info but I have no idea or formula to get the 420 true value code to this number. Any help ?

Thanks

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report

”Boost