Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Large text display (top-right): Shows coordinates with proper size
- Small text display (bottom-centerđ Shows the same coordinates but with much smaller text size
// Text size calculation in UpdateTextSizeForAnnotation()
if (IsAnnotative())
{
// Text size = base size / annotation scale (inverse relationship)
double finalTextSize = dimStyle->dimtxt() / annotationScale;
mStyle.setTextSize(finalTextSize);
}
// Text drawing in subWorldDraw()
mode->geometry().text(leaderEndPoint() + AcGeVector3d(deltaX, -1.2*h, 0),
AcGeVector3d::kZAxis, AcGeVector3d::kXAxis, pMsgX, lenX, true, mStyle);
- GetCurrentAnnotationScale(): Gets annotation scale from database
- IsAnnotative(): Checks if object is annotative using AcDbAnnotativeObjectPE
- UpdateTextSizeForAnnotation(): Updates text size based on annotation scale
- TxtParameterCalculate(): Calculates text parameters and positions
- Grip Editing Text Size: How should text size be handled during grip editing operations? Should I override specific grip editing methods?
- Annotation Scale Application: Is the inverse relationship (text size = base size / annotation scale) correct for annotative objects?
- Dynamic Text Display: The small text display during grip editing seems to be generated by AutoCAD's built-in system. How can I ensure consistency with my custom text rendering?
- Method Override: Should I override methods like subMoveGripPointsAt() or subGetGripPoints() to handle text size during grip operations?
- ObjectARX 2018
- Visual Studio 2022
- AutoCAD 2018
ççŁ
æšèź€äžșæ€ćžćæŻćŠæçšïŒæŹąèżäžșæ€ćžçčè”ă
æšçéźéąæŻćŠć·ČćŸć°è§ŁçïŒèŻ·çčć»âæ„ćè§Łçâæéźă
Solved! Go to Solution.