![]() |
【转帖】units Value From Dxf
units value from dxf
units value from dxf hi, i have written following code for getting units of dxf file. this code works properly for dxf file which is saved through all cad packages except one cad package(osdm). through osdm i create a dxf file which has units mm. but following code gives me it in 'inches'. so what may be cause for this? is it related to dxf version created by cad package or something else. oddbdatabaseptr pdb; pdb = svcs.readfile( dxffilename, true, false, oda::ksharedenyno ); oddb::unitsvalue units = pdb->getinsunits(); and one more thing i have documentation of dwgdirect 1.14 where i did not find a method getinsunits(). please tell me in which version this method is introduced or depricated? regards, nikhil insunits variable appeared in r14 version. if dxf you read is of pre-r14 version it contains no insunits. also some programm writing dxf r14 may not save insunits value to dxf. dwgdirect of all versions have oddbdatabase::getinsunits(). (get/set methods for system variables are generated from sysvardefs.h container. sergey slezkin |
所有的时间均为北京时间。 现在的时间是 05:56 AM. |