th_gsb 发表于 2009-9-15 16:33:00

怎么修改实体的标注样式

AcDbEntity类没有SetDimStyle的方法,不知道该怎么解决问题了。
请大家帮帮忙!

luowy 发表于 2009-9-17 02:10:00

干嘛要去AcDbEntity找?哪个类就在哪个类找,找不到再去父类找阿~
AcDbDimension::setDimstyleData,这个设置
Acad::ErrorStatus setDimstyleData(AcDbDimStyleTableRecord* pNewData);
pNewDataInput pointer to the AcDbDimStyleTableRecord whose data is to be applied to this dimension

梦幻神话 发表于 2009-9-18 10:04:00

Acad::ErrorStatus
setDimensionStyle(
AcDbObjectId unnamed);
unnamedInput object ID to be used by AcDbDimStyleTableRecordThis function sets the dimension to use thewith the object ID styleId.
If styleId is AcDbObjectId::kNull (or just NULL), then when the dimension is closed it will be set to use the current default dimStyle in the AutoCAD editor.
The text string name within the referenced DimStyleTableRecord is used for DXF group code 3.
This function returns Acad::eOk.

hourui800720 发表于 2011-7-20 14:46:00

有没有这方面的详细分解呢

hourui800720 发表于 2011-7-22 11:05:00

请没有具体的示例供学习参考呢,一直在等。
页: [1]
查看完整版本: 怎么修改实体的标注样式