几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】lost with odgimaterialcolor (http://www.dimcax.com/hust/showthread.php?t=17127)

yang686526 2009-05-06 05:20 PM

【转帖】lost with odgimaterialcolor
 
lost with odgimaterialcolor
lost with odgimaterialcolor
hi,
any guidelines using odgimaterialcolor?
i create a odcmentitycolor to wich i set color values (setrgb).
now, i want to set odgimaterialcolor with that odcmentitycolor (as i read in the help files it needs it), but i don't know how..
thanks in advance,
israel

odgimaterialcolor::color() method is overloaded:
code:
odcmentitycolor& odgimaterialcolor::color();
const odcmentitycolor& odgimaterialcolor::color() const;, so you can use it to setup your odcmentitycolor to odgimaterialcolor:
code:
odcmentitycolor ecolor;
ecolor.setcolor(0xffffffff);
odgimaterialcolor mcolor;
mcolor.setmethod(odgimaterialcolor::koverride);
thanks a lot!
sometimes you think it is going to be 'the hard' way and the simple solution is the right one.


所有的时间均为北京时间。 现在的时间是 11:41 PM.