高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|