salve ragazzi, ciao moderatori.
non so se è la sezione giusta del forum, comunque pongo lo stesso la questione:
devo esportare in un file dxf linee e alcune stringhe di testo giustificando quest'ultime in maniera centrata.
Ho creato tutte le routine ma non riesco a giustificare il testo in maniera centrata.
Il codice per giustificare il testo in un file dxf è il 72 e sulla guida dxf di autocad è riportato, alla sezione ENTITIES, TEXT:
If group 72 and/or 73 values are nonzero then the first alignment point values are ignored and AutoCAD calculates new values based on the second alignment point and the length and height of the text string itself (after applying the text style). If the 72 and 73 values are zero or missing, then the second alignment point is meaningless.
Non so però come calcolare la 'lenght' della stringa.
Qualcuno ha già affrontato il problema e mi può dare una mano?
grazie anticipatamente