Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/10/2018 in all areas

  1. Hi Paul, Specifying(prompting/getting) and setting are different things. When you use that dialogue box to specify say to some colorbook->pantone colour you should get something like this returned: ((62 . 135) (420 . 5415845) (430 . "PANTONE+ CMYK Uncoated$PANTONE P 121-13 U")) If you specify a true color, via the "True Color" menu tab it will return something like this: ((62 . 135) (420 . 5415845)) However if you just specify ACI color it will be: ((62 . 135)) If you observe the group codes - 62 is for the ACI, 420 is for True Color, and 430 is for ColorBook. And as you can see, the value for the True Color isn't RGB, what you'd expected. So depending on the purpose of your program you might want to use Jef!'s activex approach (which is more comfortable for RGB) or use some of Lee's color conversion functions BTW for setting, you just need to append the color returned from the dialog to the entity's dxf list and entmod(update) it: (entmod (append (entget (car (entsel "\nPick an entity: "))) (acad_truecolordlg 1 t))) or just use a hardcoded color value, obtained from the dialog.
    1 point
×
×
  • Create New...