try this
{
MSElement el;
TextSizeParam tSize;
RotMatrix rMatrix;
TextParam tParam;
mdlRMatrix_getIdentity(&rMatrix);
tSize.mode = TXT_BY_TILE_SIZE | TXT_NO_TRANSFORM;
tSize.size.height = 1000.0;
tSize.size.width = 1000.0;
tParam.just = TXTJUST_CC;
tParam.font = 0;
tParam.style = 0;
tParam.viewIndependent = TRUE;
mdlText_create(&el,NULL,"something",ptP,&tSize,&rMatrix,&tParam,NULL);
}
or
if (mdlText_create (&textE, NULL, textString, &pointText, NULL, NULL,
NULL, NULL) == SUCCESS)
{
// set justification
textE.text_2d.just = TXTJUST_CC;
// remake the text using the template
mdlText_create (&textE, &textE, textString, &pointText, NULL, NULL,
NULL, NULL)
}
grotero@[EMAIL PROTECTED]
schreef:
> Hi. I create a text element and add it to the dgn file like this:
>
> if (mdlText_create (&textE, NULL, textString, &pointText, NULL, NULL,
> NULL, NULL) == SUCCESS)
> { mdlElement_display(&textE, NORMALDRAW);
> mdlElement_add(&textE);
> }
>
>
> "pointText" is the origin point of the Text. Is possible to create a
> text element with pointText as the center of it?
>
> Thank you very much.


|