几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how can i read a oddbdimstyletablerecord (http://www.dimcax.com/hust/showthread.php?t=16550)

yang686526 2009-05-05 12:18 PM

【转帖】how can i read a oddbdimstyletablerecord
 
how can i read a oddbdimstyletablerecord
how can i read a oddbdimstyletablerecord
hallo,
i have read a dimension and its extensiondictionary to read the dimassoc. but i problem with the oddbdimstyletablerecord. where is the info of the dimstyle
oddbdimensionptr pdimension = pent;
oddbobjectid dimstyleid = pdimension->dimensionstyle();
oddbdimstyletablerecordptr dimstylerecptr =
dimstyleid.safeopenobject();
thanks for any reply
if you mean accessing dimstyle variables stored in oddbdimensionstyle: dim<var_name>() and setdim<var_name>() methods (like dimdec() / setdimdec()) are generated in dbdimstyletablerecord.h by including dimvardefs.h container
sergey slezkin
description var_name
quote:
originally posted by sergey slezkin
if you mean accessing dimstyle variables stored in oddbdimensionstyle: dim<var_name>() and setdim<var_name>() methods (like dimdec() / setdimdec()) are generated in dbdimstyletablerecord.h by including dimvardefs.h container
where can i find a description of the var_name
look into dbdimstyletablerecord.h. find #include "dimvardefs.h"
for each line in dimvardefs.h describing a variable like
code:
var_def(odint16, adec, 179, (0), (0), (), validaterange(0,8))
the followin prototypes are generated:
odint16 dimadec() const;
void setdimadec(odint16 val);
sergey slezkin
no ...
quote:
originally posted by sergey slezkin
look into dbdimstyletablerecord.h. find #include "dimvardefs.h"
for each line in dimvardefs.h describing a variable like
code:
var_def(odint16, adec, 179, (0), (0), (), validaterange(0,8))
the followin prototypes are generated:
odint16 dimadec() const;
void setdimadec(odint16 val);
no what i mean is the describtion of dimadec() or ...
dim... - text height or measurement or ...
dimadec corresponds to autocad's dimadec system variable. they are described in autocad's help: command reference / system variables.
sergey slezkin
thanks...
quote:
originally posted by sergey slezkin
dimadec corresponds to autocad's dimadec system variable. they are described in autocad's help: command reference / system variables.
thanks,
i have found a describtion of the system variables on the internet


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