几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】getsysvar and getangdir [individual methods for seprate sys (http://www.dimcax.com/hust/showthread.php?t=16398)

yang686526 2009-05-05 11:25 AM

【转帖】getsysvar and getangdir [individual methods for seprate sys
 
getsysvar and getangdir [individual methods for seprate syst
getsysvar and getangdir [individual methods for seprate system variables]
hi,
oddbdatabasefff"> has got a method for system variables getsysvarfff"> (and setsysvar too).
odresbufptr oddbdatabase::getsysvar( const char* name)
these too methods are well documented. and if we use functions like getangdir(), getauprec()fff"> etc....fff"> but where are these functions listed.. i couldn't find any place where these methods are declared. how are you declaring these methods... and for how many system variables you have got individual methods.. there is nothing written about these methods.. (it confuses many times, plz help!)
which one is better keeping performance in mind... is it getsysvar("angdir") or getangdir()
thanks...
last edited by niteshsingh_007; 15th february 2006 at 03:34 amfff">.
getsysvar("angdir") or getangdir() should do the same.
i think it is better to use the getangdir(), because it returns the value directly in the type that you want and not packed in resbuf. in the first version (getsysvar("angdir")) you need to write more code to get the value of the variable.
to see the list of the sys vars that are supported, and to check their types and initial values, please open the file sysvardefs.h - the variables listed there can be used with the setxxxx or getxxxx prefixes as members of the oddbdatabase operations.
btw you can get the description of the system variables from the autocad help files.
hope this helps.
best regards
chudomir
thanks for the info..


所有的时间均为北京时间。 现在的时间是 07:09 AM.