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

怎么修改实体的标注样式

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

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

<p>干嘛要去AcDbEntity找?哪个类就在哪个类找,找不到再去父类找阿~</p><p>AcDbDimension::setDimstyleData,这个设置</p><p class="signature">Acad::ErrorStatus setDimstyleData(AcDbDimStyleTableRecord* pNewData);</p><p><table class="argumentList"><tbody><tr valign="baseline"><td class="argumentName">pNewData</td><td class="argumentDescription">Input pointer to the <span class="code">AcDbDimStyleTableRecord whose data is to be applied to this dimension</td></tr></tbody></table></p></span>

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

<p class="signature">Acad::ErrorStatus</p><p class="signature">setDimensionStyle(</p><p class="signatureInEnd">AcDbObjectId unnamed);</p><table class="argumentList"><tbody><tr valign="baseline"><td class="argumentName">unnamed</td><td class="argumentDescription">Input object ID to be used by AcDbDimStyleTableRecord</td></tr></tbody></table><p>This function sets the dimension to use the <a href="mk:@MSITStore:F:\ObjectARX\ObjectARX%202006\docs\arxref.chm::/AcDb/AcDbDimStyleTableRecord/AcDbDimStyleTableRecord.htm">AcDbDimStyleTableRecord</a> with the object ID styleId.</p><p>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.</p><p>The text string name within the referenced DimStyleTableRecord is used for DXF group code 3.</p><p>This function returns Acad::eOk.</p>

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

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

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

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