查看单个帖子
旧 2009-05-07, 12:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)