![]() |
【转帖】reading names
reading names
reading names hello, i did not found any method to get the name of an object/mesh. i have created with a 3d software 2 simple boxes named "box1" and "box2", and i could not get those names back when reading the corresponding dwg file name. i did not found anything in the documentation, nor in the examples that could help. i probably missed something ... here is what i already tried : oddbentityptr pent = pentiter->objectid().safeopenobject(); cout << endl << "entity descr : " << pent->isa()->name() << ", "; cout << "dxf name : " << pent->isa()->dxfname() << endl; cout << "app name : " << pent->isa()->appname() << endl; cout << "handle name : " << pent->getdbhandle().ascii().c_str() << endl; thanks for your help, stephane which objects in your dwg file have names "box1" and "box2"? only symbol table entries (blocks for example) or dictionary entries (groups for example) can have names. neither polygon nor polyface meshes can't be named. sergey slezkin it seems i have 2 entities of type acdbpolyfacemesh in one block. i checked this by debugging the code, but also using the application example odamfcapp, that dumps the contents of the file. i found the names in two layer tables, that are probably referenced, by the object. thanks for your help, stephane |
| 所有的时间均为北京时间。 现在的时间是 05:40 PM. |