admin 发表于 2024-3-4 08:56:29

如何更改AcDbDimension文本颜色?

Lisp

(vlax-put-property (vlax-ename->vla-object (car (entsel))) 'TEXTCOLOR 3)
ARX:

AcDbObjectPointer<AcDbDimension> pDimension(mSelectId, AcDb::kForWrite);
        if (eOkVerify(pDimension.openStatus())) return;

        AcCmColor col = pDimension->dimclrt();
        col.setColorIndex(static采用cast<Adesk::UInt16>(3));
        if (eOkVerify(pDimension->setDimclrt(col))) return;
页: [1]
查看完整版本: 如何更改AcDbDimension文本颜色?