![]() |
【转帖】saving Material Problem
saving material problem
saving material problem hi i create material and save it with the dd library by using the odavematerial::writematerial() method. after that when i open the drawing in acad and call the command "render", no material is displayed. in fact it is saved to the drawing because i am able to change and save its properties. also it's shown in the list with the materials, but it's not shown in the material library list. when i save the drawing with acad, the material maybe is automatically added to the library and on the next acad opening the material is displayed properly. is it a dd problem or i create the material improperly? for example try to open in acad a material drawing saved with the dbavedumper example. thanks nino hi, the "render" command displays materials attached to entities. the odavematerial::writematerial() method saves a material in database, but does not attach it to an object. the "matlib" command displays material library list from *.mli files and can be used to import/export materials into/from the drawing (see acad's help for "materials library dialog box"). the dbavedumper example attaches material to oddb3dsolid entity created from the box.sat file (the box.sat file should be placed in the same folder with example's .exe file). regards, sergey vishnevetsky |
所有的时间均为北京时间。 现在的时间是 04:22 AM. |