AcDbText设置对齐不成功 setAlignmentPoint不成功

Acad::ErrorStatus es = pNum->setPosition(ptCenter);
es = pNum->setAlignmentPoint(ptCenter);	
es = pNum->setHorizontalMode(AcDb::TextHorzMode::kTextCenter);
es = pNum->adjustAlignment(acdbCurDwg());

es = pNum->setAlignmentPoint(ptCenter);    总是返回eNotApplicable,

Acad::ErrorStatus es = pNum->setPosition(ptCenter);
es = pNum->setHorizontalMode(AcDb::TextHorzMode::kTextCenter);
es = pNum->setAlignmentPoint(ptCenter);	
es = pNum->adjustAlignment(acdbCurDwg());

在调用setAlignmentPoint前,必须设置setHorizontalMode或setVerticalMode

你可能感兴趣的:(ObjectARX,AcDbText,eNotApplicable)