几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】materials not found (http://www.dimcax.com/hust/showthread.php?t=17147)

yang686526 2009-05-06 05:27 PM

【转帖】materials not found
 
materials not found...
materials not found...
hello,
i'm joining a file of an airplane with some material colors (working in odamfcapp) but i really don't see how to access those materials from my application !
1) i tried the function oddbentity::materialid().openobject() for each entity i try to display but it always return a null pointer...
2) and it's the same if i try to use ave : odavematerial::getattachedmaterial(ptr->objectid(),blockref) always return false....
so ? what's left ? is there another way to store (and then access) material information in a dwg file ?
manu.
attached files
why do you think that materials present in file? autocad does not show any material presenting in drawing except default global one.
entities contain ave_entity_material xdata but it's not material but material mapping data.
reference to material is stored as ave_finish xdata. but where are no such xdata in file.
btw, odamfcapp does not use materials in rendering.
sergey slezkin
hi,
i was thinking there were materials because odamfcappdll was showing a muli color object (red, white, blue faces of the cessna...)... if that's no material, so what it is ? the vertices "true" colors ?
manu.
different entities have color bylayer but layers are different so they are rendered with different colors.
different colors in odamfcapp are not related to materials.
sergey slezkin


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